topological_inventory-providers-common 1.0.2 → 1.0.7

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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/gem-push.yml +49 -0
  3. data/.gitignore +3 -0
  4. data/.rubocop.yml +3 -0
  5. data/.rubocop_cc.yml +4 -0
  6. data/.rubocop_local.yml +2 -0
  7. data/.travis.yml +8 -0
  8. data/CHANGELOG.md +29 -1
  9. data/Gemfile +0 -3
  10. data/lib/topological_inventory/providers/common/logging.rb +8 -0
  11. data/lib/topological_inventory/providers/common/operations/endpoint_client.rb +3 -0
  12. data/lib/topological_inventory/providers/common/operations/source.rb +191 -0
  13. data/lib/topological_inventory/providers/common/operations/sources_api_client.rb +15 -6
  14. data/lib/topological_inventory/providers/common/save_inventory/saver.rb +13 -4
  15. data/lib/topological_inventory/providers/common/version.rb +1 -1
  16. data/spec/spec_helper.rb +22 -0
  17. data/spec/support/inventory_helper.rb +14 -0
  18. data/spec/support/shared/availability_check.rb +236 -0
  19. data/spec/topological_inventory/providers/common/collector_spec.rb +171 -0
  20. data/spec/topological_inventory/providers/common/collectors/inventory_collection_storage_spec.rb +44 -0
  21. data/spec/topological_inventory/providers/common/collectors/inventory_collection_wrapper_spec.rb +9 -0
  22. data/spec/topological_inventory/providers/common/collectors_pool_spec.rb +150 -0
  23. data/spec/topological_inventory/providers/common/logger_spec.rb +38 -0
  24. data/spec/topological_inventory/providers/common/operations/processor_spec.rb +102 -0
  25. data/spec/topological_inventory/providers/common/operations/source_spec.rb +5 -0
  26. data/spec/topological_inventory/providers/common/save_inventory/saver_spec.rb +65 -0
  27. data/spec/topological_inventory/providers/common_spec.rb +3 -0
  28. data/topological_inventory-providers-common.gemspec +7 -1
  29. metadata +104 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: topological_inventory-providers-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Slemr
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,6 +72,20 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: 0.4.2
75
+ - !ruby/object:Gem::Dependency
76
+ name: sources-api-client
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.0'
75
89
  - !ruby/object:Gem::Dependency
76
90
  name: topological_inventory-api-client
77
91
  requirement: !ruby/object:Gem::Requirement
@@ -92,6 +106,20 @@ dependencies:
92
106
  - - ">="
93
107
  - !ruby/object:Gem::Version
94
108
  version: 3.0.1
109
+ - !ruby/object:Gem::Dependency
110
+ name: topological_inventory-ingress_api-client
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.0'
116
+ type: :runtime
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.0'
95
123
  - !ruby/object:Gem::Dependency
96
124
  name: bundler
97
125
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +162,62 @@ dependencies:
134
162
  - - "~>"
135
163
  - !ruby/object:Gem::Version
136
164
  version: '3.0'
165
+ - !ruby/object:Gem::Dependency
166
+ name: rubocop
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: 0.69.0
172
+ type: :development
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - "~>"
177
+ - !ruby/object:Gem::Version
178
+ version: 0.69.0
179
+ - !ruby/object:Gem::Dependency
180
+ name: rubocop-performance
181
+ requirement: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: '1.3'
186
+ type: :development
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: '1.3'
193
+ - !ruby/object:Gem::Dependency
194
+ name: simplecov
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: 0.17.1
200
+ type: :development
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - "~>"
205
+ - !ruby/object:Gem::Version
206
+ version: 0.17.1
207
+ - !ruby/object:Gem::Dependency
208
+ name: webmock
209
+ requirement: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
137
221
  description: Common classes for topological-inventory collectors/operations
138
222
  email:
139
223
  - mslemr@redhat.com
@@ -141,8 +225,12 @@ executables: []
141
225
  extensions: []
142
226
  extra_rdoc_files: []
143
227
  files:
228
+ - ".github/workflows/gem-push.yml"
144
229
  - ".gitignore"
145
230
  - ".rspec"
231
+ - ".rubocop.yml"
232
+ - ".rubocop_cc.yml"
233
+ - ".rubocop_local.yml"
146
234
  - ".travis.yml"
147
235
  - CHANGELOG.md
148
236
  - Gemfile
@@ -160,11 +248,24 @@ files:
160
248
  - lib/topological_inventory/providers/common/logging.rb
161
249
  - lib/topological_inventory/providers/common/operations/endpoint_client.rb
162
250
  - lib/topological_inventory/providers/common/operations/processor.rb
251
+ - lib/topological_inventory/providers/common/operations/source.rb
163
252
  - lib/topological_inventory/providers/common/operations/sources_api_client.rb
164
253
  - lib/topological_inventory/providers/common/operations/topology_api_client.rb
165
254
  - lib/topological_inventory/providers/common/save_inventory/exception.rb
166
255
  - lib/topological_inventory/providers/common/save_inventory/saver.rb
167
256
  - lib/topological_inventory/providers/common/version.rb
257
+ - spec/spec_helper.rb
258
+ - spec/support/inventory_helper.rb
259
+ - spec/support/shared/availability_check.rb
260
+ - spec/topological_inventory/providers/common/collector_spec.rb
261
+ - spec/topological_inventory/providers/common/collectors/inventory_collection_storage_spec.rb
262
+ - spec/topological_inventory/providers/common/collectors/inventory_collection_wrapper_spec.rb
263
+ - spec/topological_inventory/providers/common/collectors_pool_spec.rb
264
+ - spec/topological_inventory/providers/common/logger_spec.rb
265
+ - spec/topological_inventory/providers/common/operations/processor_spec.rb
266
+ - spec/topological_inventory/providers/common/operations/source_spec.rb
267
+ - spec/topological_inventory/providers/common/save_inventory/saver_spec.rb
268
+ - spec/topological_inventory/providers/common_spec.rb
168
269
  - topological_inventory-providers-common.gemspec
169
270
  homepage: https://github.com/RedHatInsights/topological_inventory-providers-common
170
271
  licenses:
@@ -185,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
286
  - !ruby/object:Gem::Version
186
287
  version: '0'
187
288
  requirements: []
188
- rubygems_version: 3.0.8
289
+ rubygems_version: 3.0.3
189
290
  signing_key:
190
291
  specification_version: 4
191
292
  summary: Common classes for topological-inventory collectors/operations