prosopite 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/lib/prosopite.rb +10 -1
- data/lib/prosopite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4f17a47aa9ab87c866f3fb9c493d3b5baae8248781346e497b90b3dc23f488d
|
4
|
+
data.tar.gz: b9e0e29a7774adb0f8600d8fedeb2de8f9a8149468d216e1ac2e05e587445939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c143ec186f20ee7e770619074a532f1bec494f2149e572be083eea05ee569ded551611043e22acfbe36e016285081cb43502b6f79e786491eaab4d04900fd47c
|
7
|
+
data.tar.gz: 1e5331db9ff3ce75299cd10468ab48341a54d8f451a2487d08646f757a801a193d930c4512991d7b2fec6be3766a34cb80a081cfddef620df6a31dd82c58f25b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -194,6 +194,14 @@ Prosopite.scan
|
|
194
194
|
Prosopite.finish
|
195
195
|
```
|
196
196
|
|
197
|
+
or
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
Prosopite.scan do
|
201
|
+
<code to scan>
|
202
|
+
end
|
203
|
+
```
|
204
|
+
|
197
205
|
## Contributing
|
198
206
|
|
199
207
|
Bug reports and pull requests are welcome on GitHub at https://github.com/charkost/prosopite.
|
data/lib/prosopite.rb
CHANGED
@@ -21,6 +21,15 @@ module Prosopite
|
|
21
21
|
@allow_list ||= []
|
22
22
|
|
23
23
|
tc[:prosopite_scan] = true
|
24
|
+
|
25
|
+
if block_given?
|
26
|
+
begin
|
27
|
+
yield
|
28
|
+
finish
|
29
|
+
ensure
|
30
|
+
tc[:prosopite_scan] = false
|
31
|
+
end
|
32
|
+
end
|
24
33
|
end
|
25
34
|
|
26
35
|
def tc
|
@@ -105,7 +114,7 @@ module Prosopite
|
|
105
114
|
|
106
115
|
query.gsub!(/\btrue\b|\bfalse\b/i, "?")
|
107
116
|
|
108
|
-
query.gsub!(/[0-9+-][0-9a-f.
|
117
|
+
query.gsub!(/[0-9+-][0-9a-f.x+-]*/, "?")
|
109
118
|
query.gsub!(/[xb.+-]\?/, "?")
|
110
119
|
|
111
120
|
query.strip!
|
data/lib/prosopite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prosopite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mpampis Kostas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|