pushpop 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pushpop/version.rb +1 -1
- data/lib/pushpop/web.rb +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4d6bb0bdd394d84c4bf7479efb2d286875f7278
|
4
|
+
data.tar.gz: dda59ec0c90bdffc38569118a7d72425d0e8d498
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1b33ab89c2d6632541de9466cf5769e1e0820a701043c0897d247fffa1f3c644aa26d4c95246bb46474b6c2c61be56310fc40c65b2f5fd3064996bc0350c46
|
7
|
+
data.tar.gz: c8e5645fb458dcc4d6f774ddfc82c991a3bae892b7475cf8710c4b6bd8569a415ea5181fbd3b79bc44e13f5d12994c0c12ae5f64e27ebd52441b079b0d5eca77
|
data/lib/pushpop/version.rb
CHANGED
data/lib/pushpop/web.rb
CHANGED
@@ -26,17 +26,22 @@ module Pushpop
|
|
26
26
|
if response
|
27
27
|
job.run(response, {'webhook' => response})
|
28
28
|
|
29
|
-
{
|
29
|
+
status_resp = {
|
30
30
|
status: 'success',
|
31
31
|
job: job.name
|
32
32
|
}.to_json
|
33
33
|
else
|
34
|
-
{
|
34
|
+
status_resp = {
|
35
35
|
status: 'failed',
|
36
36
|
job: job.name,
|
37
37
|
message: 'webhook step did not pass'
|
38
38
|
}.to_json
|
39
39
|
end
|
40
|
+
|
41
|
+
# The user can set the body manually.. If they did that, defer to their response
|
42
|
+
if self.response.body.empty?
|
43
|
+
status_resp
|
44
|
+
end
|
40
45
|
end
|
41
46
|
|
42
47
|
Sinatra::Application.get url, &runner
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushpop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Dzielak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clockwork
|