bundler 1.12.0.rc.3 → 1.12.0.rc.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bundler/cli/outdated.rb +9 -4
- data/lib/bundler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c9a04aef5d35eb0d46b8dfbf09ff67ec6b469a4
|
4
|
+
data.tar.gz: 29d059ffea6bf0a4252ee2975e78978fb1126f0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35855987103a58875f5b679affc27083a4c7bd4488ba5db6460996f397ec5cb91dc9851b43599aff30bec2a55f7ff2521dcb4dd48a4e46795c36579eedf0b4a0
|
7
|
+
data.tar.gz: 812c1960b3f08c75443ca2b3d50958307519afc3e561c412be74bd082ff8f3ec4746eb0de14de0ebf7fca84753e81300ff2ed55349548daea32dd65eb080dfca
|
data/CHANGELOG.md
CHANGED
data/lib/bundler/cli/outdated.rb
CHANGED
@@ -127,14 +127,14 @@ module Bundler
|
|
127
127
|
update_present = active_major > current_major if options[:major]
|
128
128
|
|
129
129
|
if !update_present && (options[:minor] || options[:patch]) && current_major == active_major
|
130
|
-
current_minor = current_spec
|
131
|
-
active_minor = active_spec
|
130
|
+
current_minor = get_version_semver_portion_value(current_spec, 1)
|
131
|
+
active_minor = get_version_semver_portion_value(active_spec, 1)
|
132
132
|
|
133
133
|
update_present = active_minor > current_minor if options[:minor]
|
134
134
|
|
135
135
|
if !update_present && options[:patch] && current_minor == active_minor
|
136
|
-
current_patch = current_spec
|
137
|
-
active_patch = active_spec
|
136
|
+
current_patch = get_version_semver_portion_value(current_spec, 2)
|
137
|
+
active_patch = get_version_semver_portion_value(active_spec, 2)
|
138
138
|
|
139
139
|
update_present = active_patch > current_patch
|
140
140
|
end
|
@@ -142,5 +142,10 @@ module Bundler
|
|
142
142
|
|
143
143
|
update_present
|
144
144
|
end
|
145
|
+
|
146
|
+
def get_version_semver_portion_value(spec, version_portion_index)
|
147
|
+
version_section = spec.version.segments[version_portion_index, 1]
|
148
|
+
version_section.nil? ? 0 : (version_section.first || 0)
|
149
|
+
end
|
145
150
|
end
|
146
151
|
end
|
data/lib/bundler/version.rb
CHANGED
@@ -7,5 +7,5 @@ module Bundler
|
|
7
7
|
# We're doing this because we might write tests that deal
|
8
8
|
# with other versions of bundler and we are unsure how to
|
9
9
|
# handle this better.
|
10
|
-
VERSION = "1.12.0.rc.
|
10
|
+
VERSION = "1.12.0.rc.4" unless defined?(::Bundler::VERSION)
|
11
11
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.0.rc.
|
4
|
+
version: 1.12.0.rc.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Arko
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-04-
|
14
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: automatiek
|