rubygems-update 2.1.6 → 2.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb17f443c52c3e9d111c851bc1586c5a95ed1a11
4
- data.tar.gz: 8aaf7b4e989d1a519adee5c7abe0f47aedd60680
3
+ metadata.gz: c20c7c669b32417a83211d35eeff0d0d98713e7d
4
+ data.tar.gz: bd5443e865df6b0ce628a5965697b774c86d3ac3
5
5
  SHA512:
6
- metadata.gz: 424cbda40e4f296d31ed0c257a9b4ede1b138658523afc34ef9886bbc258a02e96fbceb75b322c186522b6024d1239313c7a8028f3262aa8ee2c7778186d6d9e
7
- data.tar.gz: 1db97669760cc8a82a966bca59108cdf3cd9b6290bc807b8ee5038ae8a44f9c7f037a94b2a505529c4eecb8705bd260202dcd00f56d0f948765cdcca635d96f6
6
+ metadata.gz: 4613025ac39f89bd6e74699f2f3b6a46de2bdeb5e76617e1623014d339aff631e56e5d2dac5acb908dd7cabfb9e30da1043ce6d45eb85751b4ad26dc2d637cda
7
+ data.tar.gz: c19dd4c9508c24558e644483d17158266825b9dc8220719be5caa292f2edc9c81b9e0c9c8ac6568c249e1da4163034de2c364ca6023ba203579275845ea41895
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,5 +1,20 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.1.7 / 2013-10-09
4
+
5
+ Bug fixes:
6
+
7
+ * `gem sources --list` now displays a list of sources. Pull request #672 by
8
+ Nathan Marley.
9
+ * RubyGems no longer alters Gem::Specification.dirs when installing. Pull
10
+ Request #670 by Vít Ondruch
11
+ * Use RFC 2616-compatible time in HTTP headers. Pull request #655 by Larry
12
+ Marburger.
13
+ * RubyGems now gives a more descriptive message for missing licenses on
14
+ validation. Issue #656 by Markus Heiler.
15
+ * Expand unpack destination directory. This fixes problems when File.realpath
16
+ is missing and $GEM_HOME contains "..". Issue #679 by Charles Nutter.
17
+
3
18
  === 2.1.6 / 2013-10-08
4
19
 
5
20
  Bug fixes:
@@ -155,6 +170,23 @@ Bug fixes:
155
170
  * Fixed credential creation for `gem push` when `--host` is not given. Pull
156
171
  request #622 by Arthur Nogueira Neves
157
172
 
173
+ === 2.0.11 / 2013-10-08
174
+
175
+ Bug fixes:
176
+
177
+ * Added certificates to follow the s3.amazonaws.com certificate change. Fixes
178
+ #665 by emeyekayee. Fixes #671 by jonforums.
179
+ * Remove redundant built-in certificates not needed for https://rubygems.org
180
+ Fixes #654 by Vít Ondruch.
181
+ * Added test for missing certificates for https://s3.amazonaws.com or
182
+ https://rubygems.org. Pull request #673 by Hannes Georg.
183
+ * RubyGems now allows a Pathname for Kernel#require like the built-in
184
+ Kernel#require. Pull request #663 by Aaron Patterson.
185
+ * Required rbconfig in Gem::ConfigFile for Ruby 1.9.1 compatibility. (Ruby
186
+ 1.9.1 is no longer receiving security fixes, so please update to a newer
187
+ version.) Issue #676 by Michal Papis. Issue wayneeseguin/rvm#2262 by
188
+ Thomas Sänger.
189
+
158
190
  === 2.0.10 / 2013-09-24
159
191
 
160
192
  Security fixes:
@@ -650,6 +682,18 @@ $SAFE=1. There is no functional difference compared to Ruby 2.0.0.preview2
650
682
  * URI scheme matching is no longer case-sensitive. Fixes #322
651
683
  * ext/builder now checks $MAKE as well as $make (okkez)
652
684
 
685
+ === 1.8.28 / 2013-10-08
686
+
687
+ Bug fixes:
688
+
689
+ * Added the Verisign Class 3 Public Primary Certification Authority G5
690
+ certificate and its intermediary to follow the s3.amazonaws.com certificate
691
+ change. Fixes #665 by emeyekayee. Fixes #671 by jonforums.
692
+ * Remove redundant built-in certificates not needed for https://rubygems.org
693
+ Fixes #654 by Vít Ondruch.
694
+ * Added test for missing certificates for https://s3.amazonaws.com or
695
+ https://rubygems.org. Pull request #673 by Hannes Georg.
696
+
653
697
  === 1.8.27 / 2013-09-24
654
698
 
655
699
  Security fixes:
data/lib/rubygems.rb CHANGED
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = '2.1.6'
11
+ VERSION = '2.1.7'
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -154,8 +154,7 @@ To remove a source use the --remove argument:
154
154
  end
155
155
 
156
156
  def list? # :nodoc:
157
- !(options[:list] ||
158
- options[:add] ||
157
+ !(options[:add] ||
159
158
  options[:clear_all] ||
160
159
  options[:remove] ||
161
160
  options[:update])
@@ -74,12 +74,6 @@ class Gem::DependencyInstaller
74
74
  @only_install_dir = !!options[:install_dir]
75
75
  @install_dir = options[:install_dir] || Gem.dir
76
76
 
77
- if options[:install_dir] then
78
- # HACK shouldn't change the global settings, needed for -i behavior
79
- # maybe move to the install command? See also github #442
80
- Gem::Specification.dirs = @install_dir
81
- end
82
-
83
77
  options = DEFAULT_OPTIONS.merge options
84
78
 
85
79
  @bin_dir = options[:bin_dir]
@@ -386,6 +386,7 @@ EOM
386
386
 
387
387
  destination_dir = File.realpath destination_dir if
388
388
  File.respond_to? :realpath
389
+ destination_dir = File.expand_path destination_dir
389
390
 
390
391
  destination = File.join destination_dir, filename
391
392
  destination = File.expand_path destination
@@ -114,8 +114,7 @@ class Gem::Request
114
114
  request.add_field 'Keep-Alive', '30'
115
115
 
116
116
  if @last_modified then
117
- @last_modified = @last_modified.utc
118
- request.add_field 'If-Modified-Since', @last_modified.rfc2822
117
+ request.add_field 'If-Modified-Since', @last_modified.httpdate
119
118
  end
120
119
 
121
120
  yield request if block_given?
@@ -510,6 +510,9 @@ class Gem::Specification < Gem::BasicSpecification
510
510
  # This should just be the name of your license. The full
511
511
  # text of the license should be inside of the gem when you build it.
512
512
  #
513
+ # See http://opensource.org/licenses/alphabetical for a list of licenses and
514
+ # their abbreviations (or short names).
515
+ #
513
516
  # You can set multiple licenses with #licenses=
514
517
  #
515
518
  # Usage:
@@ -527,6 +530,8 @@ class Gem::Specification < Gem::BasicSpecification
527
530
  # This should just be the name of your license. The full
528
531
  # text of the license should be inside of the gem when you build it.
529
532
  #
533
+ # See #license= for more discussion
534
+ #
530
535
  # Usage:
531
536
  # spec.licenses = ['MIT', 'GPL-2']
532
537
 
@@ -1835,6 +1840,8 @@ class Gem::Specification < Gem::BasicSpecification
1835
1840
 
1836
1841
  ##
1837
1842
  # Plural accessor for setting licenses
1843
+ #
1844
+ # See #license= for details
1838
1845
 
1839
1846
  def licenses
1840
1847
  @licenses ||= []
@@ -2450,7 +2457,10 @@ class Gem::Specification < Gem::BasicSpecification
2450
2457
  end
2451
2458
  }
2452
2459
 
2453
- alert_warning 'licenses is empty' if licenses.empty?
2460
+ alert_warning <<-warning if licenses.empty?
2461
+ licenses is empty. Use a license abbreviation from:
2462
+ http://opensource.org/licenses/alphabetical
2463
+ warning
2454
2464
 
2455
2465
  validate_permissions
2456
2466
 
@@ -79,7 +79,7 @@ class TestGemCommandsBuildCommand < Gem::TestCase
79
79
  assert_equal [], output
80
80
 
81
81
  if check_licenses
82
- assert_equal "WARNING: licenses is empty\n", @ui.error
82
+ assert_match "WARNING: licenses is empty", @ui.error
83
83
  end
84
84
 
85
85
  gem_file = File.join @tempdir, File.basename(gem.cache_file)
@@ -198,6 +198,23 @@ beta-gems.example.com is not a URI
198
198
  refute File.exist?(dir), 'cache dir removed'
199
199
  end
200
200
 
201
+ def test_execute_list
202
+ @cmd.handle_options %w[--list]
203
+
204
+ use_ui @ui do
205
+ @cmd.execute
206
+ end
207
+
208
+ expected = <<-EOF
209
+ *** CURRENT SOURCES ***
210
+
211
+ #{@gem_repo}
212
+ EOF
213
+
214
+ assert_equal expected, @ui.output
215
+ assert_equal '', @ui.error
216
+ end
217
+
201
218
  def test_execute_remove
202
219
  @cmd.handle_options %W[--remove #{@gem_repo}]
203
220
 
@@ -432,6 +432,22 @@ class TestGemPackage < Gem::Package::TarTestCase
432
432
  "#{@destination} is not allowed", e.message)
433
433
  end
434
434
 
435
+ def test_install_location_dots
436
+ package = Gem::Package.new @gem
437
+
438
+ file = 'file.rb'
439
+
440
+ destination = File.join @destination, 'foo', '..', 'bar'
441
+
442
+ FileUtils.mkdir_p File.join @destination, 'foo'
443
+ FileUtils.mkdir_p File.expand_path destination
444
+
445
+ destination = package.install_location file, destination
446
+
447
+ # this test only fails on ruby missing File.realpath
448
+ assert_equal File.join(@destination, 'bar', 'file.rb'), destination
449
+ end
450
+
435
451
  def test_install_location_extra_slash
436
452
  skip 'no File.realpath on 1.8' if RUBY_VERSION < '1.9'
437
453
  package = Gem::Package.new @gem
@@ -99,7 +99,7 @@ class TestGemRequest < Gem::TestCase
99
99
 
100
100
  def test_fetch_unmodified
101
101
  uri = URI.parse "#{@gem_repo}/specs.#{Gem.marshal_version}"
102
- t = Time.now
102
+ t = Time.utc(2013, 1, 2, 3, 4, 5)
103
103
  @request = Gem::Request.new(uri, Net::HTTP::Get, t, nil)
104
104
  conn = util_stub_connection_for :body => '', :code => 304
105
105
 
@@ -108,7 +108,9 @@ class TestGemRequest < Gem::TestCase
108
108
  assert_equal 304, response.code
109
109
  assert_equal '', response.body
110
110
 
111
- assert_equal t.rfc2822, conn.payload['if-modified-since']
111
+ modified_header = conn.payload['if-modified-since']
112
+
113
+ assert_equal 'Wed, 02 Jan 2013 03:04:05 GMT', modified_header
112
114
  end
113
115
 
114
116
  def test_user_agent
@@ -2021,6 +2021,20 @@ end
2021
2021
  end
2022
2022
  end
2023
2023
 
2024
+ def test_validate_license
2025
+ util_setup_validate
2026
+
2027
+ use_ui @ui do
2028
+ @a1.licenses.clear
2029
+ @a1.validate
2030
+ end
2031
+
2032
+ assert_equal <<-warning, @ui.error
2033
+ WARNING: licenses is empty. Use a license abbreviation from:
2034
+ http://opensource.org/licenses/alphabetical
2035
+ warning
2036
+ end
2037
+
2024
2038
  def test_validate_name
2025
2039
  util_setup_validate
2026
2040
 
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.6
4
+ version: 2.1.7
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-10-08 00:00:00.000000000 Z
35
+ date: 2013-10-09 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
metadata.gz.sig CHANGED
Binary file