-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove rubyforge_page functionality #2436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
ed1ac63
dfe5fa6
0935f38
3dbfa8a
6cbdf43
ef83406
bd9b003
d3bcc8f
57bc545
a959a2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,6 @@ class TestGemRemoteFetcher < Gem::TestCase | |
| author: Jim Weirich | ||
| email: [email protected] | ||
| homepage: http://rake.rubyforge.org | ||
| rubyforge_project: rake | ||
| description: Rake is a Make-like program implemented in Ruby. Tasks and dependencies are specified in standard Ruby syntax. | ||
| autorequire: | ||
| default_executable: rake | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,6 @@ def make_spec_c1 | |
| s.extensions << 'ext/a/extconf.rb' | ||
| s.test_file = 'test/suite.rb' | ||
| s.requirements << 'A working computer' | ||
| s.rubyforge_project = 'example' | ||
| s.license = 'MIT' | ||
|
|
||
| s.add_dependency 'rake', '> 0.4' | ||
|
|
@@ -80,7 +79,6 @@ def setup | |
| s.executable = 'exec' | ||
| s.test_file = 'test/suite.rb' | ||
| s.requirements << 'A working computer' | ||
| s.rubyforge_project = 'example' | ||
| s.license = 'MIT' | ||
|
|
||
| s.mark_version | ||
|
|
@@ -701,7 +699,6 @@ def test_self_attribute_names | |
| required_ruby_version | ||
| required_rubygems_version | ||
| requirements | ||
| rubyforge_project | ||
| rubygems_version | ||
| signing_key | ||
| specification_version | ||
|
|
@@ -871,7 +868,6 @@ def test_self_from_yaml_cleans_up_Date_objects | |
| author: Austin Ziegler | ||
| email: [email protected] | ||
| homepage: http://rubyforge.org/projects/ruwiki/ | ||
| rubyforge_project: ruwiki | ||
| description: "Test" | ||
| bindir: bin | ||
| has_rdoc: true | ||
|
|
@@ -1210,14 +1206,6 @@ def test_self_stubs_for_mult_platforms | |
|
|
||
| DATA_PATH = File.expand_path "../data", __FILE__ | ||
|
|
||
| def test_handles_private_null_type | ||
| path = File.join DATA_PATH, "null-type.gemspec.rz" | ||
|
|
||
| data = Marshal.load Gem::Util.inflate(Gem.read_binary(path)) | ||
|
|
||
| assert_nil data.rubyforge_project | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't we just change assertion in here? What's purpose of this test?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I went through the history (blame) on this file and the latest commits on each line weren't too illuminating: https://github.com/rubygems/rubygems/blame/master/test/rubygems/test_gem_specification.rb However nothing about this test makes me think that
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, that's what I was thinking about as well. It is not clear what's the purpose of this test at all, but it is probably not directly testing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interestingly enough, as I just found out, |
||
| end | ||
|
|
||
| def test_initialize | ||
| spec = Gem::Specification.new do |s| | ||
| s.name = "blah" | ||
|
|
@@ -2496,7 +2484,6 @@ def test_to_ruby_fancy | |
| s.homepage = "http://example.com".freeze | ||
| s.licenses = ["MIT".freeze] | ||
| s.requirements = ["A working computer".freeze] | ||
| s.rubyforge_project = "example".freeze | ||
| s.rubygems_version = "#{Gem::VERSION}".freeze | ||
| s.summary = "this is a summary".freeze | ||
| s.test_files = ["test/suite.rb".freeze] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change would require bumping the spec version -- it might be better to keep the offsets the same, and just never use the rubyforge ivar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 for keeping the offsets the same. You should probably also add a note explaining that it's deprecated/no longer used.