sequel-asterisk-hunter 1.3.0 → 1.3.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: 04b77db98c1f5331d1147f3caf26d558e50779290806e34ae459b4ccce19564a
4
- data.tar.gz: 34cb2318e989c0332994b1d71dd9b39e0b17e2b17d195ba9f10cb62a195cf7db
3
+ metadata.gz: 7a648b2dc2cbd2484c204e7d48bce2c63f922ac10dc55cd4c2296702cbc6f481
4
+ data.tar.gz: c2f9e46f4a88fe1bdf4f6aee171983b9affa70756a5c1b7fae060c93422b673d
5
5
  SHA512:
6
- metadata.gz: bb176db205e347640a54cd99936014fc60880df74e825a52b6b9678a3f964c54bb1c20cd502605a789f4cc049b84edb895cc23f46630565fb9b65890dcdd0ac3
7
- data.tar.gz: 0d87975419d58f330b92199bfb68e7d906749cb2e9bf2c69564ffe5c9848cd23595b6c65657d8e05a593b95f699b9c9a1bf70c33962f6e7133b9cbcea13ce386
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
- * Initial commit
21
+ - Initial commit.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # SequelAsteriskHunter
2
2
 
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/45c9c0861e32902a4b0a/maintainability)](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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SequelAsteriskHunter
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
@@ -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(sql)
22
+ hunt
30
23
  super
31
24
  end
32
25
 
33
26
  private
34
27
 
35
- def hunt(sql)
36
- AsteriskHunter.action&.call || AsteriskHunter::DefaultAction if sql.include?('SELECT *')
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.0
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: 2019-02-04 00:00:00.000000000 Z
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
- rubyforge_project:
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