webhook_manager 0.2.0 → 0.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 +4 -4
- data/.gitignore +4 -1
- data/lib/webhook_manager.rb +2 -2
- data/lib/webhook_manager/globals.rb +1 -1
- data/lib/webhook_manager/version.rb +1 -1
- metadata +2 -5
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/Gemfile.lock +0 -65
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba06ee724e738a0db42ee39e9360d8d86b757de54a62822f0965b99b1de8181f
|
|
4
|
+
data.tar.gz: 29b1e905350368051adb56a0b19952063261944731feed5056d049c9f3afffdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22db9baa25354dd6ae030204874734c1fde9485c29752ee34cc4a7ebe3032503a3c34115e0703b01e587a23d7cf15568a13c8f7bc5e0a8b067ed52da6bc46025
|
|
7
|
+
data.tar.gz: 649f45f5337f95e479f4afc4d49d69785aa64de35ca648eb387e3c96360e2669594704f34a9de0de9f8345a2dae27e051b9309db7621bced8ae52e37a8b690eb
|
data/.gitignore
CHANGED
data/lib/webhook_manager.rb
CHANGED
|
@@ -24,7 +24,7 @@ module WebhookManager
|
|
|
24
24
|
|
|
25
25
|
def trigger!(event_name:, payload:)
|
|
26
26
|
begin
|
|
27
|
-
res = @conn.post("webhook_events/trigger", { event_name: event_name, event_payload: payload }.to_json)
|
|
27
|
+
res = @conn.post("webhook_events/trigger", {webhook_event: { event_name: event_name, event_payload: payload }}.to_json)
|
|
28
28
|
rescue Faraday::ConnectionFailed => e
|
|
29
29
|
raise Error.new("Could not connect to API")
|
|
30
30
|
rescue Faraday::TimeoutError => e
|
|
@@ -36,7 +36,7 @@ module WebhookManager
|
|
|
36
36
|
|
|
37
37
|
def update_status(event_id:, status:)
|
|
38
38
|
begin
|
|
39
|
-
res = @conn.post("webhook_events/update_status", { event_id: event_id,
|
|
39
|
+
res = @conn.post("webhook_events/update_status", { event_id: event_id, event_status: status }.to_json)
|
|
40
40
|
rescue Faraday::ConnectionFailed => e
|
|
41
41
|
raise Error.new("Could not connect to API")
|
|
42
42
|
rescue Faraday::TimeoutError => e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
HOOKY_API = "https://app.
|
|
1
|
+
HOOKY_API = "https://app.gethooky.com/api/v1".freeze
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webhook_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luay Bseiso
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -48,10 +48,7 @@ files:
|
|
|
48
48
|
- ".gitignore"
|
|
49
49
|
- ".rspec"
|
|
50
50
|
- ".rubocop.yml"
|
|
51
|
-
- ".ruby-gemset"
|
|
52
|
-
- ".ruby-version"
|
|
53
51
|
- Gemfile
|
|
54
|
-
- Gemfile.lock
|
|
55
52
|
- LICENSE.txt
|
|
56
53
|
- README.md
|
|
57
54
|
- Rakefile
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
webhook_manager
|
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby-2.7.2
|
data/Gemfile.lock
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
webhook_manager (0.2.0)
|
|
5
|
-
faraday (~> 0.17.3)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.4.1)
|
|
11
|
-
coderay (1.1.3)
|
|
12
|
-
diff-lcs (1.4.4)
|
|
13
|
-
faraday (0.17.3)
|
|
14
|
-
multipart-post (>= 1.2, < 3)
|
|
15
|
-
method_source (1.0.0)
|
|
16
|
-
multipart-post (2.1.1)
|
|
17
|
-
parallel (1.20.1)
|
|
18
|
-
parser (3.0.0.0)
|
|
19
|
-
ast (~> 2.4.1)
|
|
20
|
-
pry (0.13.1)
|
|
21
|
-
coderay (~> 1.1)
|
|
22
|
-
method_source (~> 1.0)
|
|
23
|
-
rainbow (3.0.0)
|
|
24
|
-
rake (13.0.3)
|
|
25
|
-
regexp_parser (2.0.3)
|
|
26
|
-
rexml (3.2.4)
|
|
27
|
-
rspec (3.10.0)
|
|
28
|
-
rspec-core (~> 3.10.0)
|
|
29
|
-
rspec-expectations (~> 3.10.0)
|
|
30
|
-
rspec-mocks (~> 3.10.0)
|
|
31
|
-
rspec-core (3.10.1)
|
|
32
|
-
rspec-support (~> 3.10.0)
|
|
33
|
-
rspec-expectations (3.10.1)
|
|
34
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
35
|
-
rspec-support (~> 3.10.0)
|
|
36
|
-
rspec-mocks (3.10.1)
|
|
37
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
38
|
-
rspec-support (~> 3.10.0)
|
|
39
|
-
rspec-support (3.10.1)
|
|
40
|
-
rubocop (1.7.0)
|
|
41
|
-
parallel (~> 1.10)
|
|
42
|
-
parser (>= 2.7.1.5)
|
|
43
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
44
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
45
|
-
rexml
|
|
46
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
|
47
|
-
ruby-progressbar (~> 1.7)
|
|
48
|
-
unicode-display_width (>= 1.4.0, < 2.0)
|
|
49
|
-
rubocop-ast (1.3.0)
|
|
50
|
-
parser (>= 2.7.1.5)
|
|
51
|
-
ruby-progressbar (1.10.1)
|
|
52
|
-
unicode-display_width (1.7.0)
|
|
53
|
-
|
|
54
|
-
PLATFORMS
|
|
55
|
-
x86_64-darwin-17
|
|
56
|
-
|
|
57
|
-
DEPENDENCIES
|
|
58
|
-
pry
|
|
59
|
-
rake (~> 13.0)
|
|
60
|
-
rspec (~> 3.0)
|
|
61
|
-
rubocop (~> 1.7.0)
|
|
62
|
-
webhook_manager!
|
|
63
|
-
|
|
64
|
-
BUNDLED WITH
|
|
65
|
-
2.2.3
|