rubygems-update 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +7 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/package.rb +6 -2
- data/test/rubygems/test_gem_package.rb +13 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79018046efd7dc6889d866e6ea75830e8410e852
|
4
|
+
data.tar.gz: 228fe5ada9988cd6813cbcc9756f6d9b2af5efde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecdfa6a1a3f9cb6ad930967adeb88fd0df589787baebe63d48c9275a6fe053acdaacc5302a1572becbf4555a63e61e666b91593a93042d1ebac1fe3ea9f661b3
|
7
|
+
data.tar.gz: 0a904be4b33d3e6d5a783c729984db008fadb09fe46c63046b607d762d45ef1865de2b9a033580dc9cfa5717c6f36cef79b0524c56424de2840679e33e9bfa8c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -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:
|
data/lib/rubygems.rb
CHANGED
data/lib/rubygems/package.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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.
|
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-
|
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.
|
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
|