Skip to content
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

Mark deprecation to ubygems.rb for RubyGems 4 #2269

Merged
merged 2 commits into from May 10, 2018

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Apr 17, 2018

Description:

I'm going to mark deprecate status to obsoleted methods for RubyGems 4


Tasks:

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

I will abide by the code of conduct.

@segiddins
Copy link
Member

Where’s the RubyGems issue where we decided to deprecate this?

@hsbt
Copy link
Member Author

hsbt commented Apr 18, 2018

@segiddins I don't know. ubygems.rb will never use on the current supported versions of Ruby. It should be removed from this repository.

PS. I already removed its file from ruby core at Ruby 2.5.

@segiddins
Copy link
Member

But it’s installed when I Gem update —system, and I don’t think we should remove it without discussing the reason for doing so

@hsbt
Copy link
Member Author

hsbt commented Apr 18, 2018

@segiddins Please give a reasonable reason to me to keep its file in the future. I already decided to remove it in RubyGems 4.

@segiddins
Copy link
Member

I already decided to remove it in RubyGems 4

I don’t think that’s fair — it’s for the RubyGems team to collectively make decisions, not just you or me.

As to my aversion to removing this file? I run ruby -rubygems frequently

@hsbt
Copy link
Member Author

hsbt commented Apr 18, 2018

I run ruby -rubygems frequently

with Ruby 1.8? I wonder why you add -rubygems in 2018.

@hsbt
Copy link
Member Author

hsbt commented Apr 18, 2018

  1. We already adopted to remove to support old rubies: Release plan for RubyGems 3 & 4 #2191
  2. I did NOT remove its file immediately. At first, We warn deprecated message at RubyGems 3. I will remove it at RubyGems 4
  3. You did accept other removable pull requests for RubyGems 3 & 4.

I think your opinion is only your experience. It's not reasonable.

@segiddins
Copy link
Member

It’s not reasonable to want a discussion, rather than just making changes, saying “a decision has been made”?

@hsbt
Copy link
Member Author

hsbt commented Apr 19, 2018

@segiddins I'm waiting "your reasonable reason for this removable change" yet.

After Ruby 1.9, rubygems is automatically activated by the prelude of Ruby. You should not add -rubygems on the technical side. I do not understand your reasons for this problem

@segiddins
Copy link
Member

My problem isn't the change per-se, it's the assertion of this has been decided when no discussion has taken place.

You should not add -rubygems on the technical side

a) I run 1.8 occasionally
b) -disable-gems

@hsbt
Copy link
Member Author

hsbt commented Apr 19, 2018

a) I run 1.8 occasionally

The current master branch was not supported Ruby 1.8. It was not related this.

b) -disable-gems

Why you add -rubygems with --disable-gems? It's not reasonable.

@segiddins
Copy link
Member

Why you add -rubygems with --disable-gems?

Aliases

It was not related this.

It is related. I have scripts that are meant to work on all versions of ruby, and this feels like a breaking change for no good reason

@hsbt
Copy link
Member Author

hsbt commented Apr 19, 2018

It is related. I have scripts that are meant to work on all versions of ruby,

It's your personal problem.

@hsbt hsbt changed the title [WIP] Mark deprecation to obsoleted methods for RubyGems 4 Mark deprecation to ubygems.rb for RubyGems 4 Apr 20, 2018
@duckinator
Copy link
Member

@segiddins is there any reasons your scripts can't be updated to use -rrubygems instead of -rubygems?

@hsbt I'm in favor of deprecating this, but i'd appreciate it if you would consider re-adding it to Ruby until RubyGems removes it. This was a feature for at least 12 years(!), and removing it abruptly like you did in Ruby 2.5 seems risky. We want to provide time for people to adjust their scripts.

lib/ubygems.rb Outdated
@@ -7,5 +7,8 @@
# See LICENSE.txt for permissions.
#++

# TODO: Remove this file at RubyGems 4.0
# Based by https://bugs.ruby-lang.org/issues/14322#note-4
warn "`ubygems.rb' is deprecated, It will be removed on or after 2018-12-01. remove `-rubygems' from your command-line"
Copy link
Member

Choose a reason for hiding this comment

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

@hsbt what do you think of this message?:

warn "`ubygems.rb' is deprecated, and will be removed on or after 2018-12-01. Remove `-rubygems' from your command-line, or use `-r rubygems' instead"

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@ghost
Copy link

ghost commented May 1, 2018

Early deprecation notices in advance are good, IMO.

It gives people more time to transition (with a transition period
that should take some time too).

@duckinator
Copy link
Member

@hsbt are you going to change the warning? you've got a +1 from me on the deprecation either way, but i don't want to merge it before it's ready if you're changing it.

@hsbt
Copy link
Member Author

hsbt commented May 10, 2018

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit 5f5a0be has been approved by hsbt

@bundlerbot
Copy link
Collaborator

⌛ Testing commit 5f5a0be with merge faacaeb...

bundlerbot added a commit that referenced this pull request May 10, 2018
Mark deprecation to `ubygems.rb` for RubyGems 4

# Description:

I'm going to mark deprecate status to obsoleted methods for RubyGems 4
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] 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).
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: hsbt
Pushing faacaeb to master...

@bundlerbot bundlerbot merged commit 5f5a0be into master May 10, 2018
hsbt pushed a commit that referenced this pull request May 10, 2018
Mark deprecation to `ubygems.rb` for RubyGems 4

# Description:

I'm going to mark deprecate status to obsoleted methods for RubyGems 4
______________

# Tasks:

- [ ] Describe the problem / feature
- [ ] Write tests
- [ ] 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).
@hsbt hsbt added this to the 2.7.7 milestone May 10, 2018
@hsbt hsbt deleted the more-deprecate-rubygems3 branch May 17, 2018 05:29
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.

None yet

5 participants