capistrano2-zabbix 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
- SHA1:
3
- metadata.gz: c0881be85e82dd0a33a04c50ec9ac8113abc26d0
4
- data.tar.gz: 6f9a2feb58bce433c52d25aa73c2a281e1eaacb9
2
+ SHA256:
3
+ metadata.gz: '0095dff15a8bb304a4715c69b286105764396375d3b990d14b0b10bd075b00b4'
4
+ data.tar.gz: 05a870592a2c5f426f7a3e60832eb89e8b89f4a5adc116084813506bff4e3951
5
5
  SHA512:
6
- metadata.gz: 4d6c5b8fd27b9e7f4e154ca6b3de54c327fd13c29045d5b133b2314767848b1f25b7f5aaeb5a1af51098e7b9c203be1b485f1618595f398100071a1180f765d7
7
- data.tar.gz: fa1fa3b928dd848b844df0efb7ff6acbec968c852a6af563e5463bc57aabdc9fbd874b9eb4c6d915e95cc221fdf309afcd09b0e34cea0b9d109a55cb08cdb801
6
+ metadata.gz: 74790bf19c6cdf4d6e93dad3fb08e3a3fef793456c8260b7cfe8c705dbe292768c79d98eecaf0724d147ce8afe7a7812b355d04253ec740cfd9be8601d79814d
7
+ data.tar.gz: 386e9916cb9530a99fc2df182bb9c8525a139b9932342ab3ba0d279fcf5d15c19c24ed46bb57c29b34550a7b0e761380e4baa563b4dadb8d44ddcc850024fc60
@@ -0,0 +1,58 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ "master" ]
6
+ pull_request:
7
+ branches: [ "master" ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test-old-rubygems:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ matrix:
17
+ ruby-version:
18
+ - '2.0'
19
+ - '2.1'
20
+ - '2.2'
21
+
22
+ steps:
23
+ - uses: actions/checkout@v3
24
+ - name: Set up Ruby
25
+ # https://github.com/ruby/setup-ruby#versioning
26
+ uses: ruby/setup-ruby@v1
27
+ with:
28
+ ruby-version: ${{ matrix.ruby-version }}
29
+ rubygems: '2.2.5'
30
+ bundler: '1.17.3'
31
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32
+ - name: Run tests
33
+ run: bundle exec rake
34
+
35
+ test:
36
+ runs-on: ubuntu-latest
37
+ strategy:
38
+ matrix:
39
+ ruby-version:
40
+ - '2.3'
41
+ - '2.4'
42
+ - '2.5'
43
+ - '2.6'
44
+ - '2.7'
45
+ - '3.0'
46
+ - '3.1'
47
+
48
+ steps:
49
+ - uses: actions/checkout@v3
50
+ - name: Set up Ruby
51
+ # https://github.com/ruby/setup-ruby#versioning
52
+ uses: ruby/setup-ruby@v1
53
+ with:
54
+ ruby-version: ${{ matrix.ruby-version }}
55
+ rubygems: latest
56
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
57
+ - name: Run tests
58
+ run: bundle exec rake
data/Gemfile CHANGED
@@ -1,18 +1,19 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'zabbixapi', ['>=2.4.0', '<2.5.0']
3
+ gem 'zabbixapi', '~>4.2.0'
4
4
  gem 'capistrano', '~> 2.0'
5
5
 
6
6
  group :development do
7
7
  gem 'rspec', '~> 3.2'
8
8
  gem 'yard', '~> 0.7'
9
- gem 'rdoc', '~> 3.12'
10
- gem 'bundler', '~> 1.0'
9
+ gem 'rdoc', '>= 4.3.0'
10
+ gem 'bundler', '>= 1.0'
11
11
  gem 'jeweler', '~> 2.0'
12
12
  gem 'simplecov', '~> 0.10'
13
13
  gem 'vcr', '~> 2.9'
14
14
  gem 'webmock', '~> 1.21'
15
- gem 'pry', '~> 0.10'
15
+ gem 'crack', '~> 0.3.2'
16
+ gem 'pry', '>= 0.10'
16
17
  gem 'guard-rubocop', '~> 1.2'
17
18
  gem 'guard', '~> 2.12'
18
19
  gem 'guard-rspec', '~> 4.5'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -2,30 +2,29 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: capistrano2-zabbix 0.2.1 ruby lib
5
+ # stub: capistrano2-zabbix 0.3.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "capistrano2-zabbix"
9
- s.version = "0.2.1"
8
+ s.name = "capistrano2-zabbix".freeze
9
+ s.version = "0.3.0"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Marek Skrobacki"]
14
- s.date = "2016-02-11"
15
- s.description = "\n Tired of manually creating maintenance objects in your Zabbix monitoring\n system for every new release of your application ? This gem is for you! It\n automates creation and removal of necessary objects so that your code can be\n released without unnecessary false alerts.\n "
16
- s.email = "skrobul@skrobul.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Marek Skrobacki".freeze]
14
+ s.date = "2022-08-24"
15
+ s.description = "\n Tired of manually creating maintenance objects in your Zabbix monitoring\n system for every new release of your application ? This gem is for you! It\n automates creation and removal of necessary objects so that your code can be\n released without unnecessary false alerts.\n ".freeze
16
+ s.email = "skrobul@skrobul.com".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.md"
20
20
  ]
21
21
  s.files = [
22
22
  ".document",
23
+ ".github/workflows/ruby.yml",
23
24
  ".rspec",
24
25
  ".rubocop.yml",
25
26
  ".ruby-version",
26
- ".travis.yml",
27
27
  "Gemfile",
28
- "Gemfile.lock",
29
28
  "Guardfile",
30
29
  "LICENSE.txt",
31
30
  "README.md",
@@ -48,60 +47,47 @@ Gem::Specification.new do |s|
48
47
  "spec/spec_helper.rb",
49
48
  "spec/zabbix_maintenance_spec.rb"
50
49
  ]
51
- s.homepage = "http://github.com/skrobul/capistrano2-zabbix"
52
- s.licenses = ["MIT"]
53
- s.rubygems_version = "2.4.6"
54
- s.summary = "Create maintenances in Zabbix through Capistrano deployment"
50
+ s.homepage = "http://github.com/skrobul/capistrano2-zabbix".freeze
51
+ s.licenses = ["MIT".freeze]
52
+ s.rubygems_version = "3.3.7".freeze
53
+ s.summary = "Create maintenances in Zabbix through Capistrano deployment".freeze
55
54
 
56
55
  if s.respond_to? :specification_version then
57
56
  s.specification_version = 4
57
+ end
58
58
 
59
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
- s.add_runtime_dependency(%q<zabbixapi>, ["< 2.5.0", ">= 2.4.0"])
61
- s.add_runtime_dependency(%q<capistrano>, ["~> 2.0"])
62
- s.add_development_dependency(%q<rspec>, ["~> 3.2"])
63
- s.add_development_dependency(%q<yard>, ["~> 0.7"])
64
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
65
- s.add_development_dependency(%q<bundler>, ["~> 1.0"])
66
- s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
67
- s.add_development_dependency(%q<simplecov>, ["~> 0.10"])
68
- s.add_development_dependency(%q<vcr>, ["~> 2.9"])
69
- s.add_development_dependency(%q<webmock>, ["~> 1.21"])
70
- s.add_development_dependency(%q<pry>, ["~> 0.10"])
71
- s.add_development_dependency(%q<guard-rubocop>, ["~> 1.2"])
72
- s.add_development_dependency(%q<guard>, ["~> 2.12"])
73
- s.add_development_dependency(%q<guard-rspec>, ["~> 4.5"])
74
- else
75
- s.add_dependency(%q<zabbixapi>, ["< 2.5.0", ">= 2.4.0"])
76
- s.add_dependency(%q<capistrano>, ["~> 2.0"])
77
- s.add_dependency(%q<rspec>, ["~> 3.2"])
78
- s.add_dependency(%q<yard>, ["~> 0.7"])
79
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
80
- s.add_dependency(%q<bundler>, ["~> 1.0"])
81
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
82
- s.add_dependency(%q<simplecov>, ["~> 0.10"])
83
- s.add_dependency(%q<vcr>, ["~> 2.9"])
84
- s.add_dependency(%q<webmock>, ["~> 1.21"])
85
- s.add_dependency(%q<pry>, ["~> 0.10"])
86
- s.add_dependency(%q<guard-rubocop>, ["~> 1.2"])
87
- s.add_dependency(%q<guard>, ["~> 2.12"])
88
- s.add_dependency(%q<guard-rspec>, ["~> 4.5"])
89
- end
59
+ if s.respond_to? :add_runtime_dependency then
60
+ s.add_runtime_dependency(%q<zabbixapi>.freeze, ["~> 4.2.0"])
61
+ s.add_runtime_dependency(%q<capistrano>.freeze, ["~> 2.0"])
62
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.2"])
63
+ s.add_development_dependency(%q<yard>.freeze, ["~> 0.7"])
64
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 4.3.0"])
65
+ s.add_development_dependency(%q<bundler>.freeze, [">= 1.0"])
66
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
67
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.10"])
68
+ s.add_development_dependency(%q<vcr>.freeze, ["~> 2.9"])
69
+ s.add_development_dependency(%q<webmock>.freeze, ["~> 1.21"])
70
+ s.add_development_dependency(%q<crack>.freeze, ["~> 0.3.2"])
71
+ s.add_development_dependency(%q<pry>.freeze, [">= 0.10"])
72
+ s.add_development_dependency(%q<guard-rubocop>.freeze, ["~> 1.2"])
73
+ s.add_development_dependency(%q<guard>.freeze, ["~> 2.12"])
74
+ s.add_development_dependency(%q<guard-rspec>.freeze, ["~> 4.5"])
90
75
  else
91
- s.add_dependency(%q<zabbixapi>, ["< 2.5.0", ">= 2.4.0"])
92
- s.add_dependency(%q<capistrano>, ["~> 2.0"])
93
- s.add_dependency(%q<rspec>, ["~> 3.2"])
94
- s.add_dependency(%q<yard>, ["~> 0.7"])
95
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
96
- s.add_dependency(%q<bundler>, ["~> 1.0"])
97
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
98
- s.add_dependency(%q<simplecov>, ["~> 0.10"])
99
- s.add_dependency(%q<vcr>, ["~> 2.9"])
100
- s.add_dependency(%q<webmock>, ["~> 1.21"])
101
- s.add_dependency(%q<pry>, ["~> 0.10"])
102
- s.add_dependency(%q<guard-rubocop>, ["~> 1.2"])
103
- s.add_dependency(%q<guard>, ["~> 2.12"])
104
- s.add_dependency(%q<guard-rspec>, ["~> 4.5"])
76
+ s.add_dependency(%q<zabbixapi>.freeze, ["~> 4.2.0"])
77
+ s.add_dependency(%q<capistrano>.freeze, ["~> 2.0"])
78
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.2"])
79
+ s.add_dependency(%q<yard>.freeze, ["~> 0.7"])
80
+ s.add_dependency(%q<rdoc>.freeze, [">= 4.3.0"])
81
+ s.add_dependency(%q<bundler>.freeze, [">= 1.0"])
82
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
83
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.10"])
84
+ s.add_dependency(%q<vcr>.freeze, ["~> 2.9"])
85
+ s.add_dependency(%q<webmock>.freeze, ["~> 1.21"])
86
+ s.add_dependency(%q<crack>.freeze, ["~> 0.3.2"])
87
+ s.add_dependency(%q<pry>.freeze, [">= 0.10"])
88
+ s.add_dependency(%q<guard-rubocop>.freeze, ["~> 1.2"])
89
+ s.add_dependency(%q<guard>.freeze, ["~> 2.12"])
90
+ s.add_dependency(%q<guard-rspec>.freeze, ["~> 4.5"])
105
91
  end
106
92
  end
107
93
 
@@ -12,7 +12,7 @@ class ZabbixMaintenance
12
12
  if e.message =~ /password is incorrect/
13
13
  fail 'Login failed - incorrect password.'
14
14
  else
15
- fail "Error while connecting to Zabbix: #{e}"
15
+ raise e
16
16
  end
17
17
  end
18
18
 
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":90443,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"9cea11e673f8859e7c09085362dc99c1","id":36215,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,12 +27,12 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"9cea11e673f8859e7c09085362dc99c1","id":90443}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":36215}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 12:16:34 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"9cea11e673f8859e7c09085362dc99c1","id":36215,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":90443,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,12 +62,12 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":36215}'
70
+ string: '{"jsonrpc":"2.0","result":"9cea11e673f8859e7c09085362dc99c1","id":90443}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 12:16:34 GMT
73
73
  - request:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":12876,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"d0762dbd317f9340c2f50e3740fb32b4","id":92137,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -21,18 +21,18 @@ http_interactions:
21
21
  message: OK
22
22
  headers:
23
23
  Date:
24
- - Thu, 14 May 2015 04:05:39 GMT
24
+ - Thu, 14 May 2015 04:05:40 GMT
25
25
  Server:
26
26
  - Apache/2.2.22 (Linux/SUSE)
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"d0762dbd317f9340c2f50e3740fb32b4","id":12876}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":92137}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 11:36:59 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"d0762dbd317f9340c2f50e3740fb32b4","id":92137,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":12876,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -56,18 +56,18 @@ http_interactions:
56
56
  message: OK
57
57
  headers:
58
58
  Date:
59
- - Thu, 14 May 2015 04:05:40 GMT
59
+ - Thu, 14 May 2015 04:05:39 GMT
60
60
  Server:
61
61
  - Apache/2.2.22 (Linux/SUSE)
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":92137}'
70
+ string: '{"jsonrpc":"2.0","result":"d0762dbd317f9340c2f50e3740fb32b4","id":12876}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 11:36:59 GMT
73
73
  - request:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":76622,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"aebd33c25d82d0bab6c1477705762484","id":77881,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,12 +27,12 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"aebd33c25d82d0bab6c1477705762484","id":76622}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":77881}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 12:06:05 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"aebd33c25d82d0bab6c1477705762484","id":77881,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":76622,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,12 +62,12 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":77881}'
70
+ string: '{"jsonrpc":"2.0","result":"aebd33c25d82d0bab6c1477705762484","id":76622}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 12:06:05 GMT
73
73
  - request:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":3374,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"0e77b2d8af92d863adf4a492fabaec5f","id":34489,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,20 +27,20 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '71'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"0e77b2d8af92d863adf4a492fabaec5f","id":3374}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":34489}'
36
36
  http_version:
37
- recorded_at: Thu, 14 May 2015 12:14:09 GMT
37
+ recorded_at: Thu, 14 May 2015 12:14:10 GMT
38
38
  - request:
39
39
  method: post
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"0e77b2d8af92d863adf4a492fabaec5f","id":34489,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":3374,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,14 +62,14 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '71'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":34489}'
70
+ string: '{"jsonrpc":"2.0","result":"0e77b2d8af92d863adf4a492fabaec5f","id":3374}'
71
71
  http_version:
72
- recorded_at: Thu, 14 May 2015 12:14:10 GMT
72
+ recorded_at: Thu, 14 May 2015 12:14:09 GMT
73
73
  - request:
74
74
  method: post
75
75
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":64158,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"fbba76cc74de902d341f6304f440d589","id":41977,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,12 +27,12 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"fbba76cc74de902d341f6304f440d589","id":64158}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":41977}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 12:14:10 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"fbba76cc74de902d341f6304f440d589","id":41977,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":64158,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,12 +62,12 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":41977}'
70
+ string: '{"jsonrpc":"2.0","result":"fbba76cc74de902d341f6304f440d589","id":64158}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 12:14:10 GMT
73
73
  - request:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":82510,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"758c5132a40395da60544bf2a6c47ad0","id":60370,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,12 +27,12 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"758c5132a40395da60544bf2a6c47ad0","id":82510}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":60370}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 13:30:02 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"758c5132a40395da60544bf2a6c47ad0","id":60370,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":82510,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,12 +62,12 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":60370}'
70
+ string: '{"jsonrpc":"2.0","result":"758c5132a40395da60544bf2a6c47ad0","id":82510}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 13:30:02 GMT
73
73
  - request:
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":41380,"jsonrpc":"2.0"}'
8
+ string: '{"method":"apiinfo.version","params":{},"auth":"8760338ef8f6aeed1d347a5d28a6766d","id":28070,"jsonrpc":"2.0"}'
9
9
  headers:
10
10
  Accept-Encoding:
11
11
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -27,12 +27,12 @@ http_interactions:
27
27
  X-Powered-By:
28
28
  - PHP/5.3.17
29
29
  Content-Length:
30
- - '72'
30
+ - '45'
31
31
  Content-Type:
32
32
  - application/json
33
33
  body:
34
34
  encoding: UTF-8
35
- string: '{"jsonrpc":"2.0","result":"8760338ef8f6aeed1d347a5d28a6766d","id":41380}'
35
+ string: '{"jsonrpc":"2.0","result":"4.0.0","id":28070}'
36
36
  http_version:
37
37
  recorded_at: Thu, 14 May 2015 11:23:32 GMT
38
38
  - request:
@@ -40,7 +40,7 @@ http_interactions:
40
40
  uri: http://192.168.56.2/zabbix/api_jsonrpc.php
41
41
  body:
42
42
  encoding: UTF-8
43
- string: '{"method":"apiinfo.version","params":{},"auth":"8760338ef8f6aeed1d347a5d28a6766d","id":28070,"jsonrpc":"2.0"}'
43
+ string: '{"method":"user.authenticate","params":{"user":"Admin","password":"zabbix"},"auth":null,"id":41380,"jsonrpc":"2.0"}'
44
44
  headers:
45
45
  Accept-Encoding:
46
46
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
@@ -62,12 +62,12 @@ http_interactions:
62
62
  X-Powered-By:
63
63
  - PHP/5.3.17
64
64
  Content-Length:
65
- - '45'
65
+ - '72'
66
66
  Content-Type:
67
67
  - application/json
68
68
  body:
69
69
  encoding: UTF-8
70
- string: '{"jsonrpc":"2.0","result":"2.2.2","id":28070}'
70
+ string: '{"jsonrpc":"2.0","result":"8760338ef8f6aeed1d347a5d28a6766d","id":41380}'
71
71
  http_version:
72
72
  recorded_at: Thu, 14 May 2015 11:23:32 GMT
73
73
  - request:
metadata CHANGED
@@ -1,35 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano2-zabbix
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
  - Marek Skrobacki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-11 00:00:00.000000000 Z
11
+ date: 2022-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zabbixapi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<"
18
- - !ruby/object:Gem::Version
19
- version: 2.5.0
20
- - - ">="
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
- version: 2.4.0
19
+ version: 4.2.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "<"
28
- - !ruby/object:Gem::Version
29
- version: 2.5.0
30
- - - ">="
24
+ - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 2.4.0
26
+ version: 4.2.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: capistrano
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -76,28 +70,28 @@ dependencies:
76
70
  name: rdoc
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - "~>"
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
- version: '3.12'
75
+ version: 4.3.0
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - "~>"
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
- version: '3.12'
82
+ version: 4.3.0
89
83
  - !ruby/object:Gem::Dependency
90
84
  name: bundler
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - "~>"
87
+ - - ">="
94
88
  - !ruby/object:Gem::Version
95
89
  version: '1.0'
96
90
  type: :development
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
- - - "~>"
94
+ - - ">="
101
95
  - !ruby/object:Gem::Version
102
96
  version: '1.0'
103
97
  - !ruby/object:Gem::Dependency
@@ -157,17 +151,31 @@ dependencies:
157
151
  - !ruby/object:Gem::Version
158
152
  version: '1.21'
159
153
  - !ruby/object:Gem::Dependency
160
- name: pry
154
+ name: crack
161
155
  requirement: !ruby/object:Gem::Requirement
162
156
  requirements:
163
157
  - - "~>"
164
158
  - !ruby/object:Gem::Version
165
- version: '0.10'
159
+ version: 0.3.2
166
160
  type: :development
167
161
  prerelease: false
168
162
  version_requirements: !ruby/object:Gem::Requirement
169
163
  requirements:
170
164
  - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.3.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0.10'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
171
179
  - !ruby/object:Gem::Version
172
180
  version: '0.10'
173
181
  - !ruby/object:Gem::Dependency
@@ -224,12 +232,11 @@ extra_rdoc_files:
224
232
  - README.md
225
233
  files:
226
234
  - ".document"
235
+ - ".github/workflows/ruby.yml"
227
236
  - ".rspec"
228
237
  - ".rubocop.yml"
229
238
  - ".ruby-version"
230
- - ".travis.yml"
231
239
  - Gemfile
232
- - Gemfile.lock
233
240
  - Guardfile
234
241
  - LICENSE.txt
235
242
  - README.md
@@ -255,7 +262,7 @@ homepage: http://github.com/skrobul/capistrano2-zabbix
255
262
  licenses:
256
263
  - MIT
257
264
  metadata: {}
258
- post_install_message:
265
+ post_install_message:
259
266
  rdoc_options: []
260
267
  require_paths:
261
268
  - lib
@@ -270,9 +277,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
277
  - !ruby/object:Gem::Version
271
278
  version: '0'
272
279
  requirements: []
273
- rubyforge_project:
274
- rubygems_version: 2.4.6
275
- signing_key:
280
+ rubygems_version: 3.3.7
281
+ signing_key:
276
282
  specification_version: 4
277
283
  summary: Create maintenances in Zabbix through Capistrano deployment
278
284
  test_files: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.1.0
5
- - 2.2.0
6
- - ruby-head
7
- - jruby-head
data/Gemfile.lock DELETED
@@ -1,169 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.3.8)
5
- ast (2.0.0)
6
- astrolabe (1.3.0)
7
- parser (>= 2.2.0.pre.3, < 3.0)
8
- builder (3.2.2)
9
- capistrano (2.15.5)
10
- highline
11
- net-scp (>= 1.0.0)
12
- net-sftp (>= 2.0.0)
13
- net-ssh (>= 2.0.14)
14
- net-ssh-gateway (>= 1.1.0)
15
- celluloid (0.16.0)
16
- timers (~> 4.0.0)
17
- coderay (1.1.0)
18
- crack (0.4.2)
19
- safe_yaml (~> 1.0.0)
20
- descendants_tracker (0.0.4)
21
- thread_safe (~> 0.3, >= 0.3.1)
22
- diff-lcs (1.2.5)
23
- docile (1.1.5)
24
- faraday (0.9.1)
25
- multipart-post (>= 1.2, < 3)
26
- ffi (1.9.8)
27
- formatador (0.2.5)
28
- git (1.2.9.1)
29
- github_api (0.12.3)
30
- addressable (~> 2.3)
31
- descendants_tracker (~> 0.0.4)
32
- faraday (~> 0.8, < 0.10)
33
- hashie (>= 3.3)
34
- multi_json (>= 1.7.5, < 2.0)
35
- nokogiri (~> 1.6.3)
36
- oauth2
37
- guard (2.12.5)
38
- formatador (>= 0.2.4)
39
- listen (~> 2.7)
40
- lumberjack (~> 1.0)
41
- nenv (~> 0.1)
42
- notiffany (~> 0.0)
43
- pry (>= 0.9.12)
44
- shellany (~> 0.0)
45
- thor (>= 0.18.1)
46
- guard-compat (1.2.1)
47
- guard-rspec (4.5.0)
48
- guard (~> 2.1)
49
- guard-compat (~> 1.1)
50
- rspec (>= 2.99.0, < 4.0)
51
- guard-rubocop (1.2.0)
52
- guard (~> 2.0)
53
- rubocop (~> 0.20)
54
- hashie (3.4.1)
55
- highline (1.7.2)
56
- hitimes (1.2.2)
57
- jeweler (2.0.1)
58
- builder
59
- bundler (>= 1.0)
60
- git (>= 1.2.5)
61
- github_api
62
- highline (>= 1.6.15)
63
- nokogiri (>= 1.5.10)
64
- rake
65
- rdoc
66
- json (1.8.2)
67
- jwt (1.5.0)
68
- listen (2.10.0)
69
- celluloid (~> 0.16.0)
70
- rb-fsevent (>= 0.9.3)
71
- rb-inotify (>= 0.9)
72
- lumberjack (1.0.9)
73
- method_source (0.8.2)
74
- mini_portile (0.6.2)
75
- multi_json (1.11.0)
76
- multi_xml (0.5.5)
77
- multipart-post (2.0.0)
78
- nenv (0.2.0)
79
- net-scp (1.2.1)
80
- net-ssh (>= 2.6.5)
81
- net-sftp (2.1.2)
82
- net-ssh (>= 2.6.5)
83
- net-ssh (2.9.2)
84
- net-ssh-gateway (1.2.0)
85
- net-ssh (>= 2.6.5)
86
- nokogiri (1.6.6.2)
87
- mini_portile (~> 0.6.0)
88
- notiffany (0.0.6)
89
- nenv (~> 0.1)
90
- shellany (~> 0.0)
91
- oauth2 (1.0.0)
92
- faraday (>= 0.8, < 0.10)
93
- jwt (~> 1.0)
94
- multi_json (~> 1.3)
95
- multi_xml (~> 0.5)
96
- rack (~> 1.2)
97
- parser (2.2.2.2)
98
- ast (>= 1.1, < 3.0)
99
- powerpack (0.1.1)
100
- pry (0.10.1)
101
- coderay (~> 1.1.0)
102
- method_source (~> 0.8.1)
103
- slop (~> 3.4)
104
- rack (1.6.1)
105
- rainbow (2.0.0)
106
- rake (10.4.2)
107
- rb-fsevent (0.9.4)
108
- rb-inotify (0.9.5)
109
- ffi (>= 0.5.0)
110
- rdoc (3.12.2)
111
- json (~> 1.4)
112
- rspec (3.2.0)
113
- rspec-core (~> 3.2.0)
114
- rspec-expectations (~> 3.2.0)
115
- rspec-mocks (~> 3.2.0)
116
- rspec-core (3.2.3)
117
- rspec-support (~> 3.2.0)
118
- rspec-expectations (3.2.1)
119
- diff-lcs (>= 1.2.0, < 2.0)
120
- rspec-support (~> 3.2.0)
121
- rspec-mocks (3.2.1)
122
- diff-lcs (>= 1.2.0, < 2.0)
123
- rspec-support (~> 3.2.0)
124
- rspec-support (3.2.2)
125
- rubocop (0.31.0)
126
- astrolabe (~> 1.3)
127
- parser (>= 2.2.2.1, < 3.0)
128
- powerpack (~> 0.1)
129
- rainbow (>= 1.99.1, < 3.0)
130
- ruby-progressbar (~> 1.4)
131
- ruby-progressbar (1.7.5)
132
- safe_yaml (1.0.4)
133
- shellany (0.0.1)
134
- simplecov (0.10.0)
135
- docile (~> 1.1.0)
136
- json (~> 1.8)
137
- simplecov-html (~> 0.10.0)
138
- simplecov-html (0.10.0)
139
- slop (3.6.0)
140
- thor (0.19.1)
141
- thread_safe (0.3.5)
142
- timers (4.0.1)
143
- hitimes
144
- vcr (2.9.3)
145
- webmock (1.21.0)
146
- addressable (>= 2.3.6)
147
- crack (>= 0.3.2)
148
- yard (0.8.7.6)
149
- zabbixapi (2.4.6)
150
- json (~> 1.6, >= 1.6.0)
151
-
152
- PLATFORMS
153
- ruby
154
-
155
- DEPENDENCIES
156
- bundler (~> 1.0)
157
- capistrano (~> 2.0)
158
- guard (~> 2.12)
159
- guard-rspec (~> 4.5)
160
- guard-rubocop (~> 1.2)
161
- jeweler (~> 2.0)
162
- pry (~> 0.10)
163
- rdoc (~> 3.12)
164
- rspec (~> 3.2)
165
- simplecov (~> 0.10)
166
- vcr (~> 2.9)
167
- webmock (~> 1.21)
168
- yard (~> 0.7)
169
- zabbixapi (>= 2.4.0, < 2.5.0)