##// END OF EJS Templates
Merged r12897....
Merged r12897. git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@12898 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r12459:9e71d89cdb35
r12623:8b9a2ff871b3
Show More
Gemfile
106 lines | 3.4 KiB | text/x-ruby | RubyLexer
Toshi MARUYAMA
back out r11486...
r11257 source 'https://rubygems.org'
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784
Toshi MARUYAMA
update Rails version 3.2.16...
r12100 gem "rails", "3.2.16"
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 gem "jquery-rails", "~> 2.0.2"
Jean-Philippe Lang
Upgrade CodeRay to 1.1.0 (#8253)....
r12008 gem "coderay", "~> 1.1.0"
Jean-Philippe Lang
Removed faster_csv from lib (#5638)....
r8786 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
Jean-Philippe Lang
XML output broken with builder 3.0.1....
r10123 gem "builder", "3.0.0"
Jean-Philippe Lang
Use the mime-types gem for getting mime types from filenames (#15790)....
r12208 gem "mime-types"
Toshi MARUYAMA
Gemfile: use awesome_nested_set 2.1.6 gem...
r12459 gem "awesome_nested_set", "2.1.6"
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784
# Optional gem for LDAP authentication
group :ldap do
Jean-Philippe Lang
Upgrade to net-ldap 0.3.1 (#10272)....
r8788 gem "net-ldap", "~> 0.3.1"
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
# Optional gem for OpenID authentication
group :openid do
Toshi MARUYAMA
Gemfile: update ruby-openid version above 2.3.0 (#14919)...
r11943 gem "ruby-openid", "~> 2.3.0", :require => "openid"
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 gem "rack-openid"
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
Jean-Philippe Lang
Do not install rmagick gem with jruby....
r9207 platforms :mri, :mingw do
Jean-Philippe Lang
Don't load redcarpet with JRuby....
r12178 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
Jean-Philippe Lang
Do not install rmagick gem with jruby....
r9207 group :rmagick do
# RMagick 2 supports ruby 1.9
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
# different requirements for the same gem on different platforms
gem "rmagick", ">= 2.0.0"
end
Jean-Philippe Lang
Don't load redcarpet with JRuby....
r12178
# Optional Markdown support, not for JRuby
group :markdown do
# TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped
gem "redcarpet", "~> 2.3.0"
end
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
platforms :jruby do
Jean-Philippe Lang
Don't use jruby-openssl with JRuby 1.7.0 (#12228)....
r10728 # jruby-openssl is bundled with JRuby 1.7.0
gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
Toshi MARUYAMA
upgrade activerecord-jdbc-adapter to 1.3.2...
r12024 gem "activerecord-jdbc-adapter", "~> 1.3.2"
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 end
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 # Include database gems for the adapters found in the database
# configuration file
Jean-Philippe Lang
Parse database.yml with erb (#13004)....
r11056 require 'erb'
Toshi MARUYAMA
Ruby2.0: add "require 'yaml'" to Gemfile...
r11258 require 'yaml'
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
if File.exist?(database_file)
Jean-Philippe Lang
Parse database.yml with erb (#13004)....
r11056 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
if adapters.any?
adapters.each do |adapter|
case adapter
Jean-Philippe Lang
Distinguish mysql/mysql2 adapters in Gemfile (#13270)....
r11264 when 'mysql2'
gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
when 'mysql'
gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
when /postgresql/
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
when /sqlite3/
gem "sqlite3", :platforms => [:mri, :mingw]
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
when /sqlserver/
gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
else
Jean-Philippe Lang
More specific warning....
r11022 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 end
end
else
Jean-Philippe Lang
Don't abort when database.yml is not present....
r10972 warn("No adapter found in config/database.yml, please configure it first")
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
Jean-Philippe Lang
Bundle only the required database gems and adds sqlserver support (#12713)....
r10964 else
Jean-Philippe Lang
Don't abort when database.yml is not present....
r10972 warn("Please configure your config/database.yml first")
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
group :development do
gem "rdoc", ">= 2.4.2"
Etienne Massip
Added yard to development gems....
r9518 gem "yard"
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
group :test do
Jean-Philippe Lang
Upgrade shoulda....
r11094 gem "shoulda", "~> 3.3.2"
Toshi MARUYAMA
upgrade mocha 0.14 and remove deprecation warning...
r11666 gem "mocha", ">= 0.14", :require => 'mocha/api'
Toshi MARUYAMA
install capybara on only Ruby 1.9.3 or higher (#12822)...
r11576 if RUBY_VERSION >= '1.9.3'
Toshi MARUYAMA
upgrade capybara to 2.1 (#12822)...
r11575 gem "capybara", "~> 2.1.0"
gem "selenium-webdriver"
end
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end
Jean-Philippe Lang
Load Gemfile.local with absolute path....
r9316 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.exists?(local_gemfile)
Jean-Philippe Lang
Load Gemfile.local if present....
r9212 puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
Jean-Philippe Lang
Load Gemfile.local with absolute path....
r9316 instance_eval File.read(local_gemfile)
Jean-Philippe Lang
Load Gemfile.local if present....
r9212 end
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 # Load plugins' Gemfiles
Jean-Philippe Lang
Fixed path for loading plugin Gemfile (#10811)....
r9431 Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
Jean-Baptiste Barth
Improve plugins' Gemfile loading (#14028)....
r11596 #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
instance_eval File.read(file), file
Jean-Philippe Lang
Use Bundler for gem management (#5638)....
r8784 end