##// END OF EJS Templates
Merged r13943 from trunk to 2.6-stable (#18632)...
Toshi MARUYAMA -
r13605:0c1a287696f0
parent child
Show More
@@ -1,110 +1,110
1 1 source 'https://rubygems.org'
2 2
3 3 gem "rails", "3.2.21"
4 4 gem "jquery-rails", "~> 3.1.1"
5 5 gem "coderay", "~> 1.1.0"
6 6 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
7 7 gem "builder", ">= 3.0.4"
8 8 gem "request_store", "1.0.5"
9 9 gem "mime-types"
10 gem "rbpdf", "~> 1.18.4"
10 gem "rbpdf", "~> 1.18.5"
11 11
12 12 gem "i18n", "~> 0.6.11"
13 13
14 14 # Optional gem for LDAP authentication
15 15 group :ldap do
16 16 gem "net-ldap", "~> 0.3.1"
17 17 end
18 18
19 19 # Optional gem for OpenID authentication
20 20 group :openid do
21 21 gem "ruby-openid", "~> 2.3.0", :require => "openid"
22 22 gem "rack-openid"
23 23 end
24 24
25 25 platforms :mri, :mingw do
26 26 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
27 27 group :rmagick do
28 28 # RMagick 2 supports ruby 1.9
29 29 # RMagick 1 would be fine for ruby 1.8 but Bundler does not support
30 30 # different requirements for the same gem on different platforms
31 31 gem "rmagick", (RUBY_VERSION < "1.9" ? "2.13.3" : ">= 2.0.0")
32 32 end
33 33
34 34 # Optional Markdown support, not for JRuby
35 35 group :markdown do
36 36 # TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped
37 37 gem "redcarpet", "~> 2.3.0"
38 38 end
39 39 end
40 40
41 41 platforms :jruby do
42 42 # jruby-openssl is bundled with JRuby 1.7.0
43 43 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
44 44 gem "activerecord-jdbc-adapter", "~> 1.3.2"
45 45 end
46 46
47 47 # Include database gems for the adapters found in the database
48 48 # configuration file
49 49 require 'erb'
50 50 require 'yaml'
51 51 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
52 52 if File.exist?(database_file)
53 53 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
54 54 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
55 55 if adapters.any?
56 56 adapters.each do |adapter|
57 57 case adapter
58 58 when 'mysql2'
59 59 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
60 60 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
61 61 when 'mysql'
62 62 gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
63 63 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
64 64 when /postgresql/
65 65 gem "pg", "~> 0.17.1", :platforms => [:mri, :mingw]
66 66 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
67 67 when /sqlite3/
68 68 gem "sqlite3", :platforms => [:mri, :mingw]
69 69 gem "activerecord-jdbcsqlite3-adapter", "1.3.11", :platforms => :jruby
70 70 when /sqlserver/
71 71 gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw]
72 72 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
73 73 else
74 74 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
75 75 end
76 76 end
77 77 else
78 78 warn("No adapter found in config/database.yml, please configure it first")
79 79 end
80 80 else
81 81 warn("Please configure your config/database.yml first")
82 82 end
83 83
84 84 group :development do
85 85 gem "rdoc", ">= 2.4.2"
86 86 gem "yard"
87 87 end
88 88
89 89 group :test do
90 90 gem "shoulda", "~> 3.3.2"
91 91 gem "shoulda-matchers", "1.4.1"
92 92 gem "mocha", "~> 1.0.0", :require => 'mocha/api'
93 93 if RUBY_VERSION >= '1.9.3'
94 94 gem "capybara"
95 95 gem "selenium-webdriver"
96 96 end
97 97 end
98 98
99 99 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
100 100 if File.exists?(local_gemfile)
101 101 puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
102 102 instance_eval File.read(local_gemfile)
103 103 end
104 104
105 105 # Load plugins' Gemfiles
106 106 Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
107 107 puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
108 108 #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
109 109 instance_eval File.read(file), file
110 110 end
General Comments 0
You need to be logged in to leave comments. Login now