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

added support for rubies > 1.9.3 #12

Merged
merged 1 commit into from Dec 17, 2014
Merged

added support for rubies > 1.9.3 #12

merged 1 commit into from Dec 17, 2014

Conversation

dmitri-d
Copy link
Member

ruby_parser changed how they handle module constants -- parse tree now looks like:
s(:colon2, s(:const, :Encoding), :UTF_8).
This PR fixes the issue.

Note that I removed Gemfile.lock, as it was hiding the issue above (seattlerb/ruby_parser@0a9da94 was committed more than a year ago). Not sure if it's worth pinning minor versions of dependencies in the Gemfile -- I only updated existing constraints.

gem "ruby_parser", ">= 3.0.1"
gem 'sexp_processor', ">= 4.3.0"
gem 'ruby2ruby', ">= 2.0.6"
gem "ruby_parser", ">= 3.2.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the ruby2ruby/ruby_parser updates necessary? I guess otherwise you'd have to support both styles, right?

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_parser for sure, as the fix isn't backwards-compatible with older versions of ruby_parser. ruby2ruby depends on ruby_parser, so I'd rather update them both. Similar logic re: sexp_processor.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, thanks.

@dmitri-d
Copy link
Member Author

dmitri-d commented Dec 3, 2014

If there are no objections, I'm going to merge this and release the new version of the gem sometime tomorrow.

dmitri-d added a commit that referenced this pull request Dec 17, 2014
added support for rubies > 1.9.3
@dmitri-d dmitri-d merged commit 8aedb01 into theforeman:master Dec 17, 2014
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

2 participants