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