capistrano-slack_notification 0.0.5 → 0.0.6

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: c0370eda7b0424784eba889c4178427a760e84bf
4
- data.tar.gz: be729134033a82801ad4b1477993218c67c8f4c1
3
+ metadata.gz: 769e83e337729442f5ba62844b9eca6eccbaaab0
4
+ data.tar.gz: ccec546c35885f9d02d9428bb1a39c19fa0e22e3
5
5
  SHA512:
6
- metadata.gz: 98dc247e84beebd7a5e1b0b6aefc977df87265a09f1f0077894dcf52ff41a1fa69e2d3993468e18ee2f70cd3ed9f23b25e02a4d99b3dfb18ae0c2fe6d831b5fb
7
- data.tar.gz: a032f712e30af0d6855db617469172b049ca37596b155ea1f897ea5e1d4489856945a9f2460a01d31014440611f374ce78c45e9776a3c904dcb9a183fa36c839
6
+ metadata.gz: 364de8da5f1eec21eb654746aa3aa2862b2547f4e6d896cbd1aca9545aaf029a31af7807d04903db67a96f7d20bbbca262aa9fbacd8b6fbe0973d461e9c4aed2
7
+ data.tar.gz: d82959bfc35c5249f09ffe47f7cf4e5962315827348278b85d1cd1918cc81c2dea62018d6b0fb0c3c4b7277f453d30488c71783fdfaa9f2e1a476f272e1fa836
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module SlackNotification
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -84,8 +84,12 @@ namespace :slack do
84
84
  conn = Faraday.new(fetch :slack_endpoint) do |c|
85
85
  c.request :url_encoded
86
86
  c.adapter Faraday.default_adapter
87
- c.options.timeout = 5
88
- c.options.open_timeout = 5
87
+
88
+ v = Faraday::VERSION.split('.')
89
+ if v.join('.').to_f >= 0.9
90
+ c.options.timeout = 5
91
+ c.options.open_timeout = 5
92
+ end
89
93
  end
90
94
 
91
95
  res = conn.post fetch(:slack_path), body
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-slack_notification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows