seattlerb / ruby_parser

ruby_parser is a ruby parser written in pure ruby. It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.
http://www.zenspider.com/projects/ruby_parser.html
476 stars 100 forks source link

Could the latest master be released? #268

Closed Jack12816 closed 5 years ago

Jack12816 commented 6 years ago

Thanks for this great gem!

But due to missing ruby 2.5 support on the latest released version many people have trouble with brakeman, etc. Could you just publish a release? @zenspider :)

benhutton commented 5 years ago

alternatively, is there some secret to running this gem directly off of github? Or is a new release essential?

Jack12816 commented 5 years ago

@benhutton I forked it and made it compatible for now until the release was done. In combination with brakeman it looks like this:

  # Until we get a new release. See: http://bit.ly/2PDt3LI
  # @TODO: Remove as soon as possible.
  gem 'ruby_parser',
      github: 'Jack12816/ruby_parser',
      branch: 'master',
      require: false
  # Brakeman is an open source static analysis tool which checks Ruby on Rails
  # applications for security vulnerabilities
  # gem 'brakeman', require: false
  # @TODO: Remove as soon as possible.
  gem 'brakeman',
      github: 'presidentbeef/brakeman',
      branch: 'v4.3.1',
      require: false   

Brakeman bundles the ruby_parser gem inside its released versions, so we need to use it off of Github, too.