mustermann 1.1.1 → 1.1.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: d7fdfa1980b36632e06c011f926b33f0d6d8812f72286004b2398a4f31dd9a82
4
- data.tar.gz: 7daa22487d1a56e826fef04f5f63ecef1d67484151612304402e5a01c7f4be33
3
+ metadata.gz: 66586a7576074e21ef117955d2af89012bbe08d48a36ac85c42574d671350292
4
+ data.tar.gz: e08f66d8a4d5b33760fe0ee3c328ef6aa016207f1f248e64a79742c344d98195
5
5
  SHA512:
6
- metadata.gz: 8d80afba1b13c99bcafc6862ad7dc195a0b8c0ac80279498fb9b8b75ecf6ea290cbe4b90f3f6f60d4e3c52f2f517f5a6059d05993c23179b6b2be22aaca320b8
7
- data.tar.gz: f109d137a09eeb9781c92bfd366b1b421b118753b20ff905f1ab7d161946f254de2e376541c9e74215a7215f30ce0589992a0790d6e6861ae8d5c9606beda08a
6
+ metadata.gz: f82b3641946356fad899d72b3ad3bdfde241030fbc25829f2e1e5a3b3f7da8cc642147d2e9021cb6bb7f88a2268360983b6cab1e07423115c3f3281282066777
7
+ data.tar.gz: eb6bcb7b642b03d83c3c463d72f8997755af3919dbcd2a2df212ee95c3b5cb51dc6fa0bf2cb5e5539a2ad1aa47d26c905f87d3ffcc15a925c48dcd8cf664d5a9
@@ -108,7 +108,7 @@ module Mustermann
108
108
  # @see Mustermann::AST::Node#parse
109
109
  # @!visibility private
110
110
  def parse
111
- self.payload ||= ""
111
+ self.payload ||= String.new
112
112
  super
113
113
  end
114
114
 
@@ -120,7 +120,7 @@ module Mustermann
120
120
  # @!visibility private
121
121
  def escape(char, parser: URI::DEFAULT_PARSER, escape: parser.regexp[:UNSAFE], also_escape: nil)
122
122
  escape = Regexp.union(also_escape, escape) if also_escape
123
- char =~ escape ? parser.escape(char, Regexp.union(*escape)) : char
123
+ char.to_s =~ escape ? parser.escape(char, Regexp.union(*escape)) : char
124
124
  end
125
125
  end
126
126
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Mustermann
3
- VERSION ||= '1.1.1'
3
+ VERSION ||= '1.1.2'
4
4
  end
data/lib/mustermann.rb CHANGED
@@ -75,8 +75,8 @@ module Mustermann
75
75
  end
76
76
  end
77
77
 
78
- @mutex ||= Mutex.new
79
- @types ||= {}
78
+ @mutex = Mutex.new
79
+ @types = {}
80
80
 
81
81
  # Maps a type to its factory.
82
82
  #
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustermann
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  - Zachary Scott
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-03 00:00:00.000000000 Z
12
+ date: 2022-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby2_keywords
@@ -90,7 +90,7 @@ homepage: https://github.com/sinatra/mustermann
90
90
  licenses:
91
91
  - MIT
92
92
  metadata: {}
93
- post_install_message:
93
+ post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths:
96
96
  - lib
@@ -105,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.7.3
110
- signing_key:
108
+ rubygems_version: 3.2.3
109
+ signing_key:
111
110
  specification_version: 4
112
111
  summary: Your personal string matching expert.
113
112
  test_files: