rubygems-update 1.6.0 → 1.6.1
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 +2 -2
- data/History.txt +12 -1
- data/README.rdoc +14 -0
- data/Rakefile +3 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/dependency_installer.rb +1 -1
- data/lib/rubygems/dependency_list.rb +1 -1
- data/test/rubygems/test_gem_dependency_list.rb +18 -0
- data/test/rubygems/test_gem_installer.rb +9 -5
- metadata +6 -6
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
H��b �wPP���U;�����zʜ�P�n>[Ja�+'�y�H�fQ��ʭ�F*
|
2
|
+
jA��z�����u��_R�IT%fEf*r%�e[���J�m���uG�vp�R�g�{����P��)�4����e�҅o@����E��9��F>��ԿQ]N��]�&�٪
|
data/History.txt
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
=== 1.6.
|
1
|
+
=== 1.6.1 / 2011-03-03
|
2
|
+
|
3
|
+
Bug Fixes:
|
4
|
+
|
5
|
+
* Installation no longer fails when a dependency from a version that won't be
|
6
|
+
installed is unsatisfied.
|
7
|
+
* README.rdoc now shows how to file tickets and get help. Pull Request #40 by
|
8
|
+
Aaron Patterson.
|
9
|
+
* Gem files are cached correctly again. Patch #29051 by Mamoru Tasaka.
|
10
|
+
* Tests now pass with non-022 umask. Patch #29050 by Mamoru Tasaka.
|
11
|
+
|
12
|
+
=== 1.6.0 / 2011-02-29
|
2
13
|
|
3
14
|
4 Deprecations:
|
4
15
|
|
data/README.rdoc
CHANGED
@@ -34,3 +34,17 @@ For more details and other options, see:
|
|
34
34
|
|
35
35
|
ruby setup.rb --help
|
36
36
|
|
37
|
+
== GETTING HELP
|
38
|
+
|
39
|
+
=== Support Requests
|
40
|
+
|
41
|
+
Are you unsure of how to use rubygems? Do you think you've found a bug and
|
42
|
+
you're not sure? If that is the case, the best place for you is to file a
|
43
|
+
support request at {help.rubygems.org}[http://help.rubygems.org].
|
44
|
+
|
45
|
+
=== Filing tickets
|
46
|
+
|
47
|
+
You're sure you've found a bug! But where do you let us know? The best place
|
48
|
+
for letting the RubyGems team know about bugs you've found is {on the rubygems
|
49
|
+
tracker at rubyforge}[http://rubyforge.org/tracker/?group_id=126].
|
50
|
+
|
data/Rakefile
CHANGED
@@ -29,6 +29,9 @@ hoe = Hoe.spec 'rubygems-update' do
|
|
29
29
|
spec_extras[:required_ruby_version] = Gem::Requirement.new '>= 1.8.7'
|
30
30
|
spec_extras[:executables] = ['update_rubygems']
|
31
31
|
|
32
|
+
rdoc_locations <<
|
33
|
+
'rubyforge.org:/var/www/gforge-projects/rubygems/rubygems-update/'
|
34
|
+
|
32
35
|
clean_globs.push('**/debug.log',
|
33
36
|
'*.out',
|
34
37
|
'.config',
|
data/lib/rubygems.rb
CHANGED
@@ -68,7 +68,7 @@ class Gem::DependencyInstaller
|
|
68
68
|
@installed_gems = []
|
69
69
|
|
70
70
|
@install_dir = options[:install_dir] || Gem.dir
|
71
|
-
@cache_dir = options[:cache_dir] ||
|
71
|
+
@cache_dir = options[:cache_dir] || @install_dir
|
72
72
|
|
73
73
|
# Set with any errors that SpecFetcher finds while search through
|
74
74
|
# gemspecs for a dep
|
@@ -115,7 +115,7 @@ class Gem::DependencyList
|
|
115
115
|
def why_not_ok? quick = false
|
116
116
|
unsatisfied = Hash.new { |h,k| h[k] = [] }
|
117
117
|
source_index = Gem.source_index
|
118
|
-
|
118
|
+
each do |spec|
|
119
119
|
spec.runtime_dependencies.each do |dep|
|
120
120
|
inst = source_index.any? { |_, installed_spec|
|
121
121
|
dep.name == installed_spec.name and
|
@@ -151,6 +151,24 @@ class TestGemDependencyList < Gem::TestCase
|
|
151
151
|
assert_equal exp, @deplist.why_not_ok?
|
152
152
|
end
|
153
153
|
|
154
|
+
def test_why_not_ok_eh_old_dependency
|
155
|
+
a = new_spec 'a', '1',
|
156
|
+
'b' => '~> 1.0'
|
157
|
+
|
158
|
+
b0 = new_spec 'b', '1.0',
|
159
|
+
'd' => '>= 0'
|
160
|
+
|
161
|
+
b1 = new_spec 'b', '1.1'
|
162
|
+
|
163
|
+
util_clear_gems
|
164
|
+
|
165
|
+
@deplist.clear
|
166
|
+
|
167
|
+
@deplist.add a, b0, b1
|
168
|
+
|
169
|
+
assert_equal({}, @deplist.why_not_ok?)
|
170
|
+
end
|
171
|
+
|
154
172
|
def test_ok_eh_mismatch
|
155
173
|
a1 = quick_spec 'a', '1'
|
156
174
|
a2 = quick_spec 'a', '2'
|
@@ -181,7 +181,7 @@ load Gem.bin_path('a', 'executable', version)
|
|
181
181
|
assert_equal true, File.directory?(util_inst_bindir)
|
182
182
|
installed_exec = File.join(util_inst_bindir, 'executable')
|
183
183
|
assert_equal true, File.exist?(installed_exec)
|
184
|
-
assert_equal
|
184
|
+
assert_equal mask, File.stat(installed_exec).mode unless win_platform?
|
185
185
|
|
186
186
|
wrapper = File.read installed_exec
|
187
187
|
assert_match %r|generated by RubyGems|, wrapper
|
@@ -196,7 +196,7 @@ load Gem.bin_path('a', 'executable', version)
|
|
196
196
|
assert_equal true, File.directory?(util_inst_bindir)
|
197
197
|
installed_exec = File.join(util_inst_bindir, 'executable')
|
198
198
|
assert_equal true, File.exist?(installed_exec)
|
199
|
-
assert_equal
|
199
|
+
assert_equal mask, File.stat(installed_exec).mode unless win_platform?
|
200
200
|
|
201
201
|
wrapper = File.read installed_exec
|
202
202
|
assert_match %r|generated by RubyGems|, wrapper
|
@@ -249,7 +249,7 @@ load Gem.bin_path('a', 'executable', version)
|
|
249
249
|
|
250
250
|
installed_exec = File.join("#{@gemhome}2", 'bin', 'executable')
|
251
251
|
assert_equal true, File.exist?(installed_exec)
|
252
|
-
assert_equal
|
252
|
+
assert_equal mask, File.stat(installed_exec).mode unless win_platform?
|
253
253
|
|
254
254
|
wrapper = File.read installed_exec
|
255
255
|
assert_match %r|generated by RubyGems|, wrapper
|
@@ -298,7 +298,7 @@ load Gem.bin_path('a', 'executable', version)
|
|
298
298
|
|
299
299
|
installed_exec = File.join @gemhome, 'bin', 'executable'
|
300
300
|
assert_equal true, File.exist?(installed_exec)
|
301
|
-
assert_equal
|
301
|
+
assert_equal mask, File.stat(installed_exec).mode unless win_platform?
|
302
302
|
|
303
303
|
wrapper = File.read installed_exec
|
304
304
|
assert_match %r|generated by RubyGems|, wrapper
|
@@ -323,7 +323,7 @@ load Gem.bin_path('a', 'executable', version)
|
|
323
323
|
@installer.generate_bin
|
324
324
|
assert_equal true, File.directory?(util_inst_bindir)
|
325
325
|
assert_equal true, File.exist?(installed_exec)
|
326
|
-
assert_equal
|
326
|
+
assert_equal mask, File.stat(installed_exec).mode unless win_platform?
|
327
327
|
|
328
328
|
assert_match %r|generated by RubyGems|, File.read(installed_exec)
|
329
329
|
|
@@ -1014,5 +1014,9 @@ load Gem.bin_path('a', 'executable', version)
|
|
1014
1014
|
@installer = util_installer @spec, gem, @gemhome
|
1015
1015
|
end
|
1016
1016
|
|
1017
|
+
def mask
|
1018
|
+
0100755 & (~File.umask)
|
1019
|
+
end
|
1020
|
+
|
1017
1021
|
end
|
1018
1022
|
|
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 1
|
10
|
+
version: 1.6.1
|
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-03-
|
41
|
+
date: 2011-03-03 00:00:00 -08:00
|
42
42
|
default_executable:
|
43
43
|
dependencies:
|
44
44
|
- !ruby/object:Gem::Dependency
|
@@ -361,7 +361,7 @@ post_install_message:
|
|
361
361
|
rdoc_options:
|
362
362
|
- --main
|
363
363
|
- README.rdoc
|
364
|
-
- --title=RubyGems 1.6.
|
364
|
+
- --title=RubyGems 1.6.1 Documentation
|
365
365
|
require_paths:
|
366
366
|
- hide_lib_for_update
|
367
367
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
requirements: []
|
388
388
|
|
389
389
|
rubyforge_project: rubygems
|
390
|
-
rubygems_version: 1.
|
390
|
+
rubygems_version: 1.6.0
|
391
391
|
signing_key:
|
392
392
|
specification_version: 3
|
393
393
|
summary: RubyGems is a package management framework for Ruby
|
metadata.gz.sig
CHANGED
Binary file
|