rubygems-update 2.7.4 → 2.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -8
  3. data/Manifest.txt +2 -1
  4. data/Rakefile +7 -0
  5. data/bundler/CHANGELOG.md +13 -0
  6. data/bundler/bundler.gemspec +2 -0
  7. data/bundler/lib/bundler/cli/gem.rb +1 -1
  8. data/bundler/lib/bundler/cli/init.rb +1 -5
  9. data/bundler/lib/bundler/cli/update.rb +3 -1
  10. data/bundler/lib/bundler/definition.rb +1 -1
  11. data/bundler/lib/bundler/resolver.rb +4 -1
  12. data/bundler/lib/bundler/source/rubygems.rb +2 -4
  13. data/bundler/lib/bundler/templates/.document +1 -0
  14. data/bundler/lib/bundler/templates/Executable +11 -3
  15. data/bundler/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +0 -0
  16. data/bundler/lib/bundler/version.rb +1 -1
  17. data/lib/rubygems.rb +5 -5
  18. data/lib/rubygems/commands/generate_index_command.rb +1 -1
  19. data/lib/rubygems/commands/setup_command.rb +12 -6
  20. data/lib/rubygems/commands/unpack_command.rb +2 -2
  21. data/lib/rubygems/config_file.rb +1 -1
  22. data/lib/rubygems/ext/builder.rb +1 -1
  23. data/lib/rubygems/indexer.rb +5 -4
  24. data/lib/rubygems/installer.rb +9 -4
  25. data/lib/rubygems/package.rb +2 -2
  26. data/lib/rubygems/package/file_source.rb +2 -2
  27. data/lib/rubygems/package/old.rb +1 -1
  28. data/lib/rubygems/request_set/lockfile.rb +1 -1
  29. data/lib/rubygems/security.rb +1 -1
  30. data/lib/rubygems/security/trust_dir.rb +1 -1
  31. data/lib/rubygems/source.rb +1 -1
  32. data/lib/rubygems/specification.rb +4 -0
  33. data/lib/rubygems/stub_specification.rb +2 -0
  34. data/lib/rubygems/test_case.rb +14 -8
  35. data/lib/rubygems/test_utilities.rb +1 -1
  36. data/lib/rubygems/util.rb +2 -1
  37. data/lib/rubygems/validator.rb +3 -3
  38. data/test/rubygems/test_gem.rb +17 -14
  39. data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -1
  40. data/test/rubygems/test_gem_commands_install_command.rb +1 -0
  41. data/test/rubygems/test_gem_commands_push_command.rb +5 -5
  42. data/test/rubygems/test_gem_commands_setup_command.rb +20 -20
  43. data/test/rubygems/test_gem_commands_uninstall_command.rb +2 -2
  44. data/test/rubygems/test_gem_dependency_installer.rb +1 -1
  45. data/test/rubygems/test_gem_doctor.rb +2 -2
  46. data/test/rubygems/test_gem_ext_builder.rb +6 -6
  47. data/test/rubygems/test_gem_gemcutter_utilities.rb +4 -4
  48. data/test/rubygems/test_gem_indexer.rb +1 -2
  49. data/test/rubygems/test_gem_install_update_options.rb +2 -0
  50. data/test/rubygems/test_gem_installer.rb +5 -1
  51. data/test/rubygems/test_gem_package.rb +15 -15
  52. data/test/rubygems/test_gem_package_old.rb +1 -1
  53. data/test/rubygems/test_gem_rdoc.rb +2 -0
  54. data/test/rubygems/test_gem_remote_fetcher.rb +1 -1
  55. data/test/rubygems/test_gem_request_connection_pools.rb +6 -7
  56. data/test/rubygems/test_gem_request_set.rb +7 -7
  57. data/test/rubygems/test_gem_request_set_lockfile.rb +4 -4
  58. data/test/rubygems/test_gem_request_set_lockfile_parser.rb +1 -1
  59. data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +1 -1
  60. data/test/rubygems/test_gem_resolver_git_specification.rb +1 -1
  61. data/test/rubygems/test_gem_server.rb +4 -4
  62. data/test/rubygems/test_gem_source.rb +3 -3
  63. data/test/rubygems/test_gem_source_git.rb +1 -1
  64. data/test/rubygems/test_gem_specification.rb +21 -17
  65. data/test/rubygems/test_gem_stub_specification.rb +7 -7
  66. data/test/rubygems/test_gem_util.rb +23 -0
  67. data/test/rubygems/test_gem_version.rb +11 -0
  68. data/test/rubygems/test_require.rb +15 -21
  69. metadata +4 -3
@@ -92,7 +92,7 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
92
92
  # Evil hack to prevent false removal success
93
93
  FileUtils.rm_f @executable
94
94
 
95
- open @executable, "wb+" do |f| f.puts "binary" end
95
+ File.open @executable, "wb+" do |f| f.puts "binary" end
96
96
 
97
97
  @cmd.options[:executables] = true
98
98
  @cmd.options[:args] = [@spec.name]
@@ -204,7 +204,7 @@ class TestGemCommandsUninstallCommand < Gem::InstallerTestCase
204
204
  end
205
205
 
206
206
  assert Gem::Specification.find_all_by_name('dep_x').length > 0
207
- assert Gem::Specification.find_all_by_name('x').length == 0
207
+ assert Gem::Specification.find_all_by_name('x').length.zero?
208
208
  end
209
209
 
210
210
  def test_execute_all
@@ -424,7 +424,7 @@ class TestGemDependencyInstaller < Gem::TestCase
424
424
  extconf_rb = File.join @gemhome, 'gems', 'e-1', 'extconf.rb'
425
425
  FileUtils.mkdir_p File.dirname extconf_rb
426
426
 
427
- open extconf_rb, 'w' do |io|
427
+ File.open extconf_rb, 'w' do |io|
428
428
  io.write <<-EXTCONF_RB
429
429
  require 'mkmf'
430
430
  create_makefile 'e'
@@ -24,7 +24,7 @@ class TestGemDoctor < Gem::TestCase
24
24
 
25
25
  FileUtils.rm b.spec_file
26
26
 
27
- open c.spec_file, 'w' do |io|
27
+ File.open c.spec_file, 'w' do |io|
28
28
  io.write 'this will raise an exception when evaluated.'
29
29
  end
30
30
 
@@ -77,7 +77,7 @@ Removed directory gems/c-2
77
77
 
78
78
  FileUtils.rm b.spec_file
79
79
 
80
- open c.spec_file, 'w' do |io|
80
+ File.open c.spec_file, 'w' do |io|
81
81
  io.write 'this will raise an exception when evaluated.'
82
82
  end
83
83
 
@@ -32,7 +32,7 @@ class TestGemExtBuilder < Gem::TestCase
32
32
  results = []
33
33
 
34
34
  Dir.chdir @ext do
35
- open 'Makefile', 'w' do |io|
35
+ File.open 'Makefile', 'w' do |io|
36
36
  io.puts <<-MAKEFILE
37
37
  all:
38
38
  \t@#{Gem.ruby} -e "puts %Q{all: \#{ENV['DESTDIR']}}"
@@ -72,7 +72,7 @@ install:
72
72
  results = []
73
73
 
74
74
  Dir.chdir @ext do
75
- open 'Makefile', 'w' do |io|
75
+ File.open 'Makefile', 'w' do |io|
76
76
  io.puts <<-MAKEFILE
77
77
  all:
78
78
  \t@#{Gem.ruby} -e "puts %Q{all: \#{ENV['DESTDIR']}}"
@@ -107,7 +107,7 @@ install:
107
107
 
108
108
  extconf_rb = File.join ext_dir, 'extconf.rb'
109
109
 
110
- open extconf_rb, 'w' do |f|
110
+ File.open extconf_rb, 'w' do |f|
111
111
  f.write <<-'RUBY'
112
112
  require 'mkmf'
113
113
 
@@ -168,7 +168,7 @@ install:
168
168
 
169
169
  extconf_rb = File.join ext_dir, 'extconf.rb'
170
170
 
171
- open extconf_rb, 'w' do |f|
171
+ File.open extconf_rb, 'w' do |f|
172
172
  f.write <<-'RUBY'
173
173
  require 'mkmf'
174
174
 
@@ -290,7 +290,7 @@ install:
290
290
 
291
291
  FileUtils.mkdir_p @spec.gem_dir
292
292
 
293
- open File.join(@spec.gem_dir, "extconf.rb"), "w" do |f|
293
+ File.open File.join(@spec.gem_dir, "extconf.rb"), "w" do |f|
294
294
  f.write <<-'RUBY'
295
295
  puts "IN EXTCONF"
296
296
  extconf_args = File.join File.dirname(__FILE__), 'extconf_args'
@@ -323,7 +323,7 @@ install:
323
323
 
324
324
  build_info_file = File.join build_info_dir, "#{@spec.full_name}.info"
325
325
 
326
- open build_info_file, 'w' do |io|
326
+ File.open build_info_file, 'w' do |io|
327
327
  io.puts '--with-foo-dir=/nonexistent'
328
328
  end
329
329
 
@@ -31,7 +31,7 @@ class TestGemGemcutterUtilities < Gem::TestCase
31
31
 
32
32
  FileUtils.mkdir_p File.dirname Gem.configuration.credentials_path
33
33
 
34
- open Gem.configuration.credentials_path, 'w' do |f|
34
+ File.open Gem.configuration.credentials_path, 'w' do |f|
35
35
  f.write keys.to_yaml
36
36
  end
37
37
 
@@ -46,7 +46,7 @@ class TestGemGemcutterUtilities < Gem::TestCase
46
46
  keys = { :rubygems_api_key => 'KEY' }
47
47
  FileUtils.mkdir_p File.dirname Gem.configuration.credentials_path
48
48
 
49
- open Gem.configuration.credentials_path, 'w' do |f|
49
+ File.open Gem.configuration.credentials_path, 'w' do |f|
50
50
  f.write keys.to_yaml
51
51
  end
52
52
 
@@ -59,7 +59,7 @@ class TestGemGemcutterUtilities < Gem::TestCase
59
59
  keys = { :rubygems_api_key => 'KEY', :other => 'OTHER' }
60
60
  FileUtils.mkdir_p File.dirname Gem.configuration.credentials_path
61
61
 
62
- open Gem.configuration.credentials_path, 'w' do |f|
62
+ File.open Gem.configuration.credentials_path, 'w' do |f|
63
63
  f.write keys.to_yaml
64
64
  end
65
65
 
@@ -163,7 +163,7 @@ class TestGemGemcutterUtilities < Gem::TestCase
163
163
  other_api_key = 'f46dbb18bb6a9c97cdc61b5b85c186a17403cdcbf'
164
164
 
165
165
  FileUtils.mkdir_p File.dirname(Gem.configuration.credentials_path)
166
- open Gem.configuration.credentials_path, 'w' do |f|
166
+ File.open Gem.configuration.credentials_path, 'w' do |f|
167
167
  f.write Hash[:other_api_key, other_api_key].to_yaml
168
168
  end
169
169
  util_sign_in [api_key, 200, 'OK']
@@ -39,8 +39,7 @@ class TestGemIndexer < Gem::TestCase
39
39
 
40
40
  def test_initialize
41
41
  assert_equal @tempdir, @indexer.dest_directory
42
- assert_equal File.join(Dir.tmpdir, "gem_generate_index_#{$$}"),
43
- @indexer.directory
42
+ assert_match %r{#{Dir.mktmpdir('gem_generate_index').match(/.*-/)}}, @indexer.directory
44
43
 
45
44
  indexer = Gem::Indexer.new @tempdir
46
45
  assert indexer.build_modern
@@ -141,6 +141,8 @@ class TestGemInstallUpdateOptions < Gem::InstallerTestCase
141
141
  def test_user_install_disabled_read_only
142
142
  if win_platform?
143
143
  skip('test_user_install_disabled_read_only test skipped on MS Windows')
144
+ elsif Process.uid.zero?
145
+ skip('test_user_install_disabled_read_only test skipped in root privilege')
144
146
  else
145
147
  @cmd.handle_options %w[--no-user-install]
146
148
 
@@ -140,7 +140,7 @@ end
140
140
  s.require_path = 'lib'
141
141
  end
142
142
 
143
- open File.join(util_inst_bindir, 'executable'), 'w' do |io|
143
+ File.open File.join(util_inst_bindir, 'executable'), 'w' do |io|
144
144
  io.write <<-EXEC
145
145
  #!/usr/local/bin/ruby
146
146
  #
@@ -437,6 +437,8 @@ gem 'other', version
437
437
 
438
438
  if win_platform?
439
439
  skip('test_generate_bin_script_no_perms skipped on MS Windows')
440
+ elsif Process.uid.zero?
441
+ skip('test_generate_bin_script_no_perms skipped in root privilege')
440
442
  else
441
443
  FileUtils.chmod 0000, util_inst_bindir
442
444
 
@@ -529,6 +531,8 @@ gem 'other', version
529
531
 
530
532
  if win_platform?
531
533
  skip('test_generate_bin_symlink_no_perms skipped on MS Windows')
534
+ elsif Process.uid.zero?
535
+ skip('test_user_install_disabled_read_only test skipped in root privilege')
532
536
  else
533
537
  FileUtils.chmod 0000, util_inst_bindir
534
538
 
@@ -24,7 +24,7 @@ class TestGemPackage < Gem::Package::TarTestCase
24
24
  end
25
25
 
26
26
  def test_class_new_old_format
27
- open 'old_format.gem', 'wb' do |io|
27
+ File.open 'old_format.gem', 'wb' do |io|
28
28
  io.write SIMPLE_GEM
29
29
  end
30
30
 
@@ -45,7 +45,7 @@ class TestGemPackage < Gem::Package::TarTestCase
45
45
 
46
46
  FileUtils.mkdir 'lib'
47
47
 
48
- open 'lib/code.rb', 'w' do |io|
48
+ File.open 'lib/code.rb', 'w' do |io|
49
49
  io.write '# lib/code.rb'
50
50
  end
51
51
 
@@ -110,8 +110,8 @@ class TestGemPackage < Gem::Package::TarTestCase
110
110
 
111
111
  FileUtils.mkdir_p 'lib/empty'
112
112
 
113
- open 'lib/code.rb', 'w' do |io| io.write '# lib/code.rb' end
114
- open 'lib/extra.rb', 'w' do |io| io.write '# lib/extra.rb' end
113
+ File.open 'lib/code.rb', 'w' do |io| io.write '# lib/code.rb' end
114
+ File.open 'lib/extra.rb', 'w' do |io| io.write '# lib/extra.rb' end
115
115
 
116
116
  package = Gem::Package.new 'bogus.gem'
117
117
  package.spec = spec
@@ -140,7 +140,7 @@ class TestGemPackage < Gem::Package::TarTestCase
140
140
  spec.files = %w[lib/code.rb lib/code_sym.rb]
141
141
 
142
142
  FileUtils.mkdir_p 'lib'
143
- open 'lib/code.rb', 'w' do |io| io.write '# lib/code.rb' end
143
+ File.open 'lib/code.rb', 'w' do |io| io.write '# lib/code.rb' end
144
144
 
145
145
  # NOTE: 'code.rb' is correct, because it's relative to lib/code_sym.rb
146
146
  File.symlink('code.rb', 'lib/code_sym.rb')
@@ -179,7 +179,7 @@ class TestGemPackage < Gem::Package::TarTestCase
179
179
 
180
180
  FileUtils.mkdir 'lib'
181
181
 
182
- open 'lib/code.rb', 'w' do |io|
182
+ File.open 'lib/code.rb', 'w' do |io|
183
183
  io.write '# lib/code.rb'
184
184
  end
185
185
 
@@ -218,7 +218,7 @@ class TestGemPackage < Gem::Package::TarTestCase
218
218
 
219
219
  FileUtils.mkdir 'lib'
220
220
 
221
- open 'lib/code.rb', 'w' do |io|
221
+ File.open 'lib/code.rb', 'w' do |io|
222
222
  io.write '# lib/code.rb'
223
223
  end
224
224
 
@@ -261,7 +261,7 @@ class TestGemPackage < Gem::Package::TarTestCase
261
261
 
262
262
  FileUtils.mkdir 'lib'
263
263
 
264
- open 'lib/code.rb', 'w' do |io|
264
+ File.open 'lib/code.rb', 'w' do |io|
265
265
  io.write '# lib/code.rb'
266
266
  end
267
267
 
@@ -311,7 +311,7 @@ class TestGemPackage < Gem::Package::TarTestCase
311
311
 
312
312
  FileUtils.mkdir 'lib'
313
313
 
314
- open 'lib/code.rb', 'w' do |io|
314
+ File.open 'lib/code.rb', 'w' do |io|
315
315
  io.write '# lib/code.rb'
316
316
  end
317
317
 
@@ -348,7 +348,7 @@ class TestGemPackage < Gem::Package::TarTestCase
348
348
 
349
349
  FileUtils.mkdir 'lib'
350
350
 
351
- open 'lib/code.rb', 'w' do |io|
351
+ File.open 'lib/code.rb', 'w' do |io|
352
352
  io.write '# lib/code.rb'
353
353
  end
354
354
 
@@ -408,7 +408,7 @@ class TestGemPackage < Gem::Package::TarTestCase
408
408
  end
409
409
  end
410
410
 
411
- open 'empty.gem', 'wb' do |io|
411
+ File.open 'empty.gem', 'wb' do |io|
412
412
  io.write gem.string
413
413
  end
414
414
 
@@ -620,7 +620,7 @@ class TestGemPackage < Gem::Package::TarTestCase
620
620
  end
621
621
  end
622
622
 
623
- open 'mismatch.gem', 'wb' do |io|
623
+ File.open 'mismatch.gem', 'wb' do |io|
624
624
  io.write gem.string
625
625
  end
626
626
 
@@ -670,7 +670,7 @@ class TestGemPackage < Gem::Package::TarTestCase
670
670
  end
671
671
  end
672
672
 
673
- open 'data_checksum_missing.gem', 'wb' do |io|
673
+ File.open 'data_checksum_missing.gem', 'wb' do |io|
674
674
  io.write gem.string
675
675
  end
676
676
 
@@ -773,7 +773,7 @@ class TestGemPackage < Gem::Package::TarTestCase
773
773
  FileUtils.mkdir 'lib'
774
774
  FileUtils.touch 'lib/code.rb'
775
775
 
776
- open @gem, 'wb' do |gem_io|
776
+ File.open @gem, 'wb' do |gem_io|
777
777
  Gem::Package::TarWriter.new gem_io do |gem|
778
778
  build.add_metadata gem
779
779
  build.add_contents gem
@@ -804,7 +804,7 @@ class TestGemPackage < Gem::Package::TarTestCase
804
804
  end
805
805
 
806
806
  def test_verify_truncate
807
- open 'bad.gem', 'wb' do |io|
807
+ File.open 'bad.gem', 'wb' do |io|
808
808
  io.write File.read(@gem, 1024) # don't care about newlines
809
809
  end
810
810
 
@@ -7,7 +7,7 @@ class TestGemPackageOld < Gem::TestCase
7
7
  def setup
8
8
  super
9
9
 
10
- open 'old_format.gem', 'wb' do |io|
10
+ File.open 'old_format.gem', 'wb' do |io|
11
11
  io.write SIMPLE_GEM
12
12
  end
13
13
 
@@ -223,6 +223,7 @@ class TestGemRDoc < Gem::TestCase
223
223
 
224
224
  def test_remove_unwritable
225
225
  skip 'chmod not supported' if Gem.win_platform?
226
+ skip 'skipped in root privilege' if Process.uid.zero?
226
227
  FileUtils.mkdir_p @a.base_dir
227
228
  FileUtils.chmod 0, @a.base_dir
228
229
 
@@ -251,6 +252,7 @@ class TestGemRDoc < Gem::TestCase
251
252
 
252
253
  def test_setup_unwritable
253
254
  skip 'chmod not supported' if Gem.win_platform?
255
+ skip 'skipped in root privilege' if Process.uid.zero?
254
256
  FileUtils.mkdir_p @a.doc_dir
255
257
  FileUtils.chmod 0, @a.doc_dir
256
258
 
@@ -431,7 +431,7 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg==
431
431
  assert File.exist?(a1_cache_gem)
432
432
  end
433
433
 
434
- unless win_platform? # File.chmod doesn't work
434
+ unless win_platform? || Process.uid.zero? # File.chmod doesn't work
435
435
  def test_download_local_read_only
436
436
  FileUtils.mv @a1_gem, @tempdir
437
437
  local_path = File.join @tempdir, @a1.file_name
@@ -118,13 +118,12 @@ class TestGemRequestConnectionPool < Gem::TestCase
118
118
 
119
119
  pool.checkout
120
120
 
121
- t1 = Thread.new {
122
- Timeout.timeout(1) do
123
- pool.checkout
121
+ Thread.new {
122
+ assert_raises(Timeout::Error) do
123
+ Timeout.timeout(1) do
124
+ pool.checkout
125
+ end
124
126
  end
125
- }
126
- assert_raises(Timeout::Error) do
127
- t1.join
128
- end
127
+ }.join
129
128
  end
130
129
  end
@@ -52,7 +52,7 @@ class TestGemRequestSet < Gem::TestCase
52
52
  rs = Gem::RequestSet.new
53
53
  installed = []
54
54
 
55
- open 'gem.deps.rb', 'w' do |io|
55
+ File.open 'gem.deps.rb', 'w' do |io|
56
56
  io.puts 'gem "a"'
57
57
  io.flush
58
58
 
@@ -78,7 +78,7 @@ class TestGemRequestSet < Gem::TestCase
78
78
 
79
79
  rs = Gem::RequestSet.new
80
80
 
81
- open 'gem.deps.rb', 'w' do |io|
81
+ File.open 'gem.deps.rb', 'w' do |io|
82
82
  io.puts 'gem "a"'
83
83
  io.flush
84
84
 
@@ -104,7 +104,7 @@ Gems to install:
104
104
  rs = Gem::RequestSet.new
105
105
  installed = []
106
106
 
107
- open 'gem.deps.rb', 'w' do |io|
107
+ File.open 'gem.deps.rb', 'w' do |io|
108
108
  io.puts 'gem "a"'
109
109
  end
110
110
 
@@ -128,7 +128,7 @@ Gems to install:
128
128
 
129
129
  rs = Gem::RequestSet.new
130
130
 
131
- open 'gem.deps.rb', 'w' do |io|
131
+ File.open 'gem.deps.rb', 'w' do |io|
132
132
  io.puts 'gem "a"'
133
133
  io.flush
134
134
 
@@ -150,7 +150,7 @@ Gems to install:
150
150
  rs = Gem::RequestSet.new
151
151
  installed = []
152
152
 
153
- open 'gem.deps.rb.lock', 'w' do |io|
153
+ File.open 'gem.deps.rb.lock', 'w' do |io|
154
154
  io.puts <<-LOCKFILE
155
155
  GEM
156
156
  remote: #{@gem_repo}
@@ -167,7 +167,7 @@ DEPENDENCIES
167
167
  LOCKFILE
168
168
  end
169
169
 
170
- open 'gem.deps.rb', 'w' do |io|
170
+ File.open 'gem.deps.rb', 'w' do |io|
171
171
  io.puts 'gem "b"'
172
172
  end
173
173
 
@@ -190,7 +190,7 @@ DEPENDENCIES
190
190
  rs = Gem::RequestSet.new
191
191
  installed = []
192
192
 
193
- open 'gem.deps.rb', 'w' do |io|
193
+ File.open 'gem.deps.rb', 'w' do |io|
194
194
  io.puts <<-GEM_DEPS
195
195
  gem "a"
196
196
  ruby "0"
@@ -31,7 +31,7 @@ class TestGemRequestSetLockfile < Gem::TestCase
31
31
  def write_lockfile lockfile
32
32
  @lock_file = File.expand_path "#{@gem_deps_file}.lock"
33
33
 
34
- open @lock_file, 'w' do |io|
34
+ File.open @lock_file, 'w' do |io|
35
35
  io.write lockfile
36
36
  end
37
37
  end
@@ -387,7 +387,7 @@ DEPENDENCIES
387
387
  s.add_dependency 'c', '~> 1.0'
388
388
  end
389
389
 
390
- open 'b.gemspec', 'w' do |io|
390
+ File.open 'b.gemspec', 'w' do |io|
391
391
  io.write b.to_ruby
392
392
  end
393
393
 
@@ -400,7 +400,7 @@ DEPENDENCIES
400
400
  Dir.chdir 'c' do
401
401
  c = Gem::Specification.new 'c', 1
402
402
 
403
- open 'c.gemspec', 'w' do |io|
403
+ File.open 'c.gemspec', 'w' do |io|
404
404
  io.write c.to_ruby
405
405
  end
406
406
 
@@ -455,7 +455,7 @@ DEPENDENCIES
455
455
 
456
456
  gem_deps_lock_file = "#{@gem_deps_file}.lock"
457
457
 
458
- open gem_deps_lock_file, 'w' do |io|
458
+ File.open gem_deps_lock_file, 'w' do |io|
459
459
  io.write 'hello'
460
460
  end
461
461