rubygems-update 2.0.4 → 2.0.5

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: 23d91223aab36769e7bd55ec6a42800a4b8d9f40
4
- data.tar.gz: b5190f2902a2fe929a7c27a0864a2f0d087e749f
3
+ metadata.gz: 59a635b46def21cb6f0373fc28dd5bcbfdb0d9ab
4
+ data.tar.gz: cd146aab140604eadf8eb49c7e64889e42e8b57f
5
5
  SHA512:
6
- metadata.gz: f96281ae469f202368eab4524a800b4d9f0dc389b6628afc5c0a3d70981dac6c069d0a4e058dddfe10a1c6e753ed3d69c69bb4ffc22f1575673b89eb393d4d28
7
- data.tar.gz: cb3f3ff170c6d6b680f72cfe9b296f335f3dc5d5564ffeba7df037808fa4696892754c107fbaf94b8698b37253f2d7106f3378e34c018c9dd9647e6f185d32dc
6
+ metadata.gz: 3a2fba3840318877dbc31c8bb63b219dc7110e022007b61dda8cd13c677e655e77d11e37a585e44e7f4116049c150c92755852d8de881e87ea08a3b6b152b440
7
+ data.tar.gz: 1c3f8e06b1f41ff2f46b949b1922965854726cd0812d737734613737bc316a9184d621cb915aac5ce5c055db53982a48f2c5efa6ce8258bf699832ec7a438c0e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,5 +1,12 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.0.5 / 2013-07-11
4
+
5
+ Bug fixes:
6
+
7
+ * Fixed building of extensions that run ruby in their makefiles. Bug #589 by
8
+ Zachary Salzbank.
9
+
3
10
  === 2.0.4 / 2013-07-09
4
11
 
5
12
  Bug fixes:
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = '2.0.4'
11
+ VERSION = '2.0.5'
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -15,7 +15,9 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
15
15
  def self.build(extension, directory, dest_path, results, args=[])
16
16
  tmp_dest = Dir.mktmpdir(".gem.", ".")
17
17
 
18
+ t = nil
18
19
  Tempfile.open %w"siteconf .rb", "." do |siteconf|
20
+ t = siteconf
19
21
  siteconf.puts "require 'rbconfig'"
20
22
  siteconf.puts "dest_path = #{(tmp_dest || dest_path).dump}"
21
23
  %w[sitearchdir sitelibdir].each do |dir|
@@ -37,6 +39,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
37
39
  run cmd, results
38
40
 
39
41
  ENV["DESTDIR"] = nil
42
+ ENV["RUBYOPT"] = rubyopt
40
43
  siteconf.unlink
41
44
 
42
45
  make dest_path, results
@@ -54,6 +57,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
54
57
  ENV["DESTDIR"] = destdir
55
58
  end
56
59
  end
60
+ t.unlink if t and t.path
57
61
  ensure
58
62
  FileUtils.rm_rf tmp_dest if tmp_dest
59
63
  end
@@ -108,6 +108,42 @@ checking for main\(\) in .*?nonexistent/m, error.message)
108
108
  assert_equal("#{Gem.ruby} extconf.rb", output[0])
109
109
  end
110
110
 
111
+ def test_class_build_unconventional
112
+ if vc_windows? && !nmake_found?
113
+ skip("test_class_build skipped - nmake not found")
114
+ end
115
+
116
+ File.open File.join(@ext, 'extconf.rb'), 'w' do |extconf|
117
+ extconf.puts <<-'EXTCONF'
118
+ include RbConfig
119
+
120
+ ruby_exe = "#{CONFIG['RUBY_INSTALL_NAME']}#{CONFIG['EXEEXT']}"
121
+ ruby = File.join CONFIG['bindir'], ruby_exe
122
+
123
+ open 'Makefile', 'w' do |io|
124
+ io.write <<-Makefile
125
+ all: ruby
126
+ install: ruby
127
+
128
+ ruby:
129
+ \t#{ruby} -e0
130
+
131
+ Makefile
132
+ end
133
+ EXTCONF
134
+ end
135
+
136
+ output = []
137
+
138
+ Dir.chdir @ext do
139
+ Gem::Ext::ExtConfBuilder.build 'extconf.rb', nil, @dest_path, output
140
+ end
141
+
142
+ assert_contains_make_command '', output[2]
143
+ assert_contains_make_command 'install', output[4]
144
+ assert_empty Dir.glob(File.join(@ext, 'siteconf*.rb'))
145
+ end
146
+
111
147
  def test_class_make
112
148
  if vc_windows? && !nmake_found?
113
149
  skip("test_class_make skipped - nmake not found")
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.0.4
4
+ version: 2.0.5
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-07-09 00:00:00.000000000 Z
35
+ date: 2013-07-12 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
@@ -433,7 +433,7 @@ post_install_message:
433
433
  rdoc_options:
434
434
  - --main
435
435
  - README.rdoc
436
- - --title=RubyGems 2.0.4 Documentation
436
+ - --title=RubyGems 2.0.5 Documentation
437
437
  require_paths:
438
438
  - hide_lib_for_update
439
439
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -448,7 +448,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
448
448
  version: '0'
449
449
  requirements: []
450
450
  rubyforge_project: rubygems
451
- rubygems_version: 2.0.3
451
+ rubygems_version: 2.0.4
452
452
  signing_key:
453
453
  specification_version: 4
454
454
  summary: RubyGems is a package management framework for Ruby
metadata.gz.sig CHANGED
Binary file