t-1000 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/t-1000/version.rb +1 -1
- data/lib/t-1000.rb +8 -1
- 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: eb7f12c66f16fdc2ff67954e4a830b3a389ee610
|
4
|
+
data.tar.gz: 6ad5038942a255aaa9f2e17ed72156916df58ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3576757290c804782e34442f181e49cb198cf147f6392b866720d4fbc13cd132534b7f7c923e8b2786e5f2c5c11b4d2701e57af1eda729e933992dac23adcd1c
|
7
|
+
data.tar.gz: 9b84f4a56a3373e667d985f5da122948bd5f05cfc7fab338869ca1239be8b4ada0deffe7269ed5dc5caf69919643aaac69b402037306d66243ba7042f729f36c
|
data/lib/t-1000/version.rb
CHANGED
data/lib/t-1000.rb
CHANGED
@@ -21,7 +21,14 @@ module T1000
|
|
21
21
|
module Refinements
|
22
22
|
refine Array do
|
23
23
|
def map_regex
|
24
|
-
map
|
24
|
+
map do |value|
|
25
|
+
case value
|
26
|
+
when Regexp
|
27
|
+
value
|
28
|
+
else
|
29
|
+
Regexp.new Regexp.escape value.to_s
|
30
|
+
end
|
31
|
+
end
|
25
32
|
end
|
26
33
|
|
27
34
|
def match_any?(string)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t-1000
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Waldrip
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack-attack
|