Hello community,
here is the log from the commit of package rubygem-mustermann for
openSUSE:Factory checked in at 2018-02-19 13:03:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mustermann (Old)
and /work/SRC/openSUSE:Factory/.rubygem-mustermann.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mustermann"
Mon Feb 19 13:03:35 2018 rev:3 rq:577913 version:1.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mustermann/rubygem-mustermann.changes
2017-09-12 19:56:47.547286788 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-mustermann.new/rubygem-mustermann.changes
2018-02-19 13:04:16.754911858 +0100
@@ -1,0 +2,6 @@
+Sat Feb 17 05:30:23 UTC 2018 - [email protected]
+
+- updated to version 1.0.2
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
mustermann-1.0.1.gem
New:
----
mustermann-1.0.2.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-mustermann.spec ++++++
--- /var/tmp/diff_new_pack.c6kOyf/_old 2018-02-19 13:04:17.874871468 +0100
+++ /var/tmp/diff_new_pack.c6kOyf/_new 2018-02-19 13:04:17.878871323 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-mustermann
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
#
Name: rubygem-mustermann
-Version: 1.0.1
+Version: 1.0.2
Release: 0
%define mod_name mustermann
%define mod_full_name %{mod_name}-%{version}
++++++ mustermann-1.0.1.gem -> mustermann-1.0.2.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mustermann/concat.rb new/lib/mustermann/concat.rb
--- old/lib/mustermann/concat.rb 2017-08-26 09:54:36.000000000 +0200
+++ new/lib/mustermann/concat.rb 2018-02-16 16:20:32.000000000 +0100
@@ -10,8 +10,19 @@
# @!visibility private
def +(other)
other &&= Mustermann.new(other, type: :identity, **options)
- return super unless native = native_concat(other)
- self.class.new(native, **options)
+ if (patterns = look_ahead(other)) && !patterns.empty?
+ concat = (self + patterns.inject(:+))
+ concat + other.patterns.slice(patterns.length..-1).inject(:+)
+ else
+ return super unless native = native_concat(other)
+ self.class.new(native, **options)
+ end
+ end
+
+ # @!visibility private
+ def look_ahead(other)
+ return unless other.is_a?(Concat)
+ other.patterns.take_while(&method(:native_concat?))
end
# @!visibility private
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mustermann/pattern.rb
new/lib/mustermann/pattern.rb
--- old/lib/mustermann/pattern.rb 2017-08-26 09:54:36.000000000 +0200
+++ new/lib/mustermann/pattern.rb 2018-02-16 16:20:32.000000000 +0100
@@ -226,7 +226,7 @@
# warn "does not support expanding"
# end
#
- # Expanding is supported by almost all patterns (notable execptions are
{Mustermann::Shell},
+ # Expanding is supported by almost all patterns (notable exceptions are
{Mustermann::Shell},
# {Mustermann::Regular} and {Mustermann::Simple}).
#
# Union {Mustermann::Composite} patterns (with the | operator) support
expanding if all
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mustermann/sinatra.rb
new/lib/mustermann/sinatra.rb
--- old/lib/mustermann/sinatra.rb 2017-08-26 09:54:36.000000000 +0200
+++ new/lib/mustermann/sinatra.rb 2018-02-16 16:20:32.000000000 +0100
@@ -42,7 +42,7 @@
# If a string is supplied, it is treated as a fully escaped Sinatra
pattern.
#
# If the other pattern is also a Sintara pattern, it might join the two to
a third
- # sinatra pattern instead of generating a composite for efficency reasons.
+ # sinatra pattern instead of generating a composite for efficiency reasons.
#
# This only happens if the sinatra pattern behaves exactly the same as a
composite
# would in regards to matching, parsing, expanding and template generation.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/mustermann/version.rb
new/lib/mustermann/version.rb
--- old/lib/mustermann/version.rb 2017-08-26 09:54:36.000000000 +0200
+++ new/lib/mustermann/version.rb 2018-02-16 16:20:32.000000000 +0100
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module Mustermann
- VERSION ||= '1.0.1'
+ VERSION ||= '1.0.2'
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-08-26 09:54:36.000000000 +0200
+++ new/metadata 2018-02-16 16:20:32.000000000 +0100
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: mustermann
version: !ruby/object:Gem::Version
- version: 1.0.1
+ version: 1.0.2
platform: ruby
authors:
- Konstantin Haase
@@ -9,7 +9,7 @@
autorequire:
bindir: bin
cert_chain: []
-date: 2017-08-26 00:00:00.000000000 Z
+date: 2018-02-16 00:00:00.000000000 Z
dependencies: []
description: A library implementing patterns that behave like regular
expressions.
email: [email protected]
@@ -92,8 +92,23 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.6.11
+rubygems_version: 2.6.8
signing_key:
specification_version: 4
summary: Your personal string matching expert.
-test_files: []
+test_files:
+- spec/ast_spec.rb
+- spec/composite_spec.rb
+- spec/concat_spec.rb
+- spec/equality_map_spec.rb
+- spec/expander_spec.rb
+- spec/extension_spec.rb
+- spec/identity_spec.rb
+- spec/mapper_spec.rb
+- spec/mustermann_spec.rb
+- spec/pattern_spec.rb
+- spec/regexp_based_spec.rb
+- spec/regular_spec.rb
+- spec/simple_match_spec.rb
+- spec/sinatra_spec.rb
+- spec/to_pattern_spec.rb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/spec/concat_spec.rb new/spec/concat_spec.rb
--- old/spec/concat_spec.rb 2017-08-26 09:54:36.000000000 +0200
+++ new/spec/concat_spec.rb 2018-02-16 16:20:32.000000000 +0100
@@ -57,6 +57,18 @@
its(:class) { should be == Mustermann::Concat }
its(:to_s) { should be == '(sinatra:"/:foo" + rails:"/:bar" +
sinatra:"/:baz")' }
end
+
+ context "sinatra + (sinatra + regular)" do
+ subject(:pattern) { Mustermann.new("/foo") + (Mustermann.new("/bar") +
Mustermann.new(/baz/)) }
+ its(:class) { should be == Mustermann::Concat }
+ its(:to_s) { should be == '(sinatra:"/foo/bar" + regular:"baz")' }
+ end
+
+ context "sinatra + (sinatra + rails (different options) + sinatra)" do
+ subject(:pattern) { Mustermann.new("/foo") + (Mustermann.new("/bar") +
Mustermann.new("/baz", type: :rails, uri_decode: false) +
Mustermann.new("/boo")) }
+ its(:class) { should be == Mustermann::Concat }
+ its(:to_s) { should be == '(sinatra:"/foo/bar" + rails:"/baz" +
sinatra:"/boo")' }
+ end
end
subject(:pattern) { Mustermann::Concat.new("/:foo", "/:bar") }