Skip to content

Commit 746e0d3

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Deprecate unused Bundler#SpecSet methods
ruby/rubygems@380c95ce05
1 parent 7c326ee commit 746e0d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/bundler/spec_set.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def insecurely_materialized_specs
179179
end
180180

181181
def -(other)
182+
SharedHelpers.major_deprecation 2, "SpecSet#- has been removed with no replacement"
183+
182184
SpecSet.new(to_a - other.to_a)
183185
end
184186

@@ -210,6 +212,8 @@ def what_required(spec)
210212
end
211213

212214
def <<(spec)
215+
SharedHelpers.major_deprecation 2, "SpecSet#<< has been removed with no replacement"
216+
213217
@specs << spec
214218
end
215219

0 commit comments

Comments
 (0)