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