wss_agent 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +201 -0
  7. data/README.md +73 -0
  8. data/Rakefile +10 -0
  9. data/bin/wss_agent +13 -0
  10. data/lib/config/custom_default.yml +5 -0
  11. data/lib/config/default.yml +11 -0
  12. data/lib/wss_agent/cli.rb +49 -0
  13. data/lib/wss_agent/client.rb +59 -0
  14. data/lib/wss_agent/configure.rb +90 -0
  15. data/lib/wss_agent/gem_sha1.rb +76 -0
  16. data/lib/wss_agent/project.rb +45 -0
  17. data/lib/wss_agent/response.rb +57 -0
  18. data/lib/wss_agent/response_inventory.rb +28 -0
  19. data/lib/wss_agent/response_policies.rb +76 -0
  20. data/lib/wss_agent/specifications.rb +150 -0
  21. data/lib/wss_agent/version.rb +4 -0
  22. data/lib/wss_agent.rb +40 -0
  23. data/spec/fixtures/vcr_cassettes/WssAgent_CLI/update/when_not_found_token/should_display_error_message.yml +2984 -0
  24. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/response_should_be_success.yml +2984 -0
  25. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_response_json_data.yml +2984 -0
  26. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_message_response.yml +2984 -0
  27. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_status_of_response.yml +2984 -0
  28. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/response_should_be_success.yml +2984 -0
  29. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_response_json_data.yml +2984 -0
  30. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_message_response.yml +2984 -0
  31. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_status_of_response.yml +2984 -0
  32. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/response_should_be_success.yml +2984 -0
  33. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_response_json_data.yml +2984 -0
  34. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_message_response.yml +2984 -0
  35. data/spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_status_of_response.yml +2984 -0
  36. data/spec/fixtures/vcr_cassettes/WssAgent_Specifications/_check_policies/should_check_policies.yml +50 -0
  37. data/spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/should_update_list_gems_on_server.yml +50 -0
  38. data/spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_return_a_violation/should_not_update_inventory.yml +2984 -0
  39. data/spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_returns_without_a_violation/should_update_inventory.yml +2984 -0
  40. data/spec/fixtures/wss_agent.yml +9 -0
  41. data/spec/spec_helper.rb +35 -0
  42. data/spec/wss_agent/cli_spec.rb +57 -0
  43. data/spec/wss_agent/client_spec.rb +137 -0
  44. data/spec/wss_agent/configure_spec.rb +148 -0
  45. data/spec/wss_agent/specifications_spec.rb +137 -0
  46. data/wss_agent.gemspec +38 -0
  47. metadata +390 -0
metadata ADDED
@@ -0,0 +1,390 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wss_agent
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.15
5
+ platform: ruby
6
+ authors:
7
+ - Maxim Pechnikov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.7'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.10'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.10.1
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0.10'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.10.1
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.1'
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 3.1.0
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '3.1'
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 3.1.0
81
+ - !ruby/object:Gem::Dependency
82
+ name: webmock
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.20'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 1.20.4
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.20'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 1.20.4
101
+ - !ruby/object:Gem::Dependency
102
+ name: timecop
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '0.7'
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 0.7.1
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.7'
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 0.7.1
121
+ - !ruby/object:Gem::Dependency
122
+ name: yard
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: '0.8'
128
+ type: :development
129
+ prerelease: false
130
+ version_requirements: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '0.8'
135
+ - !ruby/object:Gem::Dependency
136
+ name: vcr
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '2.9'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 2.9.3
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '2.9'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 2.9.3
155
+ - !ruby/object:Gem::Dependency
156
+ name: thor
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '0.19'
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: 0.19.1
165
+ type: :runtime
166
+ prerelease: false
167
+ version_requirements: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '0.19'
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: 0.19.1
175
+ - !ruby/object:Gem::Dependency
176
+ name: yell
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '2.0'
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: 2.0.5
185
+ type: :runtime
186
+ prerelease: false
187
+ version_requirements: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: '2.0'
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 2.0.5
195
+ - !ruby/object:Gem::Dependency
196
+ name: excon
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.42.1
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.42.1
209
+ - !ruby/object:Gem::Dependency
210
+ name: faraday
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '0.9'
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: 0.9.1
219
+ type: :runtime
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - "~>"
224
+ - !ruby/object:Gem::Version
225
+ version: '0.9'
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: 0.9.1
229
+ - !ruby/object:Gem::Dependency
230
+ name: faraday_middleware
231
+ requirement: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '0.9'
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: 0.9.1
239
+ type: :runtime
240
+ prerelease: false
241
+ version_requirements: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - "~>"
244
+ - !ruby/object:Gem::Version
245
+ version: '0.9'
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: 0.9.1
249
+ - !ruby/object:Gem::Dependency
250
+ name: awesome_print
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - "~>"
254
+ - !ruby/object:Gem::Version
255
+ version: '1.6'
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: 1.6.0
259
+ type: :runtime
260
+ prerelease: false
261
+ version_requirements: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - "~>"
264
+ - !ruby/object:Gem::Version
265
+ version: '1.6'
266
+ - - ">="
267
+ - !ruby/object:Gem::Version
268
+ version: 1.6.0
269
+ - !ruby/object:Gem::Dependency
270
+ name: oj
271
+ requirement: !ruby/object:Gem::Requirement
272
+ requirements:
273
+ - - "~>"
274
+ - !ruby/object:Gem::Version
275
+ version: '2.11'
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: 2.11.2
279
+ type: :runtime
280
+ prerelease: false
281
+ version_requirements: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: '2.11'
286
+ - - ">="
287
+ - !ruby/object:Gem::Version
288
+ version: 2.11.2
289
+ description: White Source agent to sync gems
290
+ email:
291
+ - parallel588@gmail.com
292
+ executables:
293
+ - wss_agent
294
+ extensions: []
295
+ extra_rdoc_files: []
296
+ files:
297
+ - ".gitignore"
298
+ - ".rspec"
299
+ - ".travis.yml"
300
+ - Gemfile
301
+ - LICENSE.txt
302
+ - README.md
303
+ - Rakefile
304
+ - bin/wss_agent
305
+ - lib/config/custom_default.yml
306
+ - lib/config/default.yml
307
+ - lib/wss_agent.rb
308
+ - lib/wss_agent/cli.rb
309
+ - lib/wss_agent/client.rb
310
+ - lib/wss_agent/configure.rb
311
+ - lib/wss_agent/gem_sha1.rb
312
+ - lib/wss_agent/project.rb
313
+ - lib/wss_agent/response.rb
314
+ - lib/wss_agent/response_inventory.rb
315
+ - lib/wss_agent/response_policies.rb
316
+ - lib/wss_agent/specifications.rb
317
+ - lib/wss_agent/version.rb
318
+ - spec/fixtures/vcr_cassettes/WssAgent_CLI/update/when_not_found_token/should_display_error_message.yml
319
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/response_should_be_success.yml
320
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_response_json_data.yml
321
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_message_response.yml
322
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_status_of_response.yml
323
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/response_should_be_success.yml
324
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_response_json_data.yml
325
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_message_response.yml
326
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_status_of_response.yml
327
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/response_should_be_success.yml
328
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_response_json_data.yml
329
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_message_response.yml
330
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_status_of_response.yml
331
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_check_policies/should_check_policies.yml
332
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/should_update_list_gems_on_server.yml
333
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_return_a_violation/should_not_update_inventory.yml
334
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_returns_without_a_violation/should_update_inventory.yml
335
+ - spec/fixtures/wss_agent.yml
336
+ - spec/spec_helper.rb
337
+ - spec/wss_agent/cli_spec.rb
338
+ - spec/wss_agent/client_spec.rb
339
+ - spec/wss_agent/configure_spec.rb
340
+ - spec/wss_agent/specifications_spec.rb
341
+ - wss_agent.gemspec
342
+ homepage: https://github.com/whitesource/ruby-plugin
343
+ licenses:
344
+ - Apache License 2.0
345
+ metadata: {}
346
+ post_install_message:
347
+ rdoc_options: []
348
+ require_paths:
349
+ - lib
350
+ required_ruby_version: !ruby/object:Gem::Requirement
351
+ requirements:
352
+ - - ">="
353
+ - !ruby/object:Gem::Version
354
+ version: '0'
355
+ required_rubygems_version: !ruby/object:Gem::Requirement
356
+ requirements:
357
+ - - ">="
358
+ - !ruby/object:Gem::Version
359
+ version: '0'
360
+ requirements: []
361
+ rubyforge_project:
362
+ rubygems_version: 2.4.5
363
+ signing_key:
364
+ specification_version: 4
365
+ summary: White Source agent.
366
+ test_files:
367
+ - spec/fixtures/vcr_cassettes/WssAgent_CLI/update/when_not_found_token/should_display_error_message.yml
368
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/response_should_be_success.yml
369
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_response_json_data.yml
370
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_message_response.yml
371
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_error/should_return_status_of_response.yml
372
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/response_should_be_success.yml
373
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_response_json_data.yml
374
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_message_response.yml
375
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/server_timeout/should_return_status_of_response.yml
376
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/response_should_be_success.yml
377
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_response_json_data.yml
378
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_message_response.yml
379
+ - spec/fixtures/vcr_cassettes/WssAgent_Client/_update/success/should_return_status_of_response.yml
380
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_check_policies/should_check_policies.yml
381
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/should_update_list_gems_on_server.yml
382
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_return_a_violation/should_not_update_inventory.yml
383
+ - spec/fixtures/vcr_cassettes/WssAgent_Specifications/_update/when_check_policies_is_true/and_check_policies_returns_without_a_violation/should_update_inventory.yml
384
+ - spec/fixtures/wss_agent.yml
385
+ - spec/spec_helper.rb
386
+ - spec/wss_agent/cli_spec.rb
387
+ - spec/wss_agent/client_spec.rb
388
+ - spec/wss_agent/configure_spec.rb
389
+ - spec/wss_agent/specifications_spec.rb
390
+ has_rdoc: