sequel-asterisk-hunter 1.2.0 → 1.3.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04b77db98c1f5331d1147f3caf26d558e50779290806e34ae459b4ccce19564a
|
4
|
+
data.tar.gz: 34cb2318e989c0332994b1d71dd9b39e0b17e2b17d195ba9f10cb62a195cf7db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb176db205e347640a54cd99936014fc60880df74e825a52b6b9678a3f964c54bb1c20cd502605a789f4cc049b84edb895cc23f46630565fb9b65890dcdd0ac3
|
7
|
+
data.tar.gz: 0d87975419d58f330b92199bfb68e7d906749cb2e9bf2c69564ffe5c9848cd23595b6c65657d8e05a593b95f699b9c9a1bf70c33962f6e7133b9cbcea13ce386
|
@@ -2,20 +2,26 @@
|
|
2
2
|
|
3
3
|
require 'sequel'
|
4
4
|
|
5
|
+
# no-doc
|
5
6
|
module Sequel
|
7
|
+
# no-doc
|
6
8
|
module Extensions
|
9
|
+
# no-doc
|
7
10
|
module AsteriskHunter
|
8
11
|
class << self
|
9
12
|
attr_accessor :action
|
10
13
|
|
11
14
|
def define_action(user_action)
|
12
15
|
raise TypeError, 'Action parameter must be a callable object!' unless user_action.respond_to?(:call)
|
16
|
+
|
13
17
|
AsteriskHunter.action = user_action
|
14
18
|
end
|
15
19
|
end
|
16
20
|
|
21
|
+
# Default action if user don't define any.
|
17
22
|
class DefaultAction
|
18
23
|
def self.call; end
|
24
|
+
|
19
25
|
def call; end
|
20
26
|
end
|
21
27
|
|
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.
|
4
|
+
version: 1.3.0
|
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: 2019-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '5.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.63.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.63.0
|
27
41
|
description: This extension hooks into `Sequel::Dataset#all` method, doing some predefined
|
28
42
|
action when an `SELECT *` statement is found.
|
29
43
|
email: danilo.barion@gmail.com
|