aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorHomu <homu@barosl.com>2016-05-16 10:46:44 +0900
committerHomu <homu@barosl.com>2016-05-16 10:46:44 +0900
commitc6a5a1cadd4241f3c3665f59e206a2aef5b153dc (patch)
treec2ee56e3c8dff3afe43e5db6398bd696c2a14ece /lib/bundler/source
parenteffa1470abb431f652ac33196617777aebf93799 (diff)
parent85ade93f06247a83c5f6f25177b83c3566ce107c (diff)
downloadbundler-c6a5a1cadd4241f3c3665f59e206a2aef5b153dc.tar.gz
Auto merge of #4386 - bundler:seg-fix-dash-pre, r=segiddins
[Git] Fix checking for equality when a version includes a - Closes #4385.
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb
index 7926a7b5..2bbb5092 100644
--- a/lib/bundler/source/git.rb
+++ b/lib/bundler/source/git.rb
@@ -25,7 +25,7 @@ module Bundler
@ref = options["ref"] || options["branch"] || options["tag"] || "master"
@submodules = options["submodules"]
@name = options["name"]
- @version = options["version"]
+ @version = options["version"].to_s.strip.gsub("-", ".pre.")
@copied = false
@local = false