mustermann 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -7
- data/README.md +7 -0
- data/lib/mustermann/ast/translator.rb +2 -8
- data/lib/mustermann/pattern.rb +2 -0
- data/lib/mustermann/version.rb +1 -1
- data/spec/mustermann_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c6a1504081dfaf03cfb2842c71d2295306771a8
|
4
|
+
data.tar.gz: 18e9f9ea774fa6f668529502e36fe0f18a09374f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f7813109fbc6b146f078dc1562d4a3a40e9ba1385500bbabee888e125910fde8f2788523355802a3d5c8525df4b6aa0b5cb81a8c6116e3e36a850de95863d84
|
7
|
+
data.tar.gz: c1ccd011b168a821f974eb6dd9f42f9f8f6cbe9abf0b8adbf81a7ae3913e428083acba1b8902c07859246621af20a939d2734a5f0562c3d884eb8cc6ef55a6bb
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1023,6 +1023,13 @@ As there has been no stable release yet, the API might still change, though I co
|
|
1023
1023
|
|
1024
1024
|
### Development Releases
|
1025
1025
|
|
1026
|
+
* **Mustermann 0.3.1** (2014-09-12)
|
1027
|
+
* More Infos:
|
1028
|
+
[RubyGems.org](http://rubygems.org/gems/mustermann/versions/0.3.1),
|
1029
|
+
[RubyDoc.info](http://rubydoc.info/gems/mustermann/0.3.1/frames),
|
1030
|
+
[GitHub.com](https://github.com/rkh/mustermann/tree/v0.3.1)
|
1031
|
+
* Speed up pattern generation and matchin (thanks [Daniel Mendler](https://github.com/minad))
|
1032
|
+
* Small change so `Mustermann === Mustermann.new('...')` returns `true`.
|
1026
1033
|
* **Mustermann 0.3.0** (2014-08-18)
|
1027
1034
|
* More Infos:
|
1028
1035
|
[RubyGems.org](http://rubygems.org/gems/mustermann/versions/0.3.0),
|
@@ -94,18 +94,12 @@ module Mustermann
|
|
94
94
|
result
|
95
95
|
end
|
96
96
|
|
97
|
-
# Reusing URI::Parser instance gives > 50% performance boost for some operations, like expanding.
|
98
|
-
# @!visibility private
|
99
|
-
def uri_parser
|
100
|
-
@uri_parser ||= URI::Parser.new
|
101
|
-
end
|
102
|
-
|
103
97
|
# @return [String] escaped character
|
104
98
|
# @!visibility private
|
105
|
-
def escape(char, parser:
|
99
|
+
def escape(char, parser: URI::DEFAULT_PARSER, escape: parser.regexp[:UNSAFE], also_escape: nil)
|
106
100
|
escape = Regexp.union(also_escape, escape) if also_escape
|
107
101
|
char =~ escape ? parser.escape(char, Regexp.union(*escape)) : char
|
108
102
|
end
|
109
103
|
end
|
110
104
|
end
|
111
|
-
end
|
105
|
+
end
|
data/lib/mustermann/pattern.rb
CHANGED
data/lib/mustermann/version.rb
CHANGED
data/spec/mustermann_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mustermann
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tool
|