mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems/ext/ext_conf_builder.rb: Remove siteconf file after
building the gem. * test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above. * lib/rubygems/psych_tree.rb (module Gem): Add backward compatibility for r41148 * test/rubygems/test_gem_package.rb: Add backward compatibility for double-slash elimination. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dafbdd6816
commit
cd9f9e4719
5 changed files with 19 additions and 0 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
Wed Jul 10 07:34:34 2013 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* lib/rubygems/ext/ext_conf_builder.rb: Remove siteconf file after
|
||||||
|
building the gem.
|
||||||
|
* test/rubygems/test_gem_ext_ext_conf_builder.rb: Test for the above.
|
||||||
|
|
||||||
|
* lib/rubygems/psych_tree.rb (module Gem): Add backward compatibility
|
||||||
|
for r41148
|
||||||
|
|
||||||
|
* test/rubygems/test_gem_package.rb: Add backward compatibility for
|
||||||
|
double-slash elimination.
|
||||||
|
|
||||||
Wed Jul 10 06:22:27 2013 Tadayoshi Funaba <tadf@dotrb.org>
|
Wed Jul 10 06:22:27 2013 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_parse.c (date_zone_to_diff): [ruby-core:55831].
|
* ext/date/date_parse.c (date_zone_to_diff): [ruby-core:55831].
|
||||||
|
|
|
@ -37,6 +37,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
|
||||||
run cmd, results
|
run cmd, results
|
||||||
|
|
||||||
ENV["DESTDIR"] = nil
|
ENV["DESTDIR"] = nil
|
||||||
|
siteconf.unlink
|
||||||
|
|
||||||
make dest_path, results
|
make dest_path, results
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
module Gem
|
module Gem
|
||||||
if defined? ::Psych::Visitors
|
if defined? ::Psych::Visitors
|
||||||
class NoAliasYAMLTree < Psych::Visitors::YAMLTree
|
class NoAliasYAMLTree < Psych::Visitors::YAMLTree
|
||||||
|
def self.create
|
||||||
|
new({})
|
||||||
|
end unless respond_to? :create
|
||||||
|
|
||||||
def visit_String(str)
|
def visit_String(str)
|
||||||
return super unless str == '=' # or whatever you want
|
return super unless str == '=' # or whatever you want
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ class TestGemExtExtConfBuilder < Gem::TestCase
|
||||||
assert_equal "creating Makefile\n", output[1]
|
assert_equal "creating Makefile\n", output[1]
|
||||||
assert_contains_make_command '', output[2]
|
assert_contains_make_command '', output[2]
|
||||||
assert_contains_make_command 'install', output[4]
|
assert_contains_make_command 'install', output[4]
|
||||||
|
assert_empty Dir.glob(File.join(@ext, 'siteconf*.rb'))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_class_build_rbconfig_make_prog
|
def test_class_build_rbconfig_make_prog
|
||||||
|
|
|
@ -335,6 +335,7 @@ class TestGemPackage < Gem::Package::TarTestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_install_location_extra_slash
|
def test_install_location_extra_slash
|
||||||
|
skip 'no File.realpath on 1.8' if RUBY_VERSION < '1.9'
|
||||||
package = Gem::Package.new @gem
|
package = Gem::Package.new @gem
|
||||||
|
|
||||||
file = 'foo//file.rb'
|
file = 'foo//file.rb'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue