capistrano-rocketdeploy 0.2.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1f55bc7a9716124f8860bdb8c2899721661dffc56ee3e94f35eb87e18ee9f4a
4
- data.tar.gz: 83abb8b035ed3fda2db73fa52343a403ea4c13744840e2a6181b36b1e970ab75
3
+ metadata.gz: 02f067950290a2dd189ef7d9ddda679303ce8082e77ce74a828a98d6c3f0cf9b
4
+ data.tar.gz: 45f6a75a81c8ba69fb61985b4c11aa7c8fe76c870ce2cb740e65b6d5845cd214
5
5
  SHA512:
6
- metadata.gz: 6e4f383f032a8d09a0dff683d9a7c2052e51af764642506fcea2a862b161ba1bc17aa9be8f38c653ae089a47666f7ceb924ea055a0977ec3e659bae401e01764
7
- data.tar.gz: 8e4fd60b4af819cc125cc1cf872423ad11c11b727b7e92255d39a36b758699f96109470972b045059b208956ff7ef2b8602cb196a892f7be9a45fb60fa845109
6
+ metadata.gz: 02dbdee9fb8c3c596569f5549f0c4b01718757d799133b693a082c4668313575cadacccdeb775633fa5bf8f2a227bfd79612f1ae711ce9fcb883e31c469aaf36
7
+ data.tar.gz: c0f5c7bc38ad6ca962fa9cd4b70c348ade2b688c3387258a6bc233a4d14114d7c9e8c686cf39e65c2692f67ada605d91ac358038449f255283a068e687ccce8c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-rocketdeploy (0.2.1)
4
+ capistrano-rocketdeploy (0.3.0)
5
5
  capistrano (~> 3.0)
6
6
  rest-client
7
7
 
@@ -16,13 +16,13 @@ GEM
16
16
  rake (>= 10.0.0)
17
17
  sshkit (>= 1.9.0)
18
18
  coderay (1.1.2)
19
- concurrent-ruby (1.1.4)
19
+ concurrent-ruby (1.1.5)
20
20
  diff-lcs (1.3)
21
21
  domain_name (0.5.20180417)
22
22
  unf (>= 0.0.5, < 1.0.0)
23
23
  http-cookie (1.0.3)
24
24
  domain_name (~> 0.5)
25
- i18n (1.5.1)
25
+ i18n (1.6.0)
26
26
  concurrent-ruby (~> 1.0)
27
27
  method_source (0.9.2)
28
28
  mime-types (3.2.2)
@@ -30,7 +30,7 @@ GEM
30
30
  mime-types-data (3.2018.0812)
31
31
  net-scp (1.2.1)
32
32
  net-ssh (>= 2.6.5)
33
- net-ssh (5.1.0)
33
+ net-ssh (5.2.0)
34
34
  netrc (0.11.0)
35
35
  pry (0.12.2)
36
36
  coderay (~> 1.1.0)
@@ -53,7 +53,7 @@ GEM
53
53
  diff-lcs (>= 1.2.0, < 2.0)
54
54
  rspec-support (~> 3.8.0)
55
55
  rspec-support (3.8.0)
56
- sshkit (1.18.0)
56
+ sshkit (1.18.2)
57
57
  net-scp (>= 1.1.2)
58
58
  net-ssh (>= 2.8.0)
59
59
  unf (0.1.4)
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  rspec (~> 3.0)
72
72
 
73
73
  BUNDLED WITH
74
- 1.16.6
74
+ 1.17.2
data/README.md CHANGED
@@ -24,7 +24,7 @@ $ bundle
24
24
 
25
25
  ## Usage
26
26
 
27
- Add this to your Capfile
27
+ Add this to your Capfile after `capistrano/scm/git`
28
28
 
29
29
  ```ruby
30
30
  require 'capistrano/rocketdeploy'
@@ -1,5 +1,3 @@
1
- require 'httparty'
2
-
3
1
  require "capistrano/rocketdeploy/version"
4
2
  require "capistrano/rocketdeploy/client"
5
3
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rocketdeploy
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.3.0".freeze
4
4
  end
5
5
  end
@@ -22,12 +22,14 @@ namespace :rocketdeploy do
22
22
 
23
23
  client = fetch(:rocketdeploy_client)
24
24
  r = client.deploy_started(@data)
25
- unless r.nil?
25
+ if r.nil?
26
+ raise "response of rocketdeploy is nil"
27
+ else
26
28
  @deploy_id = r['id']
27
29
  end
28
30
  end
29
31
 
30
- task :notify_deploy_finished => [:collect_env] do
32
+ task :notify_deploy_finished do
31
33
  client = fetch(:rocketdeploy_client)
32
34
  if @deploy_id.nil?
33
35
  puts "RocketDeploy: no deploy_id, cant report"
@@ -36,7 +38,7 @@ namespace :rocketdeploy do
36
38
  end
37
39
  end
38
40
 
39
- task :notify_deploy_failed => [:collect_env] do
41
+ task :notify_deploy_failed do
40
42
  client = fetch(:rocketdeploy_client)
41
43
  if @deploy_id.nil?
42
44
  puts "RocketDeploy: no deploy_id, cant report"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rocketdeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Yegorov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -137,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  requirements: []
140
- rubyforge_project:
141
- rubygems_version: 2.7.7
140
+ rubygems_version: 3.0.2
142
141
  signing_key:
143
142
  specification_version: 4
144
143
  summary: Deploy notifier for RocketDeploy server