🕷 software releases

by ryan davis



ruby_parser version 3.15.0 has been released!

Published at 17:15

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). It outputs s-expressions which can be manipulated and converted back to ruby via the ruby2ruby gem.

As an example:

def conditional1 arg1
  return 1 if arg1 == 0
  return 0


s(:defn, :conditional1, s(:args, :arg1),
    s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
    s(:return, s(:lit, 1)),
  s(:return, s(:lit, 0)))

Tested against 801,039 files from the latest of all rubygems (as of 2013-05):

  • 1.8 parser is at 99.9739% accuracy, 3.651 sigma
  • 1.9 parser is at 99.9940% accuracy, 4.013 sigma
  • 2.0 parser is at 99.9939% accuracy, 4.008 sigma


3.15.0 / 2020-08-31

  • 1 major enhancement:

    • Added tentative 2.7 support.
  • 1 minor enhancement:

    • Improved ruby_parse_extract_error’s handling of moving slow files out.
  • 22 bug fixes:

    • Bumped ruby version to include 3.0 (trunk).
    • Fix an error related to empty ensure bodies. (presidentbeef)
    • Fix handling of bad magic encoding comment.
    • Fixed SystemStackError when parsing a huoooge hash, caused by a splat arg.
    • Fixed a number of errors parsing do blocks in strange edge cases.
    • Fixed a string backslash lexing bug when the string is an invalid encoding. (nijikon, gmcgibbon)
    • Fixed bug assigning line number to some arg nodes.
    • Fixed bug concatinating string literals with differing encodings.
    • Fixed bug lexing heredoc w/ nasty mix of \r\n and \n.
    • Fixed bug lexing multiple codepoints in \u{0000 1111 2222} forms.
    • Fixed bug setting line numbers in empty xstrings in some contexts.
    • Fixed edge case on call w/ begin + do block as an arg.
    • Fixed handling of UTF BOM.
    • Fixed handling of lexer state across string interpolation braces.
    • Fixed infinite loop when lexing backslash+cr+newline (aka dos-files)
    • Fixed lambda + do block edge case.
    • Fixed lexing of some ?\M… and ?\C… edge cases.
    • Fixed more do/brace block edge case failures.
    • Fixed parsing bug where splat was used in the middle of a list.
    • Fixed parsing of interpolation in heredoc-like strings. (presidentbeef)
    • Fixed parsing some esoteric edge cases in op_asgn.
    • Fixed unicode processing in ident chars so now they better mix.
  • home: https://github.com/seattlerb/ruby_parser
  • bugs: https://github.com/seattlerb/ruby_parser/issues
  • rdoc: http://docs.seattlerb.org/ruby_parser

sexp_processor version 4.15.1 has been released!

Published at 17:08

sexp_processor branches from ParseTree bringing all the generic sexp processing tools with it. Sexp, SexpProcessor, Environment, etc… all for your language processing pleasure.


4.15.1 / 2020-08-31

minitest version 5.14.2 has been released!

Published at 17:01

minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.

"I had a class with Jim Weirich on testing last week and we were
 allowed to choose our testing frameworks. Kirk Haines and I were
 paired up and we cracked open the code for a few test

 I MUST say that minitest is *very* readable / understandable
 compared to the 'other two' options we looked at. Nicely done and
 thank you for helping us keep our mental sanity."

-- Wayne E. Seguin

minitest/test is a small and incredibly fast unit testing framework. It provides a rich set of assertions to make your tests clean and readable.

minitest/spec is a functionally complete spec engine. It hooks onto minitest/test and seamlessly bridges test assertions over to spec expectations.

minitest/benchmark is an awesome way to assert the performance of your algorithms in a repeatable manner. Now you can assert that your newb co-worker doesn’t replace your linear algorithm with an exponential one!

minitest/mock by Steven Baker, is a beautifully tiny mock (and stub) object framework.

minitest/pride shows pride in testing and adds coloring to your test output. I guess it is an example of how to write IO pipes too. :P

minitest/test is meant to have a clean implementation for language implementors that need a minimal set of methods to bootstrap a working test suite. For example, there is no magic involved for test-case discovery.

"Again, I can't praise enough the idea of a testing/specing
 framework that I can actually read in full in one sitting!"

-- Piotr Szotkowski

Comparing to rspec:

rspec is a testing DSL. minitest is ruby.

-- Adam Hawkins, "Bow Before MiniTest"

minitest doesn’t reinvent anything that ruby already provides, like: classes, modules, inheritance, methods. This means you only have to learn ruby to use minitest and all of your regular OO practices like extract-method refactorings still apply.


5.14.2 / 2020-08-31

hoe version 3.22.2 has been released!

Published at 16:40

Hoe is a rake/rubygems helper for project Rakefiles. It helps you manage, maintain, and release your project and includes a dynamic plug-in system allowing for easy extensibility. Hoe ships with plug-ins for all your usual project tasks including rdoc generation, testing, packaging, deployment, and announcement.

See class rdoc for help. Hint: ri Hoe or any of the plugins listed below.

For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf


3.22.2 / 2020-08-31