bundler 1.7.1 → 1.7.2

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: 37c6c8be382fbcd2bff8886e6a5e490997d540a7
4
- data.tar.gz: 2a12c500ea09fbe5c994e6b93b3226e329597d48
3
+ metadata.gz: 255979ae6f36fa64f98d2b107eddf7f1be2399d3
4
+ data.tar.gz: 0ef6bf64f268ec9d6cb84fa7f90e70dd67188f77
5
5
  SHA512:
6
- metadata.gz: bca04ffbb8f955a1f06713fd863baff98f91d11e52058e151e3f01155bf7c23cde1b43e00b0940ba0cb10889d0445a2ca736d39f498782ad9387211bcb943f96
7
- data.tar.gz: 40a3c9193608ff8a40623b6ec722dccd2cc7f2ba739eaca6f022411dd191ed312abc7ed81e278f75495cf96858e5c1756b9b52e7d14aba733d6e08d632c1a683
6
+ metadata.gz: 0bd4bf2ba3b85fbabf842ff5708fc084742871501df7605e6283132bba8df8ec6dcb8ba92e7c870dd9ca8c9beba9de5869709ac19ceac28a1cf69ebb1677f39b
7
+ data.tar.gz: 2e7462d45fd546e05bfff85934c3b96ebae507e0f4a5b43f68c989ce7dc914d47cfd6b558e96b2215d8d99e10fbd9194b32a3d307e278da2089f30c21b5a6b6f
@@ -1,3 +1,9 @@
1
+ ## 1.7.2 (2014-08-23)
2
+
3
+ Bugfixes:
4
+
5
+ - Revert gem source sorting in lock files (@indirect)
6
+
1
7
  ## 1.7.1 (2014-08-20)
2
8
 
3
9
  Bugfixes:
@@ -118,6 +118,9 @@ module Bundler
118
118
  end
119
119
 
120
120
  post_install_message
121
+ rescue Errno::ENOSPC
122
+ raise Bundler::InstallError, "Your disk is out of space. Free some " \
123
+ "space to be able to install your bundle."
121
124
  rescue Exception => e
122
125
  # if install hook failed or gem signature is bad, just die
123
126
  raise e if e.is_a?(Bundler::InstallHookError) || e.is_a?(Bundler::SecurityError)
@@ -103,7 +103,7 @@ module Bundler
103
103
  name
104
104
  end
105
105
 
106
- private
106
+ private
107
107
 
108
108
  def expand(somepath)
109
109
  somepath.expand_path(Bundler.root)
@@ -344,6 +344,7 @@ module Bundler
344
344
  def remotes_equal?(other_remotes)
345
345
  remotes.map(&method(:suppress_configured_credentials)) == other_remotes.map(&method(:suppress_configured_credentials))
346
346
  end
347
+
347
348
  end
348
349
  end
349
350
  end
@@ -37,7 +37,8 @@ module Bundler
37
37
  end
38
38
 
39
39
  def lock_sources
40
- (path_sources + git_sources) << combine_rubygems_sources
40
+ lock_sources = (path_sources + git_sources).sort_by(&:to_s)
41
+ lock_sources << combine_rubygems_sources
41
42
  end
42
43
 
43
44
  def replace_sources!(replacement_sources)
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.7.1" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.7.2" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -291,12 +291,12 @@ describe Bundler::SourceList do
291
291
  source_list.add_git_source('uri' => 'git://first-git.org/path.git')
292
292
 
293
293
  expect(source_list.lock_sources).to eq [
294
- Bundler::Source::Path.new('path' => '/first/path/to/gem'),
295
- Bundler::Source::Path.new('path' => '/second/path/to/gem'),
296
- Bundler::Source::Path.new('path' => '/third/path/to/gem'),
297
294
  Bundler::Source::Git.new('uri' => 'git://first-git.org/path.git'),
298
295
  Bundler::Source::Git.new('uri' => 'git://second-git.org/path.git'),
299
296
  Bundler::Source::Git.new('uri' => 'git://third-git.org/path.git'),
297
+ Bundler::Source::Path.new('path' => '/first/path/to/gem'),
298
+ Bundler::Source::Path.new('path' => '/second/path/to/gem'),
299
+ Bundler::Source::Path.new('path' => '/third/path/to/gem'),
300
300
  Bundler::Source::Rubygems.new('remotes' => [
301
301
  'https://first-rubygems.org',
302
302
  'https://second-rubygems.org',
@@ -144,7 +144,7 @@ describe "the lockfile format" do
144
144
  G
145
145
  end
146
146
 
147
- it "does not assplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do
147
+ it "does not asplode when a platform specific dependency is present and the Gemfile has not been resolved on that platform" do
148
148
  build_lib "omg", :path => lib_path('omg')
149
149
 
150
150
  gemfile <<-G
@@ -285,6 +285,45 @@ describe "the lockfile format" do
285
285
  G
286
286
  end
287
287
 
288
+ it "sorts serialized sources by type" do
289
+ build_lib "foo"
290
+ bar = build_git "bar"
291
+
292
+ install_gemfile <<-G
293
+ source "file://#{gem_repo1}"
294
+
295
+ gem "rack"
296
+ gem "foo", :path => "#{lib_path("foo-1.0")}"
297
+ gem "bar", :git => "#{lib_path("bar-1.0")}"
298
+ G
299
+
300
+ lockfile_should_be <<-G
301
+ GIT
302
+ remote: #{lib_path("bar-1.0")}
303
+ revision: #{bar.ref_for('master')}
304
+ specs:
305
+ bar (1.0)
306
+
307
+ PATH
308
+ remote: #{lib_path("foo-1.0")}
309
+ specs:
310
+ foo (1.0)
311
+
312
+ GEM
313
+ remote: file:#{gem_repo1}/
314
+ specs:
315
+ rack (1.0.0)
316
+
317
+ PLATFORMS
318
+ #{generic(Gem::Platform.local)}
319
+
320
+ DEPENDENCIES
321
+ bar!
322
+ foo!
323
+ rack
324
+ G
325
+ end
326
+
288
327
  it "lists gems alphabetically" do
289
328
  install_gemfile <<-G
290
329
  source "file://#{gem_repo1}"
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.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-23 00:00:00.000000000 Z
14
+ date: 2014-08-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rdiscount