mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use :github option in Gemfile and make hashes consistent
This commit is contained in:
parent
c35fd3d306
commit
17f2958d85
2 changed files with 17 additions and 17 deletions
18
Gemfile
18
Gemfile
|
@ -3,30 +3,30 @@ source 'https://rubygems.org'
|
|||
gemspec
|
||||
|
||||
if ENV['AREL']
|
||||
gem 'arel', :path => ENV['AREL']
|
||||
gem 'arel', path: ENV['AREL']
|
||||
else
|
||||
gem 'arel'
|
||||
end
|
||||
|
||||
gem 'rack-test', :git => "git://github.com/brynary/rack-test.git"
|
||||
gem 'rack-test', github: "brynary/rack-test"
|
||||
gem 'bcrypt-ruby', '~> 3.0.0'
|
||||
gem 'jquery-rails'
|
||||
|
||||
if ENV['JOURNEY']
|
||||
gem 'journey', :path => ENV['JOURNEY']
|
||||
gem 'journey', path: ENV['JOURNEY']
|
||||
else
|
||||
gem 'journey', :git => "git://github.com/rails/journey"
|
||||
gem 'journey', github: "rails/journey"
|
||||
end
|
||||
|
||||
if ENV['AR_DEPRECATED_FINDERS']
|
||||
gem 'active_record_deprecated_finders', path: ENV['AR_DEPRECATED_FINDERS']
|
||||
else
|
||||
gem 'active_record_deprecated_finders', git: 'git://github.com/rails/active_record_deprecated_finders'
|
||||
gem 'active_record_deprecated_finders', github: 'rails/active_record_deprecated_finders'
|
||||
end
|
||||
|
||||
# This needs to be with require false to avoid
|
||||
# it being automatically loaded by sprockets
|
||||
gem 'uglifier', '>= 1.0.3', :require => false
|
||||
gem 'uglifier', '>= 1.0.3', require: false
|
||||
|
||||
gem 'rake', '>= 0.8.7'
|
||||
gem 'mocha', '>= 0.11.2'
|
||||
|
@ -36,7 +36,7 @@ group :doc do
|
|||
# to a bug, but the PR that fixes it has been there
|
||||
# for some weeks unapplied. As a temporary solution
|
||||
# this is our own fork with the fix.
|
||||
gem 'sdoc', :git => 'git://github.com/fxn/sdoc.git'
|
||||
gem 'sdoc', github: 'fxn/sdoc'
|
||||
gem 'RedCloth', '~> 4.2'
|
||||
gem 'w3c_validators'
|
||||
end
|
||||
|
@ -90,9 +90,9 @@ if ENV['ORACLE_ENHANCED_PATH'] || ENV['ORACLE_ENHANCED']
|
|||
gem 'ruby-oci8', '>= 2.0.4'
|
||||
end
|
||||
if ENV['ORACLE_ENHANCED_PATH']
|
||||
gem 'activerecord-oracle_enhanced-adapter', :path => ENV['ORACLE_ENHANCED_PATH']
|
||||
gem 'activerecord-oracle_enhanced-adapter', path: ENV['ORACLE_ENHANCED_PATH']
|
||||
else
|
||||
gem 'activerecord-oracle_enhanced-adapter', :git => 'git://github.com/rsim/oracle-enhanced.git'
|
||||
gem 'activerecord-oracle_enhanced-adapter', github: 'rsim/oracle-enhanced'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -138,23 +138,23 @@ module Rails
|
|||
if options.dev?
|
||||
<<-GEMFILE.strip_heredoc
|
||||
gem 'rails', :path => '#{Rails::Generators::RAILS_DEV_PATH}'
|
||||
gem 'journey', :git => 'https://github.com/rails/journey.git'
|
||||
gem 'arel', :git => 'https://github.com/rails/arel.git'
|
||||
gem 'active_record_deprecated_finders', :git => 'git://github.com/rails/active_record_deprecated_finders.git'
|
||||
gem 'journey', :github => 'rails/journey'
|
||||
gem 'arel', :github => 'rails/arel'
|
||||
gem 'active_record_deprecated_finders', :github => 'rails/active_record_deprecated_finders'
|
||||
GEMFILE
|
||||
elsif options.edge?
|
||||
<<-GEMFILE.strip_heredoc
|
||||
gem 'rails', :git => 'https://github.com/rails/rails.git'
|
||||
gem 'journey', :git => 'https://github.com/rails/journey.git'
|
||||
gem 'arel', :git => 'https://github.com/rails/arel.git'
|
||||
gem 'active_record_deprecated_finders', :git => 'git://github.com/rails/active_record_deprecated_finders.git'
|
||||
gem 'rails', :github => 'rails/rails'
|
||||
gem 'journey', :github => 'rails/journey'
|
||||
gem 'arel', :github => 'rails/arel'
|
||||
gem 'active_record_deprecated_finders', :github => 'rails/active_record_deprecated_finders'
|
||||
GEMFILE
|
||||
else
|
||||
<<-GEMFILE.strip_heredoc
|
||||
gem 'rails', '#{Rails::VERSION::STRING}'
|
||||
|
||||
# Bundle edge Rails instead:
|
||||
# gem 'rails', :git => 'https://github.com/rails/rails.git'
|
||||
# gem 'rails', :github => 'rails/rails'
|
||||
GEMFILE
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue