-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gem_prelude.rb: load full rubygems at LoadError for activation
check. [ruby-core:29486] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- Loading branch information
Showing
12 changed files
with
171 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
Tue Jun 8 06:27:09 2010 Nobuyoshi Nakada <[email protected]> | ||
|
||
* gem_prelude.rb: load full rubygems at LoadError for activation | ||
check. [ruby-core:29486] | ||
|
||
Tue Jun 8 06:04:49 2010 Nobuyoshi Nakada <[email protected]> | ||
|
||
* io.c (parse_mode_enc): set set_by_bom bit. [ruby-core:30641] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/rubygems/gems/current/gems/rubygems-bug-child-1.0/lib/rubygems-bug-child.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$bug_3140 = "1.0" |
1 change: 1 addition & 0 deletions
1
test/rubygems/gems/current/gems/rubygems-bug-child-1.1/lib/rubygems-bug-child.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$bug_3140 = "1.1" |
1 change: 1 addition & 0 deletions
1
test/rubygems/gems/current/gems/rubygems-bug-parent-1.0/lib/rubygems-bug-parent.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require "rubygems-bug-child" |
29 changes: 29 additions & 0 deletions
29
test/rubygems/gems/current/specifications/rubygems-bug-child-1.0.gemspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{rubygems-bug-child} | ||
s.version = "1.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Yehuda Katz"] | ||
s.date = %q{2010-04-12} | ||
s.description = %q{Demonstrates a rubygems bug that exists in 1.9 because of gem prelude but not 1.8} | ||
s.email = %q{[email protected]} | ||
s.files = ["lib/rubygems-bug-child.rb"] | ||
s.homepage = %q{http://www.yehudakatz.com} | ||
s.require_paths = ["lib"] | ||
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7") | ||
s.rubyforge_project = %q{rubygems-bug} | ||
s.rubygems_version = %q{1.3.6} | ||
s.summary = %q{Demonstrates a rubygems bug} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
else | ||
end | ||
else | ||
end | ||
end |
29 changes: 29 additions & 0 deletions
29
test/rubygems/gems/current/specifications/rubygems-bug-child-1.1.gemspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{rubygems-bug-child} | ||
s.version = "1.1" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Yehuda Katz"] | ||
s.date = %q{2010-04-12} | ||
s.description = %q{Demonstrates a rubygems bug that exists in 1.9 because of gem prelude but not 1.8} | ||
s.email = %q{[email protected]} | ||
s.files = ["lib/rubygems-bug-child.rb"] | ||
s.homepage = %q{http://www.yehudakatz.com} | ||
s.require_paths = ["lib"] | ||
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7") | ||
s.rubyforge_project = %q{rubygems-bug} | ||
s.rubygems_version = %q{1.3.6} | ||
s.summary = %q{Demonstrates a rubygems bug} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
else | ||
end | ||
else | ||
end | ||
end |
32 changes: 32 additions & 0 deletions
32
test/rubygems/gems/current/specifications/rubygems-bug-parent-1.0.gemspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{rubygems-bug-parent} | ||
s.version = "1.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Yehuda Katz"] | ||
s.date = %q{2010-04-12} | ||
s.description = %q{Demonstrates a rubygems bug that exists in 1.9 because of gem prelude but not 1.8} | ||
s.email = %q{[email protected]} | ||
s.files = ["lib/rubygems-bug-parent.rb"] | ||
s.homepage = %q{http://www.yehudakatz.com} | ||
s.require_paths = ["lib"] | ||
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7") | ||
s.rubyforge_project = %q{rubygems-bug} | ||
s.rubygems_version = %q{1.3.6} | ||
s.summary = %q{Demonstrates a rubygems bug} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
s.add_runtime_dependency(%q<rubygems-bug-child>, ["= 1.0.0"]) | ||
else | ||
s.add_dependency(%q<rubygems-bug-child>, ["= 1.0.0"]) | ||
end | ||
else | ||
s.add_dependency(%q<rubygems-bug-child>, ["= 1.0.0"]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require_relative '../ruby/envutil' | ||
require 'test/unit' | ||
|
||
class TestGemActivation < Test::Unit::TestCase | ||
def test_activation | ||
bug3140 = '[ruby-core:29486]' | ||
src = %{begin | ||
require 'rubygems-bug-parent' | ||
rescue Gem::LoadError | ||
puts $! | ||
else | ||
puts $bug_3140 | ||
end} | ||
basedir = File.expand_path("../gems/current", __FILE__) | ||
env = {"HOME"=>basedir, "GEM_HOME"=>basedir, "GEM_PATH"=>basedir} | ||
assert_in_out_err([env, "-rrubygems-bug-child", "-e", src], "", | ||
/can't activate rubygems-bug-child.*already activated rubygems-bug-child-1\.1/, [], | ||
$bug_3140) | ||
end | ||
end if defined?(::Gem) |