rubygems-update 1.8.13 → 1.8.14
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/History.txt +7 -0
- data/lib/rubygems.rb +7 -1
- data/lib/rubygems/requirement.rb +15 -0
- data/lib/rubygems/specification.rb +2 -0
- data/lib/rubygems/syck_hack.rb +4 -0
- data/lib/rubygems/version.rb +6 -0
- metadata +28 -12
data/History.txt
CHANGED
data/lib/rubygems.rb
CHANGED
@@ -118,7 +118,7 @@ require "rubygems/deprecate"
|
|
118
118
|
# -The RubyGems Team
|
119
119
|
|
120
120
|
module Gem
|
121
|
-
VERSION = '1.8.
|
121
|
+
VERSION = '1.8.14'
|
122
122
|
|
123
123
|
##
|
124
124
|
# Raised when RubyGems is unable to load or activate a gem. Contains the
|
@@ -639,10 +639,14 @@ module Gem
|
|
639
639
|
index
|
640
640
|
end
|
641
641
|
|
642
|
+
@yaml_loaded = false
|
643
|
+
|
642
644
|
##
|
643
645
|
# Loads YAML, preferring Psych
|
644
646
|
|
645
647
|
def self.load_yaml
|
648
|
+
return if @yaml_loaded
|
649
|
+
|
646
650
|
begin
|
647
651
|
gem 'psych', '~> 1.2', '>= 1.2.1' unless ENV['TEST_SYCK']
|
648
652
|
rescue Gem::LoadError
|
@@ -661,6 +665,8 @@ module Gem
|
|
661
665
|
# Now that we're sure some kind of yaml library is loaded, pull
|
662
666
|
# in our hack to deal with Syck's DefaultKey ugliness.
|
663
667
|
require 'rubygems/syck_hack'
|
668
|
+
|
669
|
+
@yaml_loaded = true
|
664
670
|
end
|
665
671
|
|
666
672
|
##
|
data/lib/rubygems/requirement.rb
CHANGED
@@ -4,6 +4,19 @@ require "rubygems/version"
|
|
4
4
|
# A Requirement is a set of one or more version restrictions. It supports a
|
5
5
|
# few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators.
|
6
6
|
|
7
|
+
# REFACTOR: The fact that a requirement is singular or plural is kind of
|
8
|
+
# awkward. Is Requirement the right name for this? Or should it be one
|
9
|
+
# [op, number] pair, and we call the list of requirements something else?
|
10
|
+
# Since a Requirement is held by a Dependency, maybe this should be made
|
11
|
+
# singular and the list aspect should be pulled up into Dependency?
|
12
|
+
|
13
|
+
require "rubygems/version"
|
14
|
+
require "rubygems/deprecate"
|
15
|
+
|
16
|
+
# If we're being loaded after yaml was already required, then
|
17
|
+
# load our yaml + workarounds now.
|
18
|
+
Gem.load_yaml if defined? ::YAML
|
19
|
+
|
7
20
|
class Gem::Requirement
|
8
21
|
include Comparable
|
9
22
|
|
@@ -174,6 +187,8 @@ class Gem::Requirement
|
|
174
187
|
private
|
175
188
|
|
176
189
|
def fix_syck_default_key_in_requirements
|
190
|
+
Gem.load_yaml
|
191
|
+
|
177
192
|
# Fixup the Syck DefaultKey bug
|
178
193
|
@requirements.each do |r|
|
179
194
|
if r[0].kind_of? Gem::SyckDefaultKey
|
data/lib/rubygems/syck_hack.rb
CHANGED
@@ -17,6 +17,10 @@ module YAML
|
|
17
17
|
if defined? ::Syck
|
18
18
|
Syck = ::Syck
|
19
19
|
|
20
|
+
# JRuby's "Syck" is called "Yecht"
|
21
|
+
elsif defined? YAML::Yecht
|
22
|
+
Syck = YAML::Yecht
|
23
|
+
|
20
24
|
# Otherwise, if there is no YAML::Syck, then we've got just psych
|
21
25
|
# loaded, so lets define a stub for DefaultKey.
|
22
26
|
elsif !defined? YAML::Syck
|
data/lib/rubygems/version.rb
CHANGED
@@ -238,6 +238,12 @@ class Gem::Version
|
|
238
238
|
initialize array[0]
|
239
239
|
end
|
240
240
|
|
241
|
+
def yaml_initialize(tag, map)
|
242
|
+
@version = map['version']
|
243
|
+
@segments = nil
|
244
|
+
@hash = nil
|
245
|
+
end
|
246
|
+
|
241
247
|
##
|
242
248
|
# A version is considered a prerelease if it contains a letter.
|
243
249
|
|
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: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 1.8.
|
9
|
+
- 14
|
10
|
+
version: 1.8.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Weirich
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date:
|
20
|
+
date: 2012-01-05 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: minitest
|
@@ -25,13 +25,14 @@ dependencies:
|
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 11
|
31
31
|
segments:
|
32
32
|
- 2
|
33
|
-
-
|
34
|
-
|
33
|
+
- 1
|
34
|
+
- 0
|
35
|
+
version: 2.1.0
|
35
36
|
type: :development
|
36
37
|
version_requirements: *id001
|
37
38
|
- !ruby/object:Gem::Dependency
|
@@ -126,9 +127,24 @@ dependencies:
|
|
126
127
|
type: :development
|
127
128
|
version_requirements: *id007
|
128
129
|
- !ruby/object:Gem::Dependency
|
129
|
-
name:
|
130
|
+
name: rdoc
|
130
131
|
prerelease: false
|
131
132
|
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ~>
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 19
|
138
|
+
segments:
|
139
|
+
- 3
|
140
|
+
- 10
|
141
|
+
version: "3.10"
|
142
|
+
type: :development
|
143
|
+
version_requirements: *id008
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: hoe
|
146
|
+
prerelease: false
|
147
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
132
148
|
none: false
|
133
149
|
requirements:
|
134
150
|
- - ~>
|
@@ -139,7 +155,7 @@ dependencies:
|
|
139
155
|
- 12
|
140
156
|
version: "2.12"
|
141
157
|
type: :development
|
142
|
-
version_requirements: *
|
158
|
+
version_requirements: *id009
|
143
159
|
description: |-
|
144
160
|
RubyGems is a package management framework for Ruby.
|
145
161
|
|
@@ -383,7 +399,7 @@ post_install_message:
|
|
383
399
|
rdoc_options:
|
384
400
|
- --main
|
385
401
|
- README.rdoc
|
386
|
-
- --title=RubyGems 1.8.
|
402
|
+
- --title=RubyGems 1.8.14 Documentation
|
387
403
|
require_paths:
|
388
404
|
- hide_lib_for_update
|
389
405
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -409,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
425
|
requirements: []
|
410
426
|
|
411
427
|
rubyforge_project: rubygems
|
412
|
-
rubygems_version: 1.8.
|
428
|
+
rubygems_version: 1.8.12
|
413
429
|
signing_key:
|
414
430
|
specification_version: 3
|
415
431
|
summary: RubyGems is a package management framework for Ruby
|