rubygems-update 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e3ed90822286092f8c037656b97f1b4ed222380
4
- data.tar.gz: c4d5567bdb949f2a8faa021ddaef8e39b25238c5
3
+ metadata.gz: 79018046efd7dc6889d866e6ea75830e8410e852
4
+ data.tar.gz: 228fe5ada9988cd6813cbcc9756f6d9b2af5efde
5
5
  SHA512:
6
- metadata.gz: 46210a272d8b29be4bd5110d8ba01bf6fbf6d22ef90e66e6aa672d13fbfe465ec65b8a2b03d66a86808f0900e76372a9a84190d26f1b387b15ce54e478b6c9c7
7
- data.tar.gz: 65ca08d935214dd203915cf73a5893a67ecdc3e00c18d1621942f57ca68202b294f42648e6c72dc588752e907fe94712c4f8bf30c7082f3fe5a659918c5b1e12
6
+ metadata.gz: ecdfa6a1a3f9cb6ad930967adeb88fd0df589787baebe63d48c9275a6fe053acdaacc5302a1572becbf4555a63e61e666b91593a93042d1ebac1fe3ea9f661b3
7
+ data.tar.gz: 0a904be4b33d3e6d5a783c729984db008fadb09fe46c63046b607d762d45ef1865de2b9a033580dc9cfa5717c6f36cef79b0524c56424de2840679e33e9bfa8c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,12 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.1.3 / 2013-09-12
4
+
5
+ Bug fixes:
6
+
7
+ * Gems with files entries starting with "./" no longer install 0 files. Issue
8
+ #644 by Darragh Curran, #645 by Brandon Turner, #646 by Alex Tambellini
9
+
3
10
  === 2.1.2 / 2013-09-11
4
11
 
5
12
  Bug fixes:
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = '2.1.2'
11
+ VERSION = '2.1.3'
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -339,9 +339,13 @@ EOM
339
339
  def extract_tar_gz io, destination_dir, pattern = "*" # :nodoc:
340
340
  open_tar_gz io do |tar|
341
341
  tar.each do |entry|
342
- next unless File.fnmatch pattern, entry.full_name
342
+ # Some entries start with "./" which fnmatch does not like, see github
343
+ # issue #644
344
+ full_name = entry.full_name.sub %r%\A\./%, ''
343
345
 
344
- destination = install_location entry.full_name, destination_dir
346
+ next unless File.fnmatch pattern, full_name
347
+
348
+ destination = install_location full_name, destination_dir
345
349
 
346
350
  FileUtils.rm_rf destination
347
351
 
@@ -396,6 +396,19 @@ class TestGemPackage < Gem::Package::TarTestCase
396
396
  "#{@destination} is not allowed", e.message)
397
397
  end
398
398
 
399
+ def test_extract_tar_gz_dot_slash
400
+ package = Gem::Package.new @gem
401
+
402
+ tgz_io = util_tar_gz do |tar|
403
+ tar.add_file './dot_slash.rb', 0644 do |io| io.write 'hi' end
404
+ end
405
+
406
+ package.extract_tar_gz tgz_io, @destination
407
+
408
+ extracted = File.join @destination, 'dot_slash.rb'
409
+ assert_path_exists extracted
410
+ end
411
+
399
412
  def test_install_location
400
413
  package = Gem::Package.new @gem
401
414
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Weirich
@@ -32,7 +32,7 @@ cert_chain:
32
32
  KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
33
33
  wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
34
34
  -----END CERTIFICATE-----
35
- date: 2013-09-11 00:00:00.000000000 Z
35
+ date: 2013-09-13 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
@@ -492,7 +492,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
492
492
  version: '0'
493
493
  requirements: []
494
494
  rubyforge_project: rubygems-update
495
- rubygems_version: 2.1.1
495
+ rubygems_version: 2.1.2
496
496
  signing_key:
497
497
  specification_version: 4
498
498
  summary: RubyGems is a package management framework for Ruby
metadata.gz.sig CHANGED
Binary file