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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3df6a0299972911e48ea44330995864e2cd2191ec66c199296ba324a5fa8e639
4
- data.tar.gz: 4f9ee347a8cf52fd742ee66586c7e4b601c8436a4bcabe1b1afdef5e09293f44
3
+ metadata.gz: f4f17a47aa9ab87c866f3fb9c493d3b5baae8248781346e497b90b3dc23f488d
4
+ data.tar.gz: b9e0e29a7774adb0f8600d8fedeb2de8f9a8149468d216e1ac2e05e587445939
5
5
  SHA512:
6
- metadata.gz: 668bc7e58bcabd77231adc831054d56ca572e1e9857f87736d1fd06048c1eeaac9c0c0ab970c6ed6f8ce70670ae51277c3c4f56012d0ec61240c0e728c1f3795
7
- data.tar.gz: '0341920f4f1beddc2b9c46553f9284724ecddfe50f30579a7cc9627c93fdf2d3c714bb57fd453dd7a4783a86951b9dd2cb0a79e721189bce3b89eda0c119c8bf'
6
+ metadata.gz: c143ec186f20ee7e770619074a532f1bec494f2149e572be083eea05ee569ded551611043e22acfbe36e016285081cb43502b6f79e786491eaab4d04900fd47c
7
+ data.tar.gz: 1e5331db9ff3ce75299cd10468ab48341a54d8f451a2487d08646f757a801a193d930c4512991d7b2fec6be3766a34cb80a081cfddef620df6a31dd82c58f25b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prosopite (0.2.1)
4
+ prosopite (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.xb+-]*/, "?")
117
+ query.gsub!(/[0-9+-][0-9a-f.x+-]*/, "?")
109
118
  query.gsub!(/[xb.+-]\?/, "?")
110
119
 
111
120
  query.strip!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prosopite
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
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.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-03-17 00:00:00.000000000 Z
11
+ date: 2021-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry