diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-21 23:27:30 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-21 23:27:30 +0000 |
commit | 5307d803f5cce7b14a6afd1d51f6d53ec85ca87d () | |
tree | aac2997a9ff000fbf2f1f9f27077bb7b2403f2c9 /lib/rubygems/request_set/gem_dependency_api.rb | |
parent | b1529a30e08040b717adef8ac1fa8be1c060e7e1 (diff) |
* lib/rubygems: Update to RubyGems master 50a8210. Important changes
in this commit: RubyGems now automatically checks for gem.deps.rb or Gemfile when running ruby executables. This behavior is similar to `bundle exec rake`. This change may be reverted before Ruby 2.1.0 if too many bugs are found. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/rubygems/request_set/gem_dependency_api.rb | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -115,7 +115,7 @@ class Gem::RequestSet::GemDependencyAPI ## # A Hash containing gem names and files to require from those gems. - attr_reader :requires ## # A set of gems that are loaded via the +:path+ option to #gem @@ -125,7 +125,7 @@ class Gem::RequestSet::GemDependencyAPI ## # The groups of gems to exclude from installation - attr_accessor :without_groups ## # Creates a new GemDependencyAPI that will add dependencies to the @@ -282,6 +282,8 @@ class Gem::RequestSet::GemDependencyAPI true end ## # Handles the :group and :groups +options+ for the gem with the given # +name+. @@ -361,7 +363,7 @@ class Gem::RequestSet::GemDependencyAPI def gem_requires name, options # :nodoc: if options.include? :require then if requires = options.delete(:require) then - @requires[name].concat requires end else @requires[name] << name @@ -370,6 +372,11 @@ class Gem::RequestSet::GemDependencyAPI private :gem_requires def git repository @current_repository = repository @@ -424,6 +431,8 @@ class Gem::RequestSet::GemDependencyAPI ## # :category: Gem Dependencies DSL def platform what @current_platform = what @@ -436,6 +445,8 @@ class Gem::RequestSet::GemDependencyAPI ## # :category: Gem Dependencies DSL alias :platforms :platform |