Hello community, here is the log from the commit of package rubygem-mustermann for openSUSE:Factory checked in at 2017-09-12 19:56:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-mustermann (Old) and /work/SRC/openSUSE:Factory/.rubygem-mustermann.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-mustermann" Tue Sep 12 19:56:45 2017 rev:2 rq:523551 version:1.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-mustermann/rubygem-mustermann.changes 2017-06-08 15:03:34.610165289 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-mustermann.new/rubygem-mustermann.changes 2017-09-12 19:56:47.547286788 +0200 @@ -1,0 +2,6 @@ +Mon Sep 11 12:43:59 UTC 2017 - co...@suse.com + +- updated to version 1.0.1 + no changelog found + +------------------------------------------------------------------- Old: ---- mustermann-1.0.0.gem New: ---- mustermann-1.0.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-mustermann.spec ++++++ --- /var/tmp/diff_new_pack.8mhwek/_old 2017-09-12 19:56:48.287182753 +0200 +++ /var/tmp/diff_new_pack.8mhwek/_new 2017-09-12 19:56:48.295181628 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-mustermann -Version: 1.0.0 +Version: 1.0.1 Release: 0 %define mod_name mustermann %define mod_full_name %{mod_name}-%{version} @@ -33,14 +33,14 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url: https://github.com/sinatra/mustermann -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml -Summary: use patterns like regular expressions +Summary: Your personal string matching expert License: MIT Group: Development/Languages/Ruby %description -library implementing patterns that behave like regular expressions. +A library implementing patterns that behave like regular expressions. %prep ++++++ mustermann-1.0.0.gem -> mustermann-1.0.1.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/error.rb new/lib/mustermann/error.rb --- old/lib/mustermann/error.rb 2017-03-04 18:48:02.000000000 +0100 +++ new/lib/mustermann/error.rb 2017-08-26 09:54:36.000000000 +0200 @@ -1,7 +1,9 @@ # frozen_string_literal: true module Mustermann - Error ||= Class.new(StandardError) # Raised if anything goes wrong while generating a {Pattern}. - CompileError ||= Class.new(Error) # Raised if anything goes wrong while compiling a {Pattern}. - ParseError ||= Class.new(Error) # Raised if anything goes wrong while parsing a {Pattern}. - ExpandError ||= Class.new(Error) # Raised if anything goes wrong while expanding a {Pattern}. + unless defined?(Mustermann::Error) + Error = Class.new(StandardError) # Raised if anything goes wrong while generating a {Pattern}. + CompileError = Class.new(Error) # Raised if anything goes wrong while compiling a {Pattern}. + ParseError = Class.new(Error) # Raised if anything goes wrong while parsing a {Pattern}. + ExpandError = Class.new(Error) # Raised if anything goes wrong while expanding a {Pattern}. + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mustermann/regular.rb new/lib/mustermann/regular.rb --- old/lib/mustermann/regular.rb 2017-03-04 18:48:02.000000000 +0100 +++ new/lib/mustermann/regular.rb 2017-08-26 09:54:36.000000000 +0200 @@ -21,6 +21,7 @@ # @see (see Mustermann::Pattern#initialize) def initialize(string, check_anchors: true, **options) string = $1 if string.to_s =~ /\A\(\?\-mix\:(.*)\)\Z/ && string.inspect == "/#$1/" + string = string.source.gsub!(/(?<!\\)(?:\s|#.*$)/, '') if extended_regexp?(string) @check_anchors = check_anchors super(string, **options) end @@ -40,6 +41,10 @@ raise CompileError, "regular expression should not contain %s: %p" % [illegal.to_s, @string] end - private :compile, :check_anchors + def extended_regexp?(string) + not (Regexp.new(string).options & Regexp::EXTENDED).zero? + end + + private :compile, :check_anchors, :extended_regexp? end end 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-03-04 18:48:02.000000000 +0100 +++ new/lib/mustermann/version.rb 2017-08-26 09:54:36.000000000 +0200 @@ -1,4 +1,4 @@ # frozen_string_literal: true module Mustermann - VERSION ||= '1.0.0' + VERSION ||= '1.0.1' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-03-04 18:48:02.000000000 +0100 +++ new/metadata 2017-08-26 09:54:36.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: mustermann version: !ruby/object:Gem::Version - version: 1.0.0 + version: 1.0.1 platform: ruby authors: - Konstantin Haase @@ -9,9 +9,9 @@ autorequire: bindir: bin cert_chain: [] -date: 2017-03-04 00:00:00.000000000 Z +date: 2017-08-26 00:00:00.000000000 Z dependencies: [] -description: library implementing patterns that behave like regular expressions +description: A library implementing patterns that behave like regular expressions. email: sinatr...@googlegroups.com executables: [] extensions: [] @@ -92,8 +92,8 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.5.1 +rubygems_version: 2.6.11 signing_key: specification_version: 4 -summary: use patterns like regular expressions +summary: Your personal string matching expert. test_files: [] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mustermann.gemspec new/mustermann.gemspec --- old/mustermann.gemspec 2017-03-04 18:48:02.000000000 +0100 +++ new/mustermann.gemspec 2017-08-26 09:54:36.000000000 +0200 @@ -7,8 +7,8 @@ s.authors = ["Konstantin Haase", "Zachary Scott"] s.email = "sinatr...@googlegroups.com" s.homepage = "https://github.com/sinatra/mustermann" - s.summary = %q{use patterns like regular expressions} - s.description = %q{library implementing patterns that behave like regular expressions} + s.summary = %q{Your personal string matching expert.} + s.description = %q{A library implementing patterns that behave like regular expressions.} s.license = 'MIT' s.required_ruby_version = '>= 2.2.0' s.files = `git ls-files`.split("\n") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/regular_spec.rb new/spec/regular_spec.rb --- old/spec/regular_spec.rb 2017-03-04 18:48:02.000000000 +0100 +++ new/spec/regular_spec.rb 2017-08-26 09:54:36.000000000 +0200 @@ -1,5 +1,6 @@ # frozen_string_literal: true require 'support' +require 'timeout' require 'mustermann/regular' describe Mustermann::Regular do @@ -38,6 +39,22 @@ it { should match('/foo%2Fbar') .capturing foo: 'foo%2Fbar' } end + + context 'with Regexp::EXTENDED' do + let(:pattern) { + %r{ + \/compare\/ # match any URL beginning with \/compare\/ + (.+) # extract the full path (including any directories) + \/ # match the final slash + ([^.]+) # match the first SHA1 + \.{2,3} # match .. or ... + (.+) # match the second SHA1 + }x + } + example { expect { Timeout.timeout(1){ Mustermann::Regular.new(pattern) }}.not_to raise_error(Timeout::Error) } + it { expect(Mustermann::Regular.new(pattern)).to match('/compare/foo/bar..baz') } + end + describe :check_achnors do context 'raises on anchors' do example { expect { Mustermann::Regular.new('^foo') }.to raise_error(Mustermann::CompileError) }