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