mustermann 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba568935eeeea8f9a0d2b0804c7b9daa0d5597dd074e85cb333ab01301219e23
4
- data.tar.gz: da960fe409b24a248532e410fd421b19b7760de43b95dc0b94681d66f2d43dca
3
+ metadata.gz: ef5593de63e0d8713ccafad27a8d9b3ab1716cbe2fc5aeab9b2e5595c09903a7
4
+ data.tar.gz: 5cc525f56769552b4e865db1a184090542bea71f40bd34238592e212bd337087
5
5
  SHA512:
6
- metadata.gz: ba77bd310a3dc6a5dae46c77458d795d5cf511ea68fec4e63307ae601a23a46ab39e19b50e484cf559f9db8a722aa459e723a065361fa3d2eeba7f6955d4c91c
7
- data.tar.gz: 755095366e5995eb58d54e5d20e0f745fe553248f5d8d14d8ce60112a4a380c2a7d827951bc7e9dc8261c44a0d5e9395e413db80d9335ad9f576c008282f0083
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
@@ -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(*args, &block)
39
- new(*args).tap { |n| n.parse(&block) }
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Mustermann
3
- VERSION ||= '2.0.1'
3
+ VERSION ||= '2.0.2'
4
4
  end
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.1
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-19 00:00:00.000000000 Z
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.22
107
+ rubygems_version: 3.2.3
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: Your personal string matching expert.