capistrano-webhooks 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 9847ef1a5737b4c63499fcad5508ec2069f30466
4
- data.tar.gz: dfec1087d9ae1dfff6354638909ef4cc6907c426
3
+ metadata.gz: 1b68255e891461f85dc0b30a9371b1b13d295f07
4
+ data.tar.gz: 7fc5f28cd5a9178b366c5d4cec4f9c61344ff48e
5
5
  SHA512:
6
- metadata.gz: 163a9fdbb39b1eb4430cc1a55aa2a28651eee4ece86626a96987f19e74e40f86d7bd066c4b683056717a4d6b8d87b77e0de7b393425c9333978b9528d206408a
7
- data.tar.gz: 7f2d3d499c6228d7f4379fb6cd2f7e150a0663c12c00912c9e3839660c684302c157ae40a1cc94c1cf87549e9316d4369341274dffbc62731d74848efbc3390c
6
+ metadata.gz: 9c867b027f984da9a4a3443435aaf63c4a2f159da1c022c8c9be53ef9ca55a22ae0f579209adaae937c9799f133647b10336bbc3def423969a743e6f745d82d5
7
+ data.tar.gz: 51dc29f4e690790999b1341743faf59bd4ecfd1b44c0e28db5d0c8b865fc83ab98692d63feb156e98888474301543d67bb9028147ba0879dbfcebf72fd7b98b6
@@ -26,8 +26,8 @@ module Capistrano
26
26
  Faraday.new do |faraday|
27
27
  faraday.request :multipart
28
28
  faraday.request :url_encoded
29
- faraday.options.timeout = 5
30
- faraday.options.open_timeout = 5
29
+ faraday.options.timeout = 15
30
+ faraday.options.open_timeout = 15
31
31
  faraday.adapter Faraday.default_adapter
32
32
  end
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Webhooks
3
- VERSION = '0.0.3'.freeze
3
+ VERSION = '0.0.4'.freeze
4
4
  end
5
5
  end
@@ -30,7 +30,12 @@ namespace :webhooks do
30
30
 
31
31
  task_name = "webhooks:task_#{webhook_index}"
32
32
  Rake::Task.define_task task_name do
33
- Capistrano::Webhooks::Client.new(url, opts).run
33
+ begin
34
+ Capistrano::Webhooks::Client.new(url, opts).run
35
+ rescue => e
36
+ warn "Webhook to '#{url}' failed"
37
+ warn "Error: #{e.inspect}"
38
+ end
34
39
  end
35
40
 
36
41
  send hook, webhook, task_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav Fesenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-20 00:00:00.000000000 Z
11
+ date: 2017-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday