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

Disable more deprecations. #4392

Merged
merged 2 commits into from
Jul 15, 2018
Merged

Disable more deprecations. #4392

merged 2 commits into from
Jul 15, 2018

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Jun 29, 2018

  • Turn more old odeprecated into odisabled
  • Remove more old odisabled
  • Remove code for older Ruby versions

This should not be merged until we are sure the next version will be 1.7.0.

CC cask folks for the @Homebrew/cask changes.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew tests with your changes locally?

@ghost ghost assigned MikeMcQuaid Jun 29, 2018
@ghost ghost added the in progress Maintainers are working on this label Jun 29, 2018
@@ -363,15 +349,6 @@ def make_relative_symlink(src)
File.symlink(src.relative_path_from(dirname), self)
end

unless method_defined?(:/)
def /(other)
Copy link
Member

Choose a reason for hiding this comment

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

Where did this go?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ruby 2.3.3 always defines this method.

Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@@ -95,7 +95,6 @@ def parse
next if encoding.nil?

# use the specified encoding for the rest of the file
next unless String.method_defined?(:force_encoding)
Copy link
Member

Choose a reason for hiding this comment

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

Don't change vendored code.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed.

# @private
alias old_ruby ruby
end

# Run the `ruby` Homebrew is using rather than whatever is in the `PATH`.
def ruby(*args)
Copy link
Member

Choose a reason for hiding this comment

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

Seems like this isn't used anywhere. Should we deprecate this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea!

- Turn more old `odeprecated` into `odisabled`
- Remove more old `odisabled`
- Remove code for older Ruby versions
These don't need to live on FileUtils and don't really make sense there
either.
@MikeMcQuaid MikeMcQuaid merged commit bd5131d into Homebrew:master Jul 15, 2018
@ghost ghost removed the in progress Maintainers are working on this label Jul 15, 2018
@MikeMcQuaid MikeMcQuaid deleted the more-deprecation-disabled branch July 15, 2018 13:48
jonchang added a commit to brewsci/homebrew-science that referenced this pull request Jul 19, 2018
@lock lock bot added the outdated PR was locked due to age label Aug 14, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants