Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id D8E401A9239 for ; Tue, 9 Nov 2021 14:34:32 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 3836B850A2; Tue, 9 Nov 2021 14:16:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6DEA285059 for ; Tue, 9 Nov 2021 14:16:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id QaY0iEF8a52a for ; Tue, 9 Nov 2021 14:16:53 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 85E0184D5F for ; Tue, 9 Nov 2021 14:16:53 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7FB5FFAEC; Tue, 9 Nov 2021 14:16:53 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1636467413270790" MIME-Version: 1.0 Date: Tue, 9 Nov 2021 14:16:53 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/devel/ruby-parser To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20211109141653.7FB5FFAEC@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1636467413270790 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" Module Name: pkgsrc Committed By: taca Date: Tue Nov 9 14:16:53 UTC 2021 Modified Files: pkgsrc/devel/ruby-parser: Makefile PLIST distinfo Log Message: devel/ruby-parser: update to 3.18.0 3.18.0 (2021-10-27) Holy crap¡Ä 58 commits! 2.7 and 3.0 are feature complete. Strings & heredocs have been rewritten. o 9 major enhancements: * !!! Rewrote lexer (and friends) for strings, heredocs, and %*[] constructs. * Massive overhaul on line numbers. * Freeze input! Finally!!! No more modifying the input string for heredocs. * Overhauled RPStringScanner. Removed OLD compatibility methods! * Removed Sexp methods: value, to_sym, add, add_all, node_type, values. - value moved to sexp_processor. * Removed String#grep monkey-patch. * Removed String#lineno monkey-patch. * Removed string_to_pos, charpos, etc hacks for ancient ruby versions. * Removed unread_many¡Ä NO! NO EDITING THE INPUT STRING! o 31 minor enhancements: * 2.7/3.0: many more pattern edge cases * 2.7: Added `mlhs = rhs rescue expr` * 2.7: refactored destructured args (`|(k,v)|`) and unfactored(?!) case_body/args. * 3.0: excessed_comma * 3.0: finished most everything: endless methods, patterns, etc. * 3.0: refactored / added new pattern changes * Added RubyLexer#in_heredoc? (ie, is there old_ss ?) * Added RubyLexer#old_ss and old_lineno and removed much of SSStack(ish). * Added Symbol#end_with? when necessary * Added TALLY and DEBUG options for ss.getch and ss.scan * Added ignore_body_comments to make parser productions more clear. * Added support for no_kwarg (eg `def f(**nil)`). * Added support for no_kwarg in blocks (eg `f { |**nil| }`). * Augmented generated parser files to have frozen_string_literal comments and fixed tests. * Broke out 3.0 parser into its own to ease development. * Bumped dependencies on sexp_processor and oedipus_lex. * Clean generated 3.x files. * Extracted all string scanner methods to their own module. * Fixed some precedence decls. * Implemented most of pattern matching for 2.7+. * Improve lex_state= to report location in verbose debug mode. * Made it easier to debug with a particular version of ruby via rake. * Make sure ripper uses the same version of ruby we specified. * Moved all string/heredoc/etc code to ruby_lexer_strings.rb * Remove warning from newer bisons. * Sprinkled in some frozen_string_literal, but mostly helped by oedipus bump. * Switch to comparing against ruby binary since ripper is buggy. * bugs task should try both bug*.rb and bad*.rb. * endless methods * f_any_kwrest refactoring. * refactored defn/defs o 15 bug fixes: * Cleaned a bunch of old hacks. Initializing RubyLexer w/ Parser is cleaner now. * Corrected some lex_state errors in process_token_keyword. * Fixed ancient ruby2 change (use #lines) in ruby_parse_extract_error. * Fixed bug where else without rescue only raises on 2.6+ * Fixed caller for getch and scan when DEBUG=1 * Fixed comments in the middle of message cascades. * Fixed differences w/ symbol productions against ruby 2.7. * Fixed dsym to use string_contents production. * Fixed error in bdot2/3 in some edge cases. Fixed p_alt line. * Fixed heredoc dedenting in the presence of empty lines. (mvz) * Fixed some leading whitespace / comment processing * Fixed up how class/module/defn/defs comments were collected. * Overhauled ripper.rb to deal with buggy ripper w/ yydebug. * Removed dsym from literal. * Removed tUBANG lexeme but kept it distinct as a method name (eg: `def!@`). To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 pkgsrc/devel/ruby-parser/Makefile cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/ruby-parser/PLIST cvs rdiff -u -r1.36 -r1.37 pkgsrc/devel/ruby-parser/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1636467413270790 Content-Disposition: inline Content-Length: 2785 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/ruby-parser/Makefile diff -u pkgsrc/devel/ruby-parser/Makefile:1.37 pkgsrc/devel/ruby-parser/Makefile:1.38 --- pkgsrc/devel/ruby-parser/Makefile:1.37 Sun Aug 22 13:50:06 2021 +++ pkgsrc/devel/ruby-parser/Makefile Tue Nov 9 14:16:53 2021 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.37 2021/08/22 13:50:06 taca Exp $ +# $NetBSD: Makefile,v 1.38 2021/11/09 14:16:53 taca Exp $ -DISTNAME= ruby_parser-3.17.0 +DISTNAME= ruby_parser-3.18.0 PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby_//} CATEGORIES= devel Index: pkgsrc/devel/ruby-parser/PLIST diff -u pkgsrc/devel/ruby-parser/PLIST:1.17 pkgsrc/devel/ruby-parser/PLIST:1.18 --- pkgsrc/devel/ruby-parser/PLIST:1.17 Sun May 23 13:48:00 2021 +++ pkgsrc/devel/ruby-parser/PLIST Tue Nov 9 14:16:53 2021 @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.17 2021/05/23 13:48:00 taca Exp $ +@comment $NetBSD: PLIST,v 1.18 2021/11/09 14:16:53 taca Exp $ bin/ruby_parse${RUBY_SUFFIX} bin/ruby_parse_extract_error${RUBY_SUFFIX} ${GEM_HOME}/cache/${GEM_NAME}.gem @@ -11,6 +11,7 @@ ${GEM_LIBDIR}/bin/ruby_parse ${GEM_LIBDIR}/bin/ruby_parse_extract_error ${GEM_LIBDIR}/compare/normalize.rb ${GEM_LIBDIR}/debugging.md +${GEM_LIBDIR}/gauntlet.md ${GEM_LIBDIR}/lib/.document ${GEM_LIBDIR}/lib/rp_extensions.rb ${GEM_LIBDIR}/lib/rp_stringscanner.rb @@ -32,9 +33,11 @@ ${GEM_LIBDIR}/lib/ruby27_parser.rb ${GEM_LIBDIR}/lib/ruby27_parser.y ${GEM_LIBDIR}/lib/ruby30_parser.rb ${GEM_LIBDIR}/lib/ruby30_parser.y +${GEM_LIBDIR}/lib/ruby3_parser.yy ${GEM_LIBDIR}/lib/ruby_lexer.rb ${GEM_LIBDIR}/lib/ruby_lexer.rex ${GEM_LIBDIR}/lib/ruby_lexer.rex.rb +${GEM_LIBDIR}/lib/ruby_lexer_strings.rb ${GEM_LIBDIR}/lib/ruby_parser.rb ${GEM_LIBDIR}/lib/ruby_parser.yy ${GEM_LIBDIR}/lib/ruby_parser_extras.rb Index: pkgsrc/devel/ruby-parser/distinfo diff -u pkgsrc/devel/ruby-parser/distinfo:1.36 pkgsrc/devel/ruby-parser/distinfo:1.37 --- pkgsrc/devel/ruby-parser/distinfo:1.36 Tue Oct 26 10:19:40 2021 +++ pkgsrc/devel/ruby-parser/distinfo Tue Nov 9 14:16:53 2021 @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.36 2021/10/26 10:19:40 nia Exp $ +$NetBSD: distinfo,v 1.37 2021/11/09 14:16:53 taca Exp $ -BLAKE2s (ruby_parser-3.17.0.gem) = fe8db1875b81a778e72ffa235bf7d497c52bcd79298a8adc9d442767ec310f13 -SHA512 (ruby_parser-3.17.0.gem) = 6786f58aa4007b407e04669554add6d2fac2260c1ad12db78a4b7816799b7b30d163a554d93d4fa7f043a8e45dd11316854e9f42d63bbd5a542cd2f950c05278 -Size (ruby_parser-3.17.0.gem) = 586752 bytes +BLAKE2s (ruby_parser-3.18.0.gem) = d95b3e3607d3bb23adce0986524eae5895366299f6783af731123f70f87e8622 +SHA512 (ruby_parser-3.18.0.gem) = e34b42770a44a32f91ef29d7575db26b2fd24188b4e80fda1cc69d99469a454699ff76c715a9acd0342709989140bd5783b629996f89c1a58a422dd971a1271f +Size (ruby_parser-3.18.0.gem) = 634880 bytes --_----------=_1636467413270790--