summaryrefslogtreecommitdiff
path: root/devel/ruby-parser
diff options
context:
space:
mode:
authortaca <taca>2013-09-15 10:11:05 +0000
committertaca <taca>2013-09-15 10:11:05 +0000
commit8f4ec06e17fdc18400b6d3927e2ef9c70f104fed (patch)
tree1f1a7fc98c8c6c7c86d341f1992213ccfdea221b /devel/ruby-parser
parentdc8d2a11e54eefbefbdb784f5b5115f8a7fd6497 (diff)
downloadpkgsrc-8f4ec06e17fdc18400b6d3927e2ef9c70f104fed.tar.gz
Update ruby-parser to 3.2.2.
=== 3.2.2 / 2013-07-11 * 5 bug fixes: * 1.9/2.0: fixed assocs in return args. (presidentbeef) * Fixed handling of parse error when class is nested in multiple defs. (whitequark) * Fixed lexing of %w[] w/ funny whitespace separators. (whitequark) * Fixed more call nodes that have trailing comma syntax. (presidentbeef) * Fixed more call_args slippage. === 3.2.1 / 2013-07-03 * 1 bug fix: * 1.9/2.0: Trailing assocs were being munged into arrays. (presidentbeef) === 3.2.0 / 2013-07-02 * 1 major enhancement: * Added (rough draft) 2.0 support. Still missing some small / rare things. * 12 minor enhancements: * Added %i(symbol-names...) support. (%I too) * Added 140 more tests, jumping test count from 1376 to 2143. Yay for test reuse! * Added RubyLexer#brace_nest. * Added compare20 rake task to diff the grammar architecture against MRI. * Added lpar_beg and paren_nest to lexer to track state of parens in stabbies * Added shadow nodes for scoped block args. * Compound RubyParser now defaults to 2.0. * Fixed rake to < 10, because 10's file dependency handling is so very broken. * Made it possible to specify version in bin/ruby_parse_extract_error w/ -v 18|19|20 * Refactored to RubyParserStuff::ENCODING_ORDER to allow custom tweaking of encoding guessing. (samlown) * Switched `rake debug` to default to 2.0. * Translated some fixes across 1.8 and 1.9 from 2.0. * 42 bug fixes: * 2.0: Fixed a number of block args scenarios w/ kwargs * 2.0: Fixed args_tail mismatching against lexer. * 2.0: Fixed assocs to return a hash node. * 2.0: Fixed f_block_kw production. * 2.0: Fixed f_block_kwarg production. * 2.0: Fixed handling of stabby proc args in parens. * 2.0: Fixed lexing of kwsplat nodes. * 2.0: Implemented kwsplat nodes. * Added tUBANG to lexer. * Apparently ruby doesn't warn for escaped octal that goes above 7. wtf. * Cleaned up a LOT of arg handling (block and defn, not calls) by using #args. * ESC_RE is set to unicode. This seems problematic. *shrug* * Either found a bug in MRI and/or fixed paren_nest count for []=? methods. * Extended IDENT_CHAR_RE on 1.9+ to top out at \u{10ffff}... because we NEED a million unicode chars. * Fixed % strings with interpolation. * Fixed BEGIN {} to return a sexp. * Fixed a[] += b. (stormbrew) * Fixed arg_blk_pass to allow for sub-args nodes. * Fixed assignable to allow for sexps to be passed to it. * Fixed assoc args in 1.9. * Fixed block_command and block_call (eg a.b c d) to #to_sym their args properly. * Fixed bug in compound RubyParser so it rescues RubyParser::SyntaxError. * Fixed env registration of cdecls. * Fixed lex value for { when expr_endfn. * Fixed lex_state for close paren/brace/bracket. * Fixed lex_state transition for 1.9 if we lexed a defn name. Only 1.8 is odd. * Fixed lexer problem with state mgmt of identifiers that also have registered var name. * Fixed lexing of "1 *\n" to have the correct lex_state. * Fixed lexing of heredocs vs chevron for some lex_states. * Fixed op_asgn nodes to #to_sym their args properly. * Fixed optional value block args. * Fixed parsing of __ENCODING__ on ruby 1.8 (vcall). * Fixed some oddity where 1.9 lexing was blowing up on "0o". Seems invalid now. * Fixed strings with escaped octals > 128. Also... wtf. * Fixed support for empty symbol (wtf?). * Lexer is now declared UTF-8 internally. Hopefully this will fix the encoding mess. * Made UTF_8 the default guess on encodings when it isn't explicit. * Parsing of __ENCODING__ on ruby 1.9+ (in ruby 1.9+) is now colon2 sexp. (whitequark) * Renamed RubyLexer#nest to string_nest * RubyLexer#unescape ignores bad octal/hex and returns unicode strings. * Switched a number of lexical constructs to use IDENT_CHAR_RE instead of \w. I wish there were something cleaner for regexps + unicode. * Switched ruby_parse_extract_error to use binread.
Diffstat (limited to 'devel/ruby-parser')
-rw-r--r--devel/ruby-parser/Makefile4
-rw-r--r--devel/ruby-parser/PLIST4
-rw-r--r--devel/ruby-parser/distinfo8
3 files changed, 9 insertions, 7 deletions
diff --git a/devel/ruby-parser/Makefile b/devel/ruby-parser/Makefile
index 7661709bbe0..7a12b9bb389 100644
--- a/devel/ruby-parser/Makefile
+++ b/devel/ruby-parser/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2013/09/09 12:29:25 fhajny Exp $
+# $NetBSD: Makefile,v 1.13 2013/09/15 10:11:05 taca Exp $
-DISTNAME= ruby_parser-3.1.3
+DISTNAME= ruby_parser-3.2.2
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby_//}
CATEGORIES= devel
diff --git a/devel/ruby-parser/PLIST b/devel/ruby-parser/PLIST
index 90ddc92c9c3..286c8757b23 100644
--- a/devel/ruby-parser/PLIST
+++ b/devel/ruby-parser/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2012/12/16 16:30:07 taca Exp $
+@comment $NetBSD: PLIST,v 1.5 2013/09/15 10:11:05 taca Exp $
bin/ruby_parse
bin/ruby_parse_extract_error
${GEM_HOME}/cache/${GEM_NAME}.gem
@@ -15,6 +15,8 @@ ${GEM_LIBDIR}/lib/ruby18_parser.rb
${GEM_LIBDIR}/lib/ruby18_parser.y
${GEM_LIBDIR}/lib/ruby19_parser.rb
${GEM_LIBDIR}/lib/ruby19_parser.y
+${GEM_LIBDIR}/lib/ruby20_parser.rb
+${GEM_LIBDIR}/lib/ruby20_parser.y
${GEM_LIBDIR}/lib/ruby_lexer.rb
${GEM_LIBDIR}/lib/ruby_parser.rb
${GEM_LIBDIR}/lib/ruby_parser_extras.rb
diff --git a/devel/ruby-parser/distinfo b/devel/ruby-parser/distinfo
index 9333130d810..94291636fab 100644
--- a/devel/ruby-parser/distinfo
+++ b/devel/ruby-parser/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.10 2013/06/16 15:13:36 taca Exp $
+$NetBSD: distinfo,v 1.11 2013/09/15 10:11:05 taca Exp $
-SHA1 (ruby_parser-3.1.3.gem) = fe0573578cfbac7423a22df87e54339d3c20901a
-RMD160 (ruby_parser-3.1.3.gem) = fdac29bd6fa6a0f2acaac99263c4ba8f6437eb63
-Size (ruby_parser-3.1.3.gem) = 141824 bytes
+SHA1 (ruby_parser-3.2.2.gem) = 9f36c08142d58ca161d95e356131fc0a63dbb195
+RMD160 (ruby_parser-3.2.2.gem) = 42f8ed22d59ba6688d871faaa3301a77d065b324
+Size (ruby_parser-3.2.2.gem) = 198656 bytes