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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c6e3bb6749fe497b955858e6fd5adc9c1ccbe23
4
- data.tar.gz: cc7858b1fd4b74f7e71c97c62ded46317d02690b
3
+ metadata.gz: 9c9a04aef5d35eb0d46b8dfbf09ff67ec6b469a4
4
+ data.tar.gz: 29d059ffea6bf0a4252ee2975e78978fb1126f0c
5
5
  SHA512:
6
- metadata.gz: f3cfde8e2f4d42e3a83ce2a1a573e4a7e19fd0abdd98f9de9fffa89d6516e6cf28fceddaca0b685d0f4c921ed489901c421773ee4d3079a954e66943a6bde899
7
- data.tar.gz: 36c8f8d9c9953ac8738c251d4f234dc230a53b29ca65142a3597fe6455ea60181db264295b7c656b3926789c80e32aafe7216da57923194037b69a9d3f827df5
6
+ metadata.gz: 35855987103a58875f5b679affc27083a4c7bd4488ba5db6460996f397ec5cb91dc9851b43599aff30bec2a55f7ff2521dcb4dd48a4e46795c36579eedf0b4a0
7
+ data.tar.gz: 812c1960b3f08c75443ca2b3d50958307519afc3e561c412be74bd082ff8f3ec4746eb0de14de0ebf7fca84753e81300ff2ed55349548daea32dd65eb080dfca
@@ -1,3 +1,9 @@
1
+ ## 1.12.0.rc.4 (2016-04-21)
2
+
3
+ Bugfixes:
4
+
5
+ - don't fail when `bundle outdated` is run with flags and the lockfile contains non-semver versions (#4438, @RochesterinNYC)
6
+
1
7
  ## 1.12.0.rc.3 (2016-04-19)
2
8
 
3
9
  Bugfixes:
@@ -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.version.segments[1, 1].first
131
- active_minor = active_spec.version.segments[1, 1].first
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.version.segments[2, 1].first
137
- active_patch = active_spec.version.segments[2, 1].first
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
@@ -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.3" unless defined?(::Bundler::VERSION)
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.3
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-20 00:00:00.000000000 Z
14
+ date: 2016-04-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: automatiek