Hello community,

here is the log from the commit of package rubygem-sexp_processor for 
openSUSE:Factory checked in at 2019-08-06 15:10:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sexp_processor (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-sexp_processor"

Tue Aug  6 15:10:37 2019 rev:31 rq:717321 version:4.12.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-sexp_processor/rubygem-sexp_processor.changes
    2019-03-27 16:17:35.155577496 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.4126/rubygem-sexp_processor.changes
  2019-08-06 15:10:37.975767460 +0200
@@ -1,0 +2,18 @@
+Fri Jul 19 09:37:01 UTC 2019 - Stephan Kulow <co...@suse.com>
+
+- updated to version 4.12.1
+ see installed History.rdoc
+
+  === 4.12.1 / 2019-06-03
+  
+  * 1 minor enhancement:
+  
+    * Sexp#line now raises if setting w/ non-integer (eg nil).
+  
+  * 3 bug fixes:
+  
+    * Fixed pt_testcase.rb for block args w/ trailing commas.
+    * Fixed pt_testcase.rb for stabby proc sexps.
+    * Simple fixes for STRICT_SEXP=1.
+
+-------------------------------------------------------------------

Old:
----
  sexp_processor-4.12.0.gem

New:
----
  sexp_processor-4.12.1.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.PPmsEx/_old  2019-08-06 15:10:38.767767094 +0200
+++ /var/tmp/diff_new_pack.PPmsEx/_new  2019-08-06 15:10:38.771767092 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-sexp_processor
-Version:        4.12.0
+Version:        4.12.1
 Release:        0
 %define mod_name sexp_processor
 %define mod_full_name %{mod_name}-%{version}

++++++ sexp_processor-4.12.0.gem -> sexp_processor-4.12.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2019-03-13 02:49:10.000000000 +0100
+++ new/History.rdoc    2019-06-04 07:08:47.000000000 +0200
@@ -1,3 +1,15 @@
+=== 4.12.1 / 2019-06-03
+
+* 1 minor enhancement:
+
+  * Sexp#line now raises if setting w/ non-integer (eg nil).
+
+* 3 bug fixes:
+
+  * Fixed pt_testcase.rb for block args w/ trailing commas.
+  * Fixed pt_testcase.rb for stabby proc sexps.
+  * Simple fixes for STRICT_SEXP=1.
+
 === 4.12.0 / 2019-03-12
 
 * 3 bug fixes:
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
Binary files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ
Binary files old/data.tar.gz.sig and new/data.tar.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/pt_testcase.rb new/lib/pt_testcase.rb
--- old/lib/pt_testcase.rb      2019-03-13 02:49:10.000000000 +0100
+++ new/lib/pt_testcase.rb      2019-06-04 07:08:47.000000000 +0200
@@ -363,26 +363,26 @@
   ###
   # 1.9 specific tests
 
-  add_19edgecases("lambda { || (x + 1) }",
+  add_19edgecases("-> () { (x + 1) }",
                   s(:iter,
-                    s(:call, nil, :lambda),
+                    s(:lambda),
                     s(:args),
                     s(:call, s(:call, nil, :x), :+, s(:lit, 1))),
                   "stabby_args"                   => "->() { (x + 1) }",
                   "stabby_args_doend"             => "->() do (x + 1) end")
 
-  add_19edgecases("lambda { (x + 1) }",
+  add_19edgecases("-> { (x + 1) }",
                   s(:iter,
-                    s(:call, nil, :lambda),
+                    s(:lambda),
                     0,
                     s(:call, s(:call, nil, :x), :+, s(:lit, 1))),
                   "stabby_args_0_no_parens"       => "-> { (x + 1) }",
                   "stabby_args_0_no_parens_doend" => "-> do (x + 1) end",
                   "stabby_args_0_spacebar_broken" => "->{x+1}") # I hate you
 
-  add_19edgecases("lambda { |x, y| (x + y) }",
+  add_19edgecases("-> (x, y) { (x + y) }",
                   s(:iter,
-                    s(:call, nil, :lambda),
+                    s(:lambda),
                     s(:args, :x, :y),
                     s(:call, s(:lvar, :x), :+, s(:lvar, :y))),
                   "stabby_args_2"                 => "->(x, y) { (x + y) }",
@@ -390,9 +390,9 @@
                   "stabby_args_2_no_parens"       => "-> x, y { (x + y) }",
                   "stabby_args_2_no_parens_doend" => "-> x, y do (x + y) end")
 
-  add_19edgecases("lambda { |x| (x + 1) }",
+  add_19edgecases("-> (x) { (x + 1) }",
                   s(:iter,
-                    s(:call, nil, :lambda),
+                    s(:lambda),
                     s(:args, :x),
                     s(:call, s(:lvar, :x), :+, s(:lit, 1))),
                   "stabby_args_1"                 => "->(x) { (x + 1) }",
@@ -2080,17 +2080,15 @@
             "Ruby"         => "lambda { |a,| a }",
             "ParseTree"    => s(:iter,
                                 s(:call, nil, :lambda),
-                                s(:args, :a),
-                                s(:lvar, :a)),
-            "Ruby2Ruby"    => "lambda { |a| a }")
+                                s(:args, :a, nil),
+                                s(:lvar, :a)))
 
   add_tests("lambda_args_norm_comma2",
-            "Ruby"         => "lambda { |a,b,| a }",
+            "Ruby"         => "lambda { |a, b,| a }",
             "ParseTree"    => s(:iter,
                                 s(:call, nil, :lambda),
-                                s(:args, :a, :b),
-                                s(:lvar, :a)),
-            "Ruby2Ruby"    => "lambda { |a, b| a }")
+                                s(:args, :a, :b, nil),
+                                s(:lvar, :a)))
 
   add_tests("lambda_args_norm_star",
             "Ruby"         => "lambda { |a, *star| star }",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sexp.rb new/lib/sexp.rb
--- old/lib/sexp.rb     2019-03-13 02:49:10.000000000 +0100
+++ new/lib/sexp.rb     2019-06-04 07:08:47.000000000 +0200
@@ -202,13 +202,16 @@
     each_sexp.find_all { |sexp| sexp.sexp_type == name }
   end
 
+  UNASSIGNED = Object.new
+
   ##
   # If passed a line number, sets the line and returns self. Otherwise
   # returns the line number. This allows you to do message cascades
   # and still get the sexp back.
 
-  def line n = nil
-    if n then
+  def line n = UNASSIGNED
+    if n != UNASSIGNED then
+      raise ArgumentError, "setting %p.line %p" % [self, n] unless Integer === 
n
       @line = n
       self
     else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/sexp_processor.rb new/lib/sexp_processor.rb
--- old/lib/sexp_processor.rb   2019-03-13 02:49:10.000000000 +0100
+++ new/lib/sexp_processor.rb   2019-06-04 07:08:47.000000000 +0200
@@ -34,7 +34,7 @@
 class SexpProcessor
 
   # duh
-  VERSION = "4.12.0"
+  VERSION = "4.12.1"
 
   ##
   # Automatically shifts off the Sexp type before handing the
@@ -317,7 +317,7 @@
 
   def assert_type list, typ
     raise SexpTypeError, "Expected type #{typ.inspect} in #{list.inspect}" if
-      not Array === list or list.first != typ
+      not Array === list or list.sexp_type != typ
   end
 
   def error_handler type, exp = nil # :nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-03-13 02:49:10.000000000 +0100
+++ new/metadata        2019-06-04 07:08:47.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: sexp_processor
 version: !ruby/object:Gem::Version
-  version: 4.12.0
+  version: 4.12.1
 platform: ruby
 authors:
 - Ryan Davis
@@ -29,7 +29,7 @@
   Em82dBUFsipwMLCYj39kcyHWAxyl6Ae1Cn9r/ItVBCxoeFdrHjfavnrIEoXUt4bU
   UfBugfLD19bu3nvL+zTAGx/U
   -----END CERTIFICATE-----
-date: 2019-03-13 00:00:00.000000000 Z
+date: 2019-06-04 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rdoc
Binary files old/metadata.gz.sig and new/metadata.gz.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_sexp_processor.rb 
new/test/test_sexp_processor.rb
--- old/test/test_sexp_processor.rb     2019-03-13 02:49:10.000000000 +0100
+++ new/test/test_sexp_processor.rb     2019-06-04 07:08:47.000000000 +0200
@@ -247,12 +247,12 @@
   end
 
   def test_assert_type_hit
-    assert_nil @processor.assert_type([:blah, 1, 2, 3], :blah)
+    assert_nil @processor.assert_type(s(:blah, 1, 2, 3), :blah)
   end
 
   def test_assert_type_miss
     assert_raises SexpTypeError do
-      @processor.assert_type([:thingy, 1, 2, 3], :blah)
+      @processor.assert_type(s(:thingy, 1, 2, 3), :blah)
     end
   end
 


Reply via email to