zabbix_manager 5.0.9 → 5.1.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
  SHA256:
3
- metadata.gz: af7ff849a0ec2572c10d2e6eb1a8ce94df38c6e716298fa15538d273297a3c35
4
- data.tar.gz: 8f4e57119f3cb0ac456dbf080ac67e3714ad0b284ee987e8928ba617e3f8f22d
3
+ metadata.gz: 1b6d365a03157b9a76cfb41caeaacef8a27e030a358b5b21e4fc65156de9f5e0
4
+ data.tar.gz: 72ca3a28bfa6833545670193d6f4898a49ccdf040cdc9c61ff1c283164ce23e8
5
5
  SHA512:
6
- metadata.gz: deb4da81d4d1c569e5a6104b04247fbccee040cdd5d18b12a019386b2223452aadc6074a73c6ae51058205221b922fd1f4f2d9d8768f44e7443093d17152d265
7
- data.tar.gz: 986ad45b15688e1913ab5861c85b5104608efbe6be1aaf3c0a9a6607c7eeb8450eeec969c37492d1f1c0345fdd8bd1097c37909cf402bc088002cba01488a77f
6
+ metadata.gz: f4bee7468445d37efbb38a5988eb11c833295e12574bd6b91d7c310d1e159292e932907eb2c2ba01a68a221507f3380c380ed981c39d41c189b609fd51873a69
7
+ data.tar.gz: 8470d3bdb4b3d1dfca93f67cc973972c1389139d93727285fe6f479f82d71c4f5d6ca62d56e3e73b96399b2b2c360665abfa2c51d97031a2792d4cfa6af05272
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at TODO: Write your email address. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ZabbixManager
4
- VERSION = "5.0.9"
4
+ VERSION = "5.1.0"
5
5
  end
@@ -8,18 +8,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8
8
  require "zabbix_manager/version"
9
9
 
10
10
  Gem::Specification.new do |spec|
11
- spec.add_dependency "http", "~> 4.0"
12
- spec.add_dependency "json", "~> 2.0"
13
- spec.add_development_dependency "bundler", "~> 2.3", ">= 2.3.9"
11
+ spec.add_dependency "http", ">= 4.0.0"
12
+ spec.add_dependency "json", ">= 2.0"
13
+ spec.add_development_dependency "bundler", ">= 2.0"
14
14
 
15
15
  spec.add_development_dependency "rspec", "~> 3.11"
16
16
  spec.add_development_dependency "yard", "~> 0.9.27"
17
- spec.add_development_dependency "yardstick", "~> 0.9.9"
18
- spec.add_development_dependency "rubocop", "~> 1.25", ">= 1.25.1"
19
- spec.add_development_dependency "rubocop-minitest", "~> 0.18.0"
20
- spec.add_development_dependency "rubocop-performance", "~> 1.13"
21
- spec.add_development_dependency "rubocop-rails", "~> 2.13", ">= 2.13.2"
22
- spec.add_development_dependency "rubocop-packaging", "~> 0.5.1"
17
+ spec.add_development_dependency "yardstick", ">= 0.9.9"
23
18
 
24
19
  spec.name = "zabbix_manager"
25
20
  spec.version = ZabbixManager::VERSION
@@ -27,17 +22,17 @@ Gem::Specification.new do |spec|
27
22
  spec.email = ["careline@foxmail.com"]
28
23
 
29
24
  spec.summary = "Simple and lightweight ruby module for working with the Zabbix API, support 4.0 5.0 6.0"
30
- spec.description = "Most codes borrowed from ZabbixApi, But changed some logic for everyday jobs."
25
+ spec.description = "Most codes borrowed from ZabbixApi, But changed some logic for everyday jobs. Support Zabbix 4.0 5.0 6.0"
31
26
  spec.homepage = "https://github.com/snmpd/zabbix_manager"
32
27
  spec.licenses = "MIT"
33
28
 
34
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
29
+ # spec.metadata["allowed_push_host"] = "https://rubygems.org"
35
30
 
36
31
  spec.metadata["homepage_uri"] = spec.homepage
37
32
  spec.metadata["source_code_uri"] = "https://github.com/snmpd/zabbix_manager"
38
33
  spec.metadata["changelog_uri"] = "https://github.com/snmpd/zabbix_manager"
39
34
 
40
- spec.files = %w[CHANGELOG.md LICENSE.txt README.md zabbix_manager.gemspec] + Dir["lib/**/*.rb"]
35
+ spec.files = %w[CHANGELOG.md LICENSE.txt CODE_OF_CONDUCT.md README.md zabbix_manager.gemspec] + Dir["lib/**/*.rb"]
41
36
  spec.require_paths = "lib"
42
37
  spec.required_ruby_version = ">= 2.7.0"
43
38
  end
metadata CHANGED
@@ -1,63 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.9
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - WENWU YAN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '2.3'
48
45
  - - ">="
49
46
  - !ruby/object:Gem::Version
50
- version: 2.3.9
47
+ version: '2.0'
51
48
  type: :development
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
- - - "~>"
56
- - !ruby/object:Gem::Version
57
- version: '2.3'
58
52
  - - ">="
59
53
  - !ruby/object:Gem::Version
60
- version: 2.3.9
54
+ version: '2.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: rspec
63
57
  requirement: !ruby/object:Gem::Requirement
@@ -90,100 +84,18 @@ dependencies:
90
84
  name: yardstick
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: 0.9.9
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: 0.9.9
103
- - !ruby/object:Gem::Dependency
104
- name: rubocop
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.25'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.25.1
113
- type: :development
114
- prerelease: false
115
- version_requirements: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '1.25'
120
87
  - - ">="
121
88
  - !ruby/object:Gem::Version
122
- version: 1.25.1
123
- - !ruby/object:Gem::Dependency
124
- name: rubocop-minitest
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: 0.18.0
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - "~>"
135
- - !ruby/object:Gem::Version
136
- version: 0.18.0
137
- - !ruby/object:Gem::Dependency
138
- name: rubocop-performance
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '1.13'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '1.13'
151
- - !ruby/object:Gem::Dependency
152
- name: rubocop-rails
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '2.13'
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: 2.13.2
89
+ version: 0.9.9
161
90
  type: :development
162
91
  prerelease: false
163
92
  version_requirements: !ruby/object:Gem::Requirement
164
93
  requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: '2.13'
168
94
  - - ">="
169
95
  - !ruby/object:Gem::Version
170
- version: 2.13.2
171
- - !ruby/object:Gem::Dependency
172
- name: rubocop-packaging
173
- requirement: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - "~>"
176
- - !ruby/object:Gem::Version
177
- version: 0.5.1
178
- type: :development
179
- prerelease: false
180
- version_requirements: !ruby/object:Gem::Requirement
181
- requirements:
182
- - - "~>"
183
- - !ruby/object:Gem::Version
184
- version: 0.5.1
96
+ version: 0.9.9
185
97
  description: Most codes borrowed from ZabbixApi, But changed some logic for everyday
186
- jobs.
98
+ jobs. Support Zabbix 4.0 5.0 6.0
187
99
  email:
188
100
  - careline@foxmail.com
189
101
  executables: []
@@ -191,6 +103,7 @@ extensions: []
191
103
  extra_rdoc_files: []
192
104
  files:
193
105
  - CHANGELOG.md
106
+ - CODE_OF_CONDUCT.md
194
107
  - LICENSE.txt
195
108
  - README.md
196
109
  - lib/zabbix_manager.rb
@@ -232,7 +145,6 @@ homepage: https://github.com/snmpd/zabbix_manager
232
145
  licenses:
233
146
  - MIT
234
147
  metadata:
235
- allowed_push_host: https://rubygems.org
236
148
  homepage_uri: https://github.com/snmpd/zabbix_manager
237
149
  source_code_uri: https://github.com/snmpd/zabbix_manager
238
150
  changelog_uri: https://github.com/snmpd/zabbix_manager