sequel-asterisk-hunter 1.3.0 → 1.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 +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +2 -0
- data/lib/sequel-asterisk-hunter/version.rb +1 -1
- data/lib/sequel/extensions/asterisk_hunter.rb +3 -10
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7a648b2dc2cbd2484c204e7d48bce2c63f922ac10dc55cd4c2296702cbc6f481
|
|
4
|
+
data.tar.gz: c2f9e46f4a88fe1bdf4f6aee171983b9affa70756a5c1b7fae060c93422b673d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a799a0e13b7ef1d747b76d98fe802ab50aa293fc14be259fcb006aecee176e3abf5683d65843286d640e809ae89305332aae47fd5dc2a66e7f9d0588a33e21f2
|
|
7
|
+
data.tar.gz: 151f291f636d63aa588f2bc4de02b698496dadc6752031215080af3c843871d1b7a621dd80261ee5152ae9980795a3391dd0e7e2094561ab8ae3f6c45ff5eb03
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
### 1.3.1 (2020.03.24)
|
|
2
|
+
|
|
3
|
+
- Fix rake [security issue](https://github.com/advisories/GHSA-jppv-gw3r-w3q8).
|
|
4
|
+
|
|
1
5
|
### 1.2.0 (2018.12.26)
|
|
2
6
|
|
|
3
7
|
- Change overriden method from `Sequel::Dataset#all` to `Sequel::Dataset#fetch_rows`, to hunt `SELECT *` statements for any query executed.
|
|
4
|
-
- Refactorings
|
|
8
|
+
- Refactorings.
|
|
5
9
|
|
|
6
10
|
### 1.1.0 (2018.12.22)
|
|
7
11
|
|
|
@@ -14,4 +18,4 @@
|
|
|
14
18
|
|
|
15
19
|
### 1.0.0 (2018.12.21)
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
- Initial commit.
|
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# SequelAsteriskHunter
|
|
2
2
|
|
|
3
|
+
[](https://codeclimate.com/github/danilobarion1986/sequel-asterisk-hunter/maintainability)
|
|
4
|
+
|
|
3
5
|
This extension hooks into `Sequel::Dataset#all` method, doing some predefined action when an `SELECT *` statement is found.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
@@ -18,22 +18,15 @@ module Sequel
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
# Default action if user don't define any.
|
|
22
|
-
class DefaultAction
|
|
23
|
-
def self.call; end
|
|
24
|
-
|
|
25
|
-
def call; end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
21
|
def fetch_rows(sql)
|
|
29
|
-
hunt
|
|
22
|
+
hunt
|
|
30
23
|
super
|
|
31
24
|
end
|
|
32
25
|
|
|
33
26
|
private
|
|
34
27
|
|
|
35
|
-
def hunt
|
|
36
|
-
AsteriskHunter.action&.call
|
|
28
|
+
def hunt
|
|
29
|
+
AsteriskHunter.action&.call if sql.include?('SELECT *')
|
|
37
30
|
end
|
|
38
31
|
end
|
|
39
32
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-asterisk-hunter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danilo Barion Nogueira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sequel
|
|
@@ -70,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
71
|
version: '0'
|
|
72
72
|
requirements: []
|
|
73
|
-
|
|
74
|
-
rubygems_version: 2.7.6
|
|
73
|
+
rubygems_version: 3.0.3
|
|
75
74
|
signing_key:
|
|
76
75
|
specification_version: 4
|
|
77
76
|
summary: Sequel extension which allow you to do some action when find any 'SELECT
|