mustermann 0.3.0 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4814f10c7f9b66968a8eaadb89f2eeacb328096
4
- data.tar.gz: 69ae8b9fd3dfd3d50f0301ae10e05f168c98e5fe
3
+ metadata.gz: 4c6a1504081dfaf03cfb2842c71d2295306771a8
4
+ data.tar.gz: 18e9f9ea774fa6f668529502e36fe0f18a09374f
5
5
  SHA512:
6
- metadata.gz: 44ad20b4f6e4324732e3d6734438b4400aacbab936fedb197aee75dcd9d9522797e1c1244ff86ebc78d7855e84b8b53e440acaa9785c13e7a2c33170850b0fba
7
- data.tar.gz: c8b2bf771c04af78b64045fe61c6188cba366472242f72286802ea7737f60d8fb0728cc946fbaadad07e1502a829f7bb94b815d7501c1b5e808bf5559eb1e360
6
+ metadata.gz: 8f7813109fbc6b146f078dc1562d4a3a40e9ba1385500bbabee888e125910fde8f2788523355802a3d5c8525df4b6aa0b5cb81a8c6116e3e36a850de95863d84
7
+ data.tar.gz: c1ccd011b168a821f974eb6dd9f42f9f8f6cbe9abf0b8adbf81a7ae3913e428083acba1b8902c07859246621af20a939d2734a5f0562c3d884eb8cc6ef55a6bb
@@ -1,10 +1,4 @@
1
1
  rvm:
2
2
  - 2.0.0
3
- - 2.1.0-preview1
3
+ - 2.1.2
4
4
  - ruby-head
5
- - jruby-head
6
- - rbx-2.0.0
7
- matrix:
8
- allow_failures:
9
- - rvm: jruby-head
10
- - rvm: rbx-2.0.0
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: uri_parser, escape: parser.regexp[:UNSAFE], also_escape: nil)
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
@@ -7,6 +7,8 @@ module Mustermann
7
7
  # Superclass for all pattern implementations.
8
8
  # @abstract
9
9
  class Pattern
10
+ include Mustermann
11
+
10
12
  # List of supported options.
11
13
  #
12
14
  # @overload supported_options
@@ -1,3 +1,3 @@
1
1
  module Mustermann
2
- VERSION ||= '0.3.0'
2
+ VERSION ||= '0.3.1'
3
3
  end
@@ -58,4 +58,8 @@ describe Mustermann do
58
58
  example { Sinatra .new.extend(Mustermann).should be_a(Mustermann::Extension) }
59
59
  end
60
60
  end
61
+
62
+ describe :=== do
63
+ example { Mustermann.should be === Mustermann.new("") }
64
+ end
61
65
  end
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.0
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-08-18 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tool