diff options
author | Boggs <hello@boggs.xyz> | 2016-06-28 11:30:02 +0800 |
---|---|---|
committer | Boggs <hello@boggs.xyz> | 2016-06-28 11:30:02 +0800 |
commit | fa19434a2100732b829f6327b3112c0f732705dd (patch) | |
tree | 8f36dda3dfc1e8fa32e578453c34c66956595fa6 /lib/bundler/postit_trampoline.rb | |
parent | a69998879aaa6510c93eff7c2875fda45f924964 (diff) | |
download | bundler-fa19434a2100732b829f6327b3112c0f732705dd.tar.gz |
Modify condition for warning
Diffstat (limited to 'lib/bundler/postit_trampoline.rb')
-rw-r--r-- | lib/bundler/postit_trampoline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/postit_trampoline.rb b/lib/bundler/postit_trampoline.rb index c28eb3e3..d1569aa4 100644 --- a/lib/bundler/postit_trampoline.rb +++ b/lib/bundler/postit_trampoline.rb @@ -49,7 +49,7 @@ rescue LoadError, NameError nil end -if Gem::Version.new(running_version) >= Gem::Version.new("1.13.0.rc.1".dup) +if Gem::Requirement.new(">= 1.13.pre".dup).satisfied_by?(Gem::Version.new(running_version)) ENV["BUNDLE_POSTIT_TRAMPOLINING_VERSION"] = installed_version.to_s elsif ARGV.any? {|a| %w(install i).include? a } # TODO: Change this to warn in Bundler 2.0 |