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

Ruby25 Compatibility. #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Ruby25 Compatibility. #12

wants to merge 2 commits into from

Conversation

abMatGit
Copy link

No description provided.

@@ -152,7 +152,12 @@ def each_on_axis(axis, &block)
# temporarily suppress warnings
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