mustermann 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mustermann/ast/expander.rb +2 -0
- data/lib/mustermann/ast/node.rb +2 -2
- data/lib/mustermann/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef5593de63e0d8713ccafad27a8d9b3ab1716cbe2fc5aeab9b2e5595c09903a7
|
4
|
+
data.tar.gz: 5cc525f56769552b4e865db1a184090542bea71f40bd34238592e212bd337087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7911be76cb4c8afc9a4d2273903ffda786daaad8615029e0d8bcdfea7829e69b1b34e2b381dff5f7dd9b7fc1cbabbcf800aeb12d6f92f1f014750f2ecca63125
|
7
|
+
data.tar.gz: f3d56da90b72e4264743d4b16106e6278e35874be13e210091c829af82bb9498c02ae53db347e62ca6ae1849ae405a6de37dbc7b3727a31ec3d69fe67cd28266
|
@@ -124,6 +124,8 @@ module Mustermann
|
|
124
124
|
# @see Mustermann::AST::Translator#expand
|
125
125
|
# @!visibility private
|
126
126
|
ruby2_keywords def escape(string, *args)
|
127
|
+
return super unless string.respond_to?(:=~)
|
128
|
+
|
127
129
|
# URI::Parser is pretty slow, let's not send every string to it, even if it's unnecessary
|
128
130
|
string =~ /\A\w*\Z/ ? string : super
|
129
131
|
end
|
data/lib/mustermann/ast/node.rb
CHANGED
@@ -35,8 +35,8 @@ module Mustermann
|
|
35
35
|
# Helper for creating a new instance and calling #parse on it.
|
36
36
|
# @return [Mustermann::AST::Node]
|
37
37
|
# @!visibility private
|
38
|
-
def self.parse(
|
39
|
-
new(
|
38
|
+
def self.parse(payload = nil, **options, &block)
|
39
|
+
new(payload, **options).tap { |n| n.parse(&block) }
|
40
40
|
end
|
41
41
|
|
42
42
|
# @!visibility private
|
data/lib/mustermann/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mustermann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-07-
|
12
|
+
date: 2022-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby2_keywords
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
|
-
rubygems_version: 3.2.
|
107
|
+
rubygems_version: 3.2.3
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Your personal string matching expert.
|