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