diff options
| author | Jerome Dalbert <jerome.dalbert@gmail.com> | 2024-06-26 16:38:59 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-07-02 19:53:29 +0000 |
| commit | d5500e621cde07cd0b30aa0b752f8fd5819adef8 (patch) | |
| tree | 98d2d7115e65b1ab13d2719a61048ce2fd2eec57 /lib | |
| parent | b2b8306b469329ccd7f44dc4b62b7eeb344ed338 (diff) | |
[rubygems/rubygems] Feature add_dependency more prominently
https://github.com/rubygems/rubygems/commit/0236cb6191
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems/specification.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 0f3828cc70..7160064dd2 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -546,9 +546,9 @@ class Gem::Specification < Gem::BasicSpecification # # Usage: # - # spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4' + # spec.add_dependency 'example', '~> 1.1', '>= 1.1.4' - def add_runtime_dependency(gem, *requirements) + def add_dependency(gem, *requirements) if requirements.uniq.size != requirements.size warn "WARNING: duplicated #{gem} dependency #{requirements}" end @@ -1504,7 +1504,7 @@ class Gem::Specification < Gem::BasicSpecification private :add_dependency_with_type - alias_method :add_dependency, :add_runtime_dependency + alias_method :add_runtime_dependency, :add_dependency ## # Adds this spec's require paths to LOAD_PATH, in the proper location. |
