diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-23 19:48:20 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:59 +0900 |
commit | 640dbdd155625cfbd30c3a00c702dd04ec66c8bc (patch) | |
tree | cae606d70497e3970787d51b00d0e6e4836ec276 | |
parent | 51aaed128a7949fffdc5847ee1949e4b2acc86ff (diff) | |
download | ruby-640dbdd155625cfbd30c3a00c702dd04ec66c8bc.tar.gz |
[bundler/bundler] Better info about spec exclusions
https://github.com/bundler/bundler/commit/1ee77d9c55
-rw-r--r-- | spec/bundler/support/requirement_checker.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/bundler/support/requirement_checker.rb b/spec/bundler/support/requirement_checker.rb index d8f5fd5e5f..e6bd0eb50d 100644 --- a/spec/bundler/support/requirement_checker.rb +++ b/spec/bundler/support/requirement_checker.rb @@ -6,6 +6,14 @@ class RequirementChecker < Proc new do |required| !Gem::Requirement.new(required).satisfied_by?(provided) + end.tap do |checker| + checker.provided = provided end end + + attr_accessor :provided + + def inspect + "\"!= #{provided}\"" + end end |