Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge #6923
Browse files Browse the repository at this point in the history
6923: Ignore `Object =~` warnings. r=segiddins a=hsbt

### What was the end-user problem that led to this PR?

We faced a lot of warnings with `rake spec` of bundler repository.

### What was your diagnosis of the problem?

Ruby 2.7.0-dev added the warnings for `Object =~` comparison. 

### What is your fix for the problem, implemented in this PR?

I added the additional condition and bump a version of the development dependency.





Co-authored-by: SHIBATA Hiroshi <[email protected]>
(cherry picked from commit e66e6f2)
  • Loading branch information
bundlerbot authored and colby-swandale committed Apr 1, 2019
1 parent 0bddeb6 commit d92c08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bundler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Gem::Specification.new do |s|

s.add_development_dependency "automatiek", "~> 0.1.0"
s.add_development_dependency "mustache", "0.99.6"
s.add_development_dependency "rake", "~> 10.0"
s.add_development_dependency "rake", "~> 12.0"
s.add_development_dependency "rdiscount", "~> 2.2"
s.add_development_dependency "ronn", "~> 0.7.3"
s.add_development_dependency "rspec", "~> 3.6"
Expand Down
2 changes: 1 addition & 1 deletion spec/support/less_than_proc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class LessThanProc < Proc
def self.with(present)
provided = Gem::Version.new(present.dup)
new do |required|
if required =~ /[=><~]/
if required.is_a?(String) && required =~ /[=><~]/
!Gem::Requirement.new(required).satisfied_by?(provided)
else
provided < Gem::Version.new(required)
Expand Down

0 comments on commit d92c08c

Please sign in to comment.