comparison Gemfile @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents 3e4c3460b6ca
children 4f746d8966dd
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 source 'http://rubygems.org' 1 source 'https://rubygems.org'
2 2
3 gem "rails", "3.2.13" 3 gem "rails", "3.2.13"
4 gem "jquery-rails", "~> 2.0.2" 4 gem "jquery-rails", "~> 2.0.2"
5 gem "i18n", "~> 0.6.0" 5 gem "i18n", "~> 0.6.0"
6 gem "coderay", "~> 1.0.6" 6 gem "coderay", "~> 1.0.9"
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 9
10 # Optional gem for LDAP authentication 10 # Optional gem for LDAP authentication
11 group :ldap do 11 group :ldap do
26 # different requirements for the same gem on different platforms 26 # different requirements for the same gem on different platforms
27 gem "rmagick", ">= 2.0.0" 27 gem "rmagick", ">= 2.0.0"
28 end 28 end
29 end 29 end
30 30
31 # Database gems 31 platforms :jruby do
32 platforms :mri, :mingw do 32 # jruby-openssl is bundled with JRuby 1.7.0
33 group :postgresql do 33 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
34 gem "pg", ">= 0.11.0" 34 gem "activerecord-jdbc-adapter", "1.2.5"
35 end
36
37 group :sqlite do
38 gem "sqlite3"
39 end
40 end 35 end
41 36
42 platforms :mri_18, :mingw_18 do 37 # Include database gems for the adapters found in the database
43 group :mysql do 38 # configuration file
44 gem "mysql", "~> 2.8.1" 39 require 'erb'
40 require 'yaml'
41 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
42 if File.exist?(database_file)
43 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
44 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
45 if adapters.any?
46 adapters.each do |adapter|
47 case adapter
48 when 'mysql2'
49 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
50 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
51 when 'mysql'
52 gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
53 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
54 when /postgresql/
55 gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
56 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
57 when /sqlite3/
58 gem "sqlite3", :platforms => [:mri, :mingw]
59 gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
60 when /sqlserver/
61 gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
62 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
63 else
64 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
65 end
66 end
67 else
68 warn("No adapter found in config/database.yml, please configure it first")
45 end 69 end
46 end 70 else
47 71 warn("Please configure your config/database.yml first")
48 platforms :mri_19, :mingw_19 do
49 group :mysql do
50 gem "mysql2", "~> 0.3.11"
51 end
52 end
53
54 platforms :jruby do
55 gem "jruby-openssl"
56
57 group :mysql do
58 gem "activerecord-jdbcmysql-adapter"
59 end
60
61 group :postgresql do
62 gem "activerecord-jdbcpostgresql-adapter"
63 end
64
65 group :sqlite do
66 gem "activerecord-jdbcsqlite3-adapter"
67 end
68 end 72 end
69 73
70 group :development do 74 group :development do
71 gem "rdoc", ">= 2.4.2" 75 gem "rdoc", ">= 2.4.2"
72 gem "yard" 76 gem "yard"
73 end 77 end
74 78
75 group :test do 79 group :test do
76 gem "shoulda", "~> 2.11" 80 gem "shoulda", "~> 3.3.2"
77 # Shoulda does not work nice on Ruby 1.9.3 and JRuby 1.7.
78 # It seems to need test-unit explicitely.
79 platforms = [:mri_19]
80 platforms << :jruby if defined?(JRUBY_VERSION) && JRUBY_VERSION >= "1.7"
81 gem "test-unit", :platforms => platforms
82 gem "mocha", "~> 0.13.3" 81 gem "mocha", "~> 0.13.3"
82 gem 'capybara', '~> 2.0.0'
83 gem 'nokogiri', '< 1.6.0'
83 end 84 end
84 85
85 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local") 86 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
86 if File.exists?(local_gemfile) 87 if File.exists?(local_gemfile)
87 puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v` 88 puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`