rubygems-update 1.8.2 → 1.8.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.
- data.tar.gz.sig +0 -0
- data/History.txt +12 -1
- data/Rakefile +7 -0
- data/lib/rubygems.rb +3 -3
- data/lib/rubygems/specification.rb +5 -1
- data/test/rubygems/test_gem_dependency_installer.rb +2 -2
- data/test/rubygems/test_gem_package_tar_output.rb +1 -0
- data/test/rubygems/test_gem_specification.rb +32 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
=== 1.8.
|
1
|
+
=== 1.8.3 / 2011-05-19
|
2
|
+
|
3
|
+
* 4 bug fixes:
|
4
|
+
|
5
|
+
* Fix independent testing of test_gem_package_tar_output. Ruby Bug #4686 by
|
6
|
+
Shota Fukumori
|
7
|
+
* Fix test failures for systems with separate ruby versions. Ruby Bug #3808
|
8
|
+
by Jeremy Evans
|
9
|
+
* Fixed some bad calls left behind after rolling out some refactorings.
|
10
|
+
* Syck has a parse error on (good) times output from Psych. (dazuma, et al)
|
11
|
+
|
12
|
+
=== 1.8.2 / 2011-05-11
|
2
13
|
|
3
14
|
* 2 minor enhancements:
|
4
15
|
|
data/Rakefile
CHANGED
@@ -93,6 +93,13 @@ task :package do
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
task :upload_to_rubyforge do
|
97
|
+
v = hoe.version
|
98
|
+
sh "rubyforge add_release rubygems rubygems #{v} pkg/rubygems-update-#{v}.gem"
|
99
|
+
sh "rubyforge add_file rubygems rubygems #{v} pkg/rubygems-#{v}.zip"
|
100
|
+
sh "rubyforge add_file rubygems rubygems #{v} pkg/rubygems-#{v}.tgz"
|
101
|
+
end
|
102
|
+
|
96
103
|
# Misc Tasks ---------------------------------------------------------
|
97
104
|
|
98
105
|
# These tasks expect to have the following directory structure:
|
data/lib/rubygems.rb
CHANGED
@@ -120,7 +120,7 @@ require "rubygems/deprecate"
|
|
120
120
|
# -The RubyGems Team
|
121
121
|
|
122
122
|
module Gem
|
123
|
-
VERSION = '1.8.
|
123
|
+
VERSION = '1.8.3'
|
124
124
|
|
125
125
|
##
|
126
126
|
# Raised when RubyGems is unable to load or activate a gem. Contains the
|
@@ -421,7 +421,7 @@ module Gem
|
|
421
421
|
|
422
422
|
def self.each_load_path(partials)
|
423
423
|
partials.each do |gp|
|
424
|
-
base =
|
424
|
+
base = File.basename gp
|
425
425
|
specfn = dir.specifications.add(base + ".gemspec")
|
426
426
|
if specfn.exist?
|
427
427
|
spec = eval(specfn.read)
|
@@ -598,7 +598,7 @@ module Gem
|
|
598
598
|
def self.latest_partials(gemdir)
|
599
599
|
latest = {}
|
600
600
|
all_partials(gemdir).each do |gp|
|
601
|
-
base =
|
601
|
+
base = File.basename gp
|
602
602
|
|
603
603
|
if base.to_s =~ /(.*)-((\d+\.)*\d+)/ then
|
604
604
|
name, version = $1, $2
|
@@ -566,7 +566,11 @@ class Gem::Specification
|
|
566
566
|
def self.normalize_yaml_input(input)
|
567
567
|
result = input.respond_to?(:read) ? input.read : input
|
568
568
|
result = "--- " + result unless result =~ /\A--- /
|
569
|
-
result.gsub(/ !!null \n/, " \n")
|
569
|
+
result.gsub!(/ !!null \n/, " \n")
|
570
|
+
# date: 2011-04-26 00:00:00.000000000Z
|
571
|
+
# date: 2011-04-26 00:00:00.000000000 Z
|
572
|
+
result.gsub!(/^(date: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+?)Z/, '\1 Z')
|
573
|
+
result
|
570
574
|
end
|
571
575
|
|
572
576
|
##
|
@@ -254,7 +254,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|
254
254
|
inst = nil
|
255
255
|
|
256
256
|
Dir.chdir @tempdir do
|
257
|
-
inst = Gem::DependencyInstaller.new :env_shebang => true, :wrappers => true
|
257
|
+
inst = Gem::DependencyInstaller.new :env_shebang => true, :wrappers => true, :format_executable => false
|
258
258
|
inst.install 'a'
|
259
259
|
end
|
260
260
|
|
@@ -534,7 +534,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|
534
534
|
|
535
535
|
@fetcher.data['http://gems.example.com/gems/a-1.gem'] = read_binary(@a1_gem)
|
536
536
|
|
537
|
-
inst = Gem::DependencyInstaller.new :wrappers => false
|
537
|
+
inst = Gem::DependencyInstaller.new :wrappers => false, :format_executable => false
|
538
538
|
inst.install 'a'
|
539
539
|
|
540
540
|
refute_match(%r|This file was generated by RubyGems.|,
|
@@ -114,6 +114,20 @@ end
|
|
114
114
|
assert_equal @current_version, new_spec.specification_version
|
115
115
|
end
|
116
116
|
|
117
|
+
def test_self_from_yaml_syck_bug
|
118
|
+
# This is equivalent to (and totally valid) psych 1.0 output and
|
119
|
+
# causes parse errors on syck.
|
120
|
+
yaml = @a1.to_yaml
|
121
|
+
yaml.sub!(/^date:.*/, "date: 2011-04-26 00:00:00.000000000Z")
|
122
|
+
|
123
|
+
new_spec = with_syck do
|
124
|
+
Gem::Specification.from_yaml yaml
|
125
|
+
end
|
126
|
+
|
127
|
+
assert_kind_of Time, @a1.date
|
128
|
+
assert_kind_of Time, new_spec.date
|
129
|
+
end
|
130
|
+
|
117
131
|
def test_self_load
|
118
132
|
full_path = @a2.spec_file
|
119
133
|
write_file full_path do |io|
|
@@ -1384,4 +1398,22 @@ end
|
|
1384
1398
|
end
|
1385
1399
|
end
|
1386
1400
|
end
|
1401
|
+
|
1402
|
+
def with_syck
|
1403
|
+
begin
|
1404
|
+
require "yaml"
|
1405
|
+
old_engine = YAML::ENGINE.yamler
|
1406
|
+
YAML::ENGINE.yamler = 'syck'
|
1407
|
+
rescue NameError
|
1408
|
+
# probably on 1.8, ignore
|
1409
|
+
end
|
1410
|
+
|
1411
|
+
yield
|
1412
|
+
ensure
|
1413
|
+
begin
|
1414
|
+
YAML::ENGINE.yamler = old_engine
|
1415
|
+
rescue NameError
|
1416
|
+
# ignore
|
1417
|
+
end
|
1418
|
+
end
|
1387
1419
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 3
|
10
|
+
version: 1.8.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Weirich
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
x52qPcexcYZR7w==
|
39
39
|
-----END CERTIFICATE-----
|
40
40
|
|
41
|
-
date: 2011-05-
|
41
|
+
date: 2011-05-20 00:00:00 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: minitest
|
@@ -406,7 +406,7 @@ post_install_message:
|
|
406
406
|
rdoc_options:
|
407
407
|
- --main
|
408
408
|
- README.rdoc
|
409
|
-
- --title=RubyGems 1.8.
|
409
|
+
- --title=RubyGems 1.8.3 Documentation
|
410
410
|
require_paths:
|
411
411
|
- hide_lib_for_update
|
412
412
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -432,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
432
432
|
requirements: []
|
433
433
|
|
434
434
|
rubyforge_project: rubygems
|
435
|
-
rubygems_version: 1.8.
|
435
|
+
rubygems_version: 1.8.2
|
436
436
|
signing_key:
|
437
437
|
specification_version: 3
|
438
438
|
summary: RubyGems is a package management framework for Ruby
|
metadata.gz.sig
CHANGED
Binary file
|