Skip to content

Conversation

@abMatGit
Copy link

No description provided.

class <<Kernel
alias_method :old_warn, :warn
def warn(*args)
if RUBY_VERSION >= '2.5.0' # REXML uses additional hash parameters in ruby 2.5 and onwards
Copy link
Owner

@multi-io multi-io Jan 22, 2019

Choose a reason for hiding this comment

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

Do we need the if-else here? def warn(msg, **options) should be fully compatible with pre-2.5 REXML even if it doesn't pass any options, afaics.

@multi-io
Copy link
Owner

About the gemspec file -- why do people want to add this? Doesn't anybody like my gem specification in the Rakefile? I was mighty proud of it back then I remember :) Right now you're duplicating the Rakefile FILES_* variables in the gemspec file. I'd be OK with having a gemspec file and loading it from the Rakefile so we avoid this duplication. Alternatively, just remove the gemspec file from the PR and we could refactor this later separately.

@multi-io
Copy link
Owner

Thanks for the PR!

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.

3 participants