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