Hello community,
here is the log from the commit of package rubygem-sexp_processor for
openSUSE:Factory checked in at 2020-10-05 19:33:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-sexp_processor (Old)
and /work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-sexp_processor"
Mon Oct 5 19:33:36 2020 rev:33 rq:838079 version:4.15.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-sexp_processor/rubygem-sexp_processor.changes
2020-03-07 21:40:02.164344973 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-sexp_processor.new.4249/rubygem-sexp_processor.changes
2020-10-05 19:33:41.857233747 +0200
@@ -1,0 +2,19 @@
+Fri Sep 25 14:55:39 UTC 2020 - Stephan Kulow <[email protected]>
+
+updated to version 4.15.1
+ see installed History.rdoc
+
+ === 4.15.1 / 2020-08-31
+
+ * 1 bug fix:
+
+ * Bumped ruby version to include 3.0 (trunk).
+
+ === 4.15.0 / 2020-06-09
+
+ * 1 minor enhancement:
+
+ * Added `child` and `include` to Sexp::Matcher.parse language.
+
+
+-------------------------------------------------------------------
Old:
----
sexp_processor-4.14.1.gem
New:
----
sexp_processor-4.15.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-sexp_processor.spec ++++++
--- /var/tmp/diff_new_pack.jN1zRs/_old 2020-10-05 19:33:44.617236443 +0200
+++ /var/tmp/diff_new_pack.jN1zRs/_new 2020-10-05 19:33:44.621236447 +0200
@@ -24,13 +24,13 @@
#
Name: rubygem-sexp_processor
-Version: 4.14.1
+Version: 4.15.1
Release: 0
%define mod_name sexp_processor
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{ruby < 3}
-BuildRequires: %{ruby => 2.2}
+BuildRequires: %{ruby < 3.1}
+BuildRequires: %{ruby >= 2.1}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: %{rubygem rdoc > 3.10}
BuildRequires: ruby-macros >= 5
++++++ sexp_processor-4.14.1.gem -> sexp_processor-4.15.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc 2020-02-10 00:06:04.000000000 +0100
+++ new/History.rdoc 2020-09-01 02:08:31.000000000 +0200
@@ -1,3 +1,15 @@
+=== 4.15.1 / 2020-08-31
+
+* 1 bug fix:
+
+ * Bumped ruby version to include 3.0 (trunk).
+
+=== 4.15.0 / 2020-06-09
+
+* 1 minor enhancement:
+
+ * Added `child` and `include` to Sexp::Matcher.parse language.
+
=== 4.14.1 / 2020-02-09
* 2 bug fixes:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile 2020-02-10 00:06:04.000000000 +0100
+++ new/Rakefile 2020-09-01 02:08:31.000000000 +0200
@@ -11,7 +11,7 @@
Hoe.spec 'sexp_processor' do
developer 'Ryan Davis', '[email protected]'
- require_ruby_version "~> 2.2"
+ require_ruby_version [">= 2.1", "< 3.1"]
license "MIT"
end
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 2020-02-10 00:06:04.000000000 +0100
+++ new/lib/pt_testcase.rb 2020-09-01 02:08:31.000000000 +0200
@@ -77,7 +77,7 @@
end
def self.add_19tests name, hash
- add_tests "#{name}__19_20_21_22_23_24_25_26", hash # HACK?
+ add_tests "#{name}__19_20_21_22_23_24_25_26_27", hash # HACK?
end
def self.add_19edgecases ruby, sexp, cases
@@ -102,7 +102,7 @@
testcases[verbose][klass] = testcases[nonverbose][klass]
end
- VER_RE = "(1[89]|2[0123456])"
+ VER_RE = "(1[89]|2[01234567])"
def self.generate_test klass, node, data, input_name, output_name
klass.send :define_method, "test_#{node}" do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/sexp_matcher.rb new/lib/sexp_matcher.rb
--- old/lib/sexp_matcher.rb 2020-02-10 00:06:04.000000000 +0100
+++ new/lib/sexp_matcher.rb 2020-09-01 02:08:31.000000000 +0200
@@ -455,7 +455,7 @@
# | NAME:name => name.to_sym
# UP_NAME: /[A-Z]\w*/
# NAME : /:?[\w?!=~-]+/
- # CMD : "t" | "k" | "m" | "atom" | "not?" | "-" | "any"
+ # CMD : t | k | m | atom | not? | - | any | child | include
def parse_sexp
token = next_token
@@ -505,7 +505,7 @@
##
# A collection of allowed commands to convert into matchers.
- ALLOWED = [:t, :m, :k, :atom, :not?, :-, :any].freeze
+ ALLOWED = [:t, :m, :k, :atom, :not?, :-, :any, :child, :include].freeze
##
# Parses a balanced command. A command is denoted by square
@@ -760,11 +760,8 @@
# +child+.
def satisfy? o
- if child.satisfy? o
- true
- elsif o.kind_of? Sexp
- o.search_each(child).any?
- end
+ child.satisfy?(o) ||
+ (o.kind_of?(Sexp) && o.search_each(child).any?)
end
def == o # :nodoc:
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 2020-02-10 00:06:04.000000000 +0100
+++ new/lib/sexp_processor.rb 2020-09-01 02:08:31.000000000 +0200
@@ -34,7 +34,7 @@
class SexpProcessor
# duh
- VERSION = "4.14.1"
+ VERSION = "4.15.1"
##
# Automatically shifts off the Sexp type before handing the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2020-02-10 00:06:04.000000000 +0100
+++ new/metadata 2020-09-01 02:08:31.000000000 +0200
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: sexp_processor
version: !ruby/object:Gem::Version
- version: 4.14.1
+ version: 4.15.1
platform: ruby
authors:
- Ryan Davis
@@ -29,7 +29,7 @@
m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
h7iEjga8iM1LbZUfiISZ+WrB
-----END CERTIFICATE-----
-date: 2020-02-09 00:00:00.000000000 Z
+date: 2020-09-01 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: rdoc
@@ -106,16 +106,19 @@
- lib
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - - "~>"
+ - - ">="
+ - !ruby/object:Gem::Version
+ version: '2.1'
+ - - "<"
- !ruby/object:Gem::Version
- version: '2.2'
+ version: '3.1'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.3
+rubygems_version: 3.1.4
signing_key:
specification_version: 4
summary: sexp_processor branches from ParseTree bringing all the generic sexp
processing
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.rb new/test/test_sexp.rb
--- old/test/test_sexp.rb 2020-02-10 00:06:04.000000000 +0100
+++ new/test/test_sexp.rb 2020-09-01 02:08:31.000000000 +0200
@@ -906,7 +906,7 @@
end
def sexp
- s(:x, s(:a))
+ s(:x, s(:b), s(:a))
end
def bad_sexp
@@ -926,6 +926,8 @@
def test_satisfy_eh_by_child
assert_satisfy matcher, s(:a)
+ assert_satisfy matcher, sexp
+ refute_satisfy matcher, bad_sexp
end
end
@@ -1602,6 +1604,7 @@
test_parse "not?", delay{ not?(m(/^_$/)) }, "[not? [m
/^_$/]]"
test_parse "not2", delay{ -_ }, "[- _]"
test_parse "any", delay{ q(:a) | q(:b) }, "[any (a) (b)]"
+ test_parse "child", delay{ child(q(:str, m(/woot/))) }, "[child (str [m
/woot/])]"
test_parse "klass", delay{ q(:lit, k(Float)) }, "(lit [k Float])"
test_parse "const", delay{ q(:const, :Float) }, "(const :Float)"