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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe7805d7d7e709db2e7755e129304910d3d0fee1
4
- data.tar.gz: a54982a5c2d839742707fb436c80b5c2797be836
3
+ metadata.gz: f4d6bb0bdd394d84c4bf7479efb2d286875f7278
4
+ data.tar.gz: dda59ec0c90bdffc38569118a7d72425d0e8d498
5
5
  SHA512:
6
- metadata.gz: 774bf40378cf98a36a075251ca1e387771234608c642969f47b461c655d64ed98d1c25b9687234fad8a7ff9f53d2c418400c7e28a54486e67b6d2c53353b03e9
7
- data.tar.gz: 37498cee6426ea779b993de3406d31ce61187836558920140ec6fd4ff64a0da28f3d27f99ec1c64c646076b1260e7b58c6574fc7f383b67019c3298039fe916b
6
+ metadata.gz: fe1b33ab89c2d6632541de9466cf5769e1e0820a701043c0897d247fffa1f3c644aa26d4c95246bb46474b6c2c61be56310fc40c65b2f5fd3064996bc0350c46
7
+ data.tar.gz: c8e5645fb458dcc4d6f774ddfc82c991a3bae892b7475cf8710c4b6bd8569a415ea5181fbd3b79bc44e13f5d12994c0c12ae5f64e27ebd52441b079b0d5eca77
@@ -1,3 +1,3 @@
1
1
  module Pushpop
2
- VERSION = '0.3.3'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -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.3.3
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-01 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clockwork