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

Commit

Permalink
Backport Requirement#exact? ffor RG < ~2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 23, 2016
1 parent e9eabda commit 84202ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bundler/rubygems_ext.rb
Expand Up @@ -159,6 +159,11 @@ class Requirement
def none?
@none ||= (to_s == ">= 0")
end unless allocate.respond_to?(:none?)

def exact?
return false unless @requirements.size == 1
@requirements[0][0] == "="
end unless allocate.respond_to?(:exact?)
end

class Platform
Expand Down

0 comments on commit 84202ea

Please sign in to comment.