Skip to content

Conversation

@Schwad
Copy link
Contributor

@Schwad Schwad commented Oct 15, 2018

Description:

Type: Cleanup

RubyForge was sunsetted in 2013 . There are still mentions of it in the code base. For this PR, instead of looking for dead links I aimed to clear out the rubyforge_project attr_accessor from the rubygems specification and the places that reference it.

Perhaps there could be a conversation here whether something could 'replace', rubyforge_project (github_project?) but to start here is the 'lite' approach that simply removes it.

Looking forward to thoughts and feedback! :)


Tasks:

  • Describe the problem / feature
  • Write tests (n/a)
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

@bronzdoc
Copy link
Contributor

There is Bundler code that is bening tested with rubyforge_project that needs to me modified too

@hsbt
Copy link
Member

hsbt commented Oct 15, 2018

I'm okay to merge this. But The 15000+ gems still uses rubyforge_project. Like this.

...
active_presenter-3.2.2/lib/tasks/gem.rake:  s.rubyforge_project     = 'active_presenter'
active_press-0.1.0/active_press.gemspec:  s.rubyforge_project = "active_press"
active_reaper-0.0.2/active_reaper.gemspec:  s.rubyforge_project = "active_reaper"
...

We need to add the migration step that is the only attr_writer.

@Schwad
Copy link
Contributor Author

Schwad commented Oct 16, 2018

@hsbt thanks for the feedback and @bronzdoc thank you for the review as well.

What I will look to do is keep the removals but utilize attr_writer :rubyforge_project as suggested to keep existing gems from breaking.

Since we have access to Gem::Deprecate, would it be wise to implement deprecate as well?

deprecate :rubyforge_project, :none, 2020, 4

@Schwad
Copy link
Contributor Author

Schwad commented Oct 16, 2018

I will see how the checks go, I have reincluded an attr_writer one-liner and utilized deprecate as well.


data = Marshal.load Gem::Util.inflate(Gem.read_binary(path))

assert_nil data.rubyforge_project
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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 rubyforge_project is the necessary component. We can flag up some other authors but I could preserve this test with the assertion looking at a different attribute. (say 'description'). Will commit that now.

Copy link
Contributor

Choose a reason for hiding this comment

The 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 rubyforge_project, but uses rubyforge_project to assert only. Changing assertion to use different attribute should work here also.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly enough, as I just found out, description does not assert nil. I am wondering if this is only actually passing on an assert_nil because rubyforge_project simply isn't set anymore.....

@Schwad
Copy link
Contributor Author

Schwad commented Oct 17, 2018

I am guessing failures like this: https://travis-ci.org/rubygems/rubygems/jobs/442597902 will require bundler changes.

Failures like this: https://travis-ci.org/rubygems/rubygems/jobs/442597895 will require further understanding about what the test is looking to achieve. Open to thoughts on this or a decision if we can greenlight its removal.

spec.instance_variable_set :@required_rubygems_version, array[7]
spec.instance_variable_set :@original_platform, array[8]
spec.instance_variable_set :@dependencies, array[9]
spec.instance_variable_set :@rubyforge_project, array[10]
Copy link
Contributor

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?

Copy link
Contributor

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.

@Schwad
Copy link
Contributor Author

Schwad commented Oct 25, 2018 via email

@Schwad
Copy link
Contributor Author

Schwad commented Oct 25, 2018 via email

@Schwad
Copy link
Contributor Author

Schwad commented Oct 25, 2018

Update - reference this in bundler and will do another PR in future with the full deprecation line so that we can move forward without breaking tests. Will make that change after bundler 2.0

Current changes restored offsets and removed explicit deprecation.

@deivid-rodriguez
Copy link
Contributor

So @Schwad, I take it this is ready to go now, right?

Great job here, I think there's some other attributes where we could do the same thing, for example, test_files.

@Schwad
Copy link
Contributor Author

Schwad commented Dec 6, 2018

@deivid-rodriguez just had a look, yes we should be good to go for this!

@bronzdoc
Copy link
Contributor

@bundlerbot r+

ghost pushed a commit that referenced this pull request Dec 10, 2018
2436: Remove rubyforge_page functionality r=bronzdoc a=Schwad

# Description:

Type: Cleanup

RubyForge was [sunsetted in 2013](https://twitter.com/evanphx/status/399552820380053505) . There are still mentions of it in the code base. For this PR, instead of looking for dead links I aimed to clear out the `rubyforge_project` attr_accessor from the rubygems specification and the places that reference it. 

Perhaps there could be a conversation here whether something could 'replace', `rubyforge_project` (`github_project`?) but to start here is the 'lite' approach that simply removes it. 

Looking forward to thoughts and feedback! :) 
______________

# Tasks:

- [x] Describe the problem / feature
- [ ] Write tests __(n/a)__
- [x] Write code to solve the problem
- [x] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


2511: Better unrestricted warning r=bronzdoc a=deivid-rodriguez

# Description:

This is a possible fix for #2508. If the dependency is fully unrestricted, give a generic message instead of guessing what the user wants, since we cannot really know it.
______________

# Tasks:

- [x] Describe the problem / feature
- [x] Write tests
- [x] Write code to solve the problem
- [ ] Get code review from coworkers / friends

I will abide by the [code of conduct](https://github.com/rubygems/rubygems/blob/master/CODE_OF_CONDUCT.md).


Co-authored-by: Nick Schwaderer <[email protected]>
Co-authored-by: Nick Schwaderer <[email protected]>
Co-authored-by: David Rodríguez <[email protected]>
@ghost
Copy link

ghost commented Dec 10, 2018

Build succeeded

gma pushed a commit to gma/nesta that referenced this pull request Jul 14, 2019
Rubyforge was closed down in 2013 [1]. The rubyforge_project property
was deprecated in rubygems in pull request 2436 [2].

[1] https://twitter.com/evanphx/status/399552820380053505
[2] ruby/rubygems#2436
olleolleolle added a commit to olleolleolle/adhearsion-asterisk that referenced this pull request Jul 15, 2019
RubyForge was closed down in 2013 [1]. The `rubyforge_project` property
was deprecated in rubygems in pull request 2436 [2].

[1] https://twitter.com/evanphx/status/399552820380053505
[2] ruby/rubygems#2436
olleolleolle added a commit to olleolleolle/savon that referenced this pull request Jul 15, 2019
RubyForge was closed down in 2013 [1]. The `rubyforge_project` property
was deprecated in rubygems in pull request 2436 [2].

[1] https://twitter.com/evanphx/status/399552820380053505
[2] ruby/rubygems#2436
drwl pushed a commit to ctran/annotate_models that referenced this pull request Jul 16, 2019
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement.

Refer to ruby/rubygems#2436
ryanwjackson pushed a commit to ryanwjackson/annotate_models that referenced this pull request Aug 6, 2019
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement.

Refer to ruby/rubygems#2436
pcai pushed a commit to savonrb/savon that referenced this pull request Sep 3, 2019
RubyForge was closed down in 2013 [1]. The `rubyforge_project` property
was deprecated in rubygems in pull request 2436 [2].

[1] https://twitter.com/evanphx/status/399552820380053505
[2] ruby/rubygems#2436
yujideveloper added a commit to yujideveloper/ec2ssh that referenced this pull request Nov 18, 2019
RubyForge was sunsetted in 2013.
ref. ruby/rubygems#2436
olleolleolle added a commit to olleolleolle/keycutter that referenced this pull request Dec 16, 2019
The RubyGems gemspec property rubyforge_project has been removed without a replacement.

## Background

* [RubyForge was closed down in 2013][1].
* [ruby/rubygems#2436 deprecated the `rubyforge_project` property][2].

[1]: https://twitter.com/evanphx/status/399552820380053505
[2]: ruby/rubygems#2436
peterfication pushed a commit to store2be/annotate_models that referenced this pull request Jan 20, 2020
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement.

Refer to ruby/rubygems#2436
vfonic pushed a commit to vfonic/annotate_models that referenced this pull request May 8, 2020
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement.

Refer to ruby/rubygems#2436
olleolleolle added a commit to savonrb/gyoku that referenced this pull request Mar 26, 2021
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement. This PR removes that property.

Background: 

- RubyForge was closed down in 2013, https://twitter.com/evanphx/status/399552820380053505
- ruby/rubygems#2436 deprecated the `rubyforge_project` property
olleolleolle added a commit to savonrb/gyoku that referenced this pull request Mar 26, 2021
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement. This PR removes that property.

Background: 

- RubyForge was closed down in 2013, https://twitter.com/evanphx/status/399552820380053505
- ruby/rubygems#2436 deprecated the `rubyforge_project` property
dazralsky pushed a commit to dazralsky/annotate_models that referenced this pull request Aug 21, 2023
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement.

Refer to ruby/rubygems#2436
dazralsky pushed a commit to dazralsky/gyoku that referenced this pull request Aug 21, 2023
The RubyGems gemspec property `rubyforge_project` has been removed without a replacement. This PR removes that property.

Background: 

- RubyForge was closed down in 2013, https://twitter.com/evanphx/status/399552820380053505
- ruby/rubygems#2436 deprecated the `rubyforge_project` property
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants