razorrisk-cassini-common 0.26.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +22 -0
  3. data/LICENSE +5 -0
  4. data/README.md +2 -0
  5. data/Rakefile +102 -0
  6. data/lib/razor_risk/cassini/applications/microservice.rb +318 -0
  7. data/lib/razor_risk/cassini/applications/rest_framework/route_verb_dispatcher.rb +120 -0
  8. data/lib/razor_risk/cassini/applications/rest_framework/verb_handler.rb +117 -0
  9. data/lib/razor_risk/cassini/applications/route_verb_adaptors/utilities/collection_get_helper.rb +86 -0
  10. data/lib/razor_risk/cassini/applications/securable_microservice.rb +164 -0
  11. data/lib/razor_risk/cassini/applications/secured_microservice.rb +63 -0
  12. data/lib/razor_risk/cassini/applications/unsecured_microservice.rb +77 -0
  13. data/lib/razor_risk/cassini/authorisation/header_helpers.rb +271 -0
  14. data/lib/razor_risk/cassini/authorisation/security_model_helpers.rb +93 -0
  15. data/lib/razor_risk/cassini/authorisation.rb +27 -0
  16. data/lib/razor_risk/cassini/cli.rb +19 -0
  17. data/lib/razor_risk/cassini/common/version.rb +44 -0
  18. data/lib/razor_risk/cassini/common.rb +32 -0
  19. data/lib/razor_risk/cassini/constants.rb +68 -0
  20. data/lib/razor_risk/cassini/diagnostics/util_functions.rb +248 -0
  21. data/lib/razor_risk/cassini/diagnostics/zeroth_include.rb +35 -0
  22. data/lib/razor_risk/cassini/extensions/libclimate/common_options.rb +267 -0
  23. data/lib/razor_risk/cassini/extensions/libclimate.rb +26 -0
  24. data/lib/razor_risk/cassini/header_functions.rb +59 -0
  25. data/lib/razor_risk/cassini/main.rb +238 -0
  26. data/lib/razor_risk/cassini/mixin/razor_response_validator.rb +176 -0
  27. data/lib/razor_risk/cassini/testing/suppress_pantheios_logging.rb +31 -0
  28. data/lib/razor_risk/cassini/util/conversion_util.rb +176 -0
  29. data/lib/razor_risk/cassini/util/program_execution_util.rb +379 -0
  30. data/lib/razor_risk/cassini/util/secrets_util.rb +229 -0
  31. data/lib/razor_risk/cassini/util/version_util.rb +88 -0
  32. data/lib/razor_risk/sinatra/helpers/check_auth_helper.rb +209 -0
  33. data/lib/razor_risk/sinatra/helpers/validate_accept_helper.rb +69 -0
  34. data/lib/razor_risk/sinatra/helpers/validate_content_type_helper.rb +74 -0
  35. data/lib/razor_risk/sinatra/helpers/validate_query_parameters_helper.rb +198 -0
  36. data/test/scratch/cassini/util/convert_XML.rb +54 -0
  37. data/test/unit/applications/route_verb_adaptors/utilities/tc_collection_get_helper.rb +236 -0
  38. data/test/unit/applications/tc_verb_handler.rb +130 -0
  39. data/test/unit/mixin/tc_razor_response_validator.rb +328 -0
  40. data/test/unit/sinatra/helpers/tc_validate_query_parameters_helper.rb +134 -0
  41. data/test/unit/tc_authorisation_util.rb +265 -0
  42. data/test/unit/tc_load_secrets.rb +95 -0
  43. data/test/unit/util/tc_conversion_util.rb +393 -0
  44. data/test/unit/util/tc_program_execution_util.rb +462 -0
  45. metadata +380 -0
metadata ADDED
@@ -0,0 +1,380 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: razorrisk-cassini-common
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.26.24
5
+ platform: ruby
6
+ authors:
7
+ - Razor Risk
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: razorrisk-razor-connectivity
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.10.1
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.10.1
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: razorrisk-core-baseutilities
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.3'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.3'
47
+ - !ruby/object:Gem::Dependency
48
+ name: razorrisk-core-cryptography
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '0.2'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.2.2
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '0.2'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.2.2
67
+ - !ruby/object:Gem::Dependency
68
+ name: razorrisk-core-diagnostics
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '0.2'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '0.2'
81
+ - !ruby/object:Gem::Dependency
82
+ name: razorrisk-core-diagnostics-extensions
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '0.2'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '0.2'
95
+ - !ruby/object:Gem::Dependency
96
+ name: razorrisk-core-system
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.1'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '0.1'
109
+ - !ruby/object:Gem::Dependency
110
+ name: razorrisk-core-webservices
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 0.2.7
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '1.0'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 0.2.7
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '1.0'
129
+ - !ruby/object:Gem::Dependency
130
+ name: activesupport
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '4.0'
136
+ type: :runtime
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '4.0'
143
+ - !ruby/object:Gem::Dependency
144
+ name: clasp-ruby
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '0.14'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '0.14'
157
+ - !ruby/object:Gem::Dependency
158
+ name: highline
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '1.7'
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 1.7.10
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.7'
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: 1.7.10
177
+ - !ruby/object:Gem::Dependency
178
+ name: json
179
+ requirement: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '1.8'
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: 1.8.3
187
+ type: :runtime
188
+ prerelease: false
189
+ version_requirements: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '1.8'
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ version: 1.8.3
197
+ - !ruby/object:Gem::Dependency
198
+ name: jwt
199
+ requirement: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - "~>"
202
+ - !ruby/object:Gem::Version
203
+ version: '1.5'
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: 1.5.6
207
+ type: :runtime
208
+ prerelease: false
209
+ version_requirements: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - "~>"
212
+ - !ruby/object:Gem::Version
213
+ version: '1.5'
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: 1.5.6
217
+ - !ruby/object:Gem::Dependency
218
+ name: libclimate-ruby
219
+ requirement: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: '0.10'
224
+ type: :runtime
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '0.10'
231
+ - !ruby/object:Gem::Dependency
232
+ name: nokogiri
233
+ requirement: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '1.6'
238
+ type: :runtime
239
+ prerelease: false
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '1.6'
245
+ - !ruby/object:Gem::Dependency
246
+ name: pantheios-ruby
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: 0.20.2
252
+ type: :runtime
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: 0.20.2
259
+ - !ruby/object:Gem::Dependency
260
+ name: sinatra
261
+ requirement: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - "~>"
264
+ - !ruby/object:Gem::Version
265
+ version: '1.4'
266
+ - - ">="
267
+ - !ruby/object:Gem::Version
268
+ version: 1.4.8
269
+ type: :runtime
270
+ prerelease: false
271
+ version_requirements: !ruby/object:Gem::Requirement
272
+ requirements:
273
+ - - "~>"
274
+ - !ruby/object:Gem::Version
275
+ version: '1.4'
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: 1.4.8
279
+ - !ruby/object:Gem::Dependency
280
+ name: thin
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - "~>"
284
+ - !ruby/object:Gem::Version
285
+ version: '1.7'
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - "~>"
291
+ - !ruby/object:Gem::Version
292
+ version: '1.7'
293
+ - !ruby/object:Gem::Dependency
294
+ name: xqsr3
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '0.30'
300
+ type: :runtime
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: '0.30'
307
+ description: Cassini Web Service framework for Razor Risk Razor system
308
+ email: opterations@razor-risk.com
309
+ executables: []
310
+ extensions: []
311
+ extra_rdoc_files: []
312
+ files:
313
+ - CHANGELOG.md
314
+ - LICENSE
315
+ - README.md
316
+ - Rakefile
317
+ - lib/razor_risk/cassini/applications/microservice.rb
318
+ - lib/razor_risk/cassini/applications/rest_framework/route_verb_dispatcher.rb
319
+ - lib/razor_risk/cassini/applications/rest_framework/verb_handler.rb
320
+ - lib/razor_risk/cassini/applications/route_verb_adaptors/utilities/collection_get_helper.rb
321
+ - lib/razor_risk/cassini/applications/securable_microservice.rb
322
+ - lib/razor_risk/cassini/applications/secured_microservice.rb
323
+ - lib/razor_risk/cassini/applications/unsecured_microservice.rb
324
+ - lib/razor_risk/cassini/authorisation.rb
325
+ - lib/razor_risk/cassini/authorisation/header_helpers.rb
326
+ - lib/razor_risk/cassini/authorisation/security_model_helpers.rb
327
+ - lib/razor_risk/cassini/cli.rb
328
+ - lib/razor_risk/cassini/common.rb
329
+ - lib/razor_risk/cassini/common/version.rb
330
+ - lib/razor_risk/cassini/constants.rb
331
+ - lib/razor_risk/cassini/diagnostics/util_functions.rb
332
+ - lib/razor_risk/cassini/diagnostics/zeroth_include.rb
333
+ - lib/razor_risk/cassini/extensions/libclimate.rb
334
+ - lib/razor_risk/cassini/extensions/libclimate/common_options.rb
335
+ - lib/razor_risk/cassini/header_functions.rb
336
+ - lib/razor_risk/cassini/main.rb
337
+ - lib/razor_risk/cassini/mixin/razor_response_validator.rb
338
+ - lib/razor_risk/cassini/testing/suppress_pantheios_logging.rb
339
+ - lib/razor_risk/cassini/util/conversion_util.rb
340
+ - lib/razor_risk/cassini/util/program_execution_util.rb
341
+ - lib/razor_risk/cassini/util/secrets_util.rb
342
+ - lib/razor_risk/cassini/util/version_util.rb
343
+ - lib/razor_risk/sinatra/helpers/check_auth_helper.rb
344
+ - lib/razor_risk/sinatra/helpers/validate_accept_helper.rb
345
+ - lib/razor_risk/sinatra/helpers/validate_content_type_helper.rb
346
+ - lib/razor_risk/sinatra/helpers/validate_query_parameters_helper.rb
347
+ - test/scratch/cassini/util/convert_XML.rb
348
+ - test/unit/applications/route_verb_adaptors/utilities/tc_collection_get_helper.rb
349
+ - test/unit/applications/tc_verb_handler.rb
350
+ - test/unit/mixin/tc_razor_response_validator.rb
351
+ - test/unit/sinatra/helpers/tc_validate_query_parameters_helper.rb
352
+ - test/unit/tc_authorisation_util.rb
353
+ - test/unit/tc_load_secrets.rb
354
+ - test/unit/util/tc_conversion_util.rb
355
+ - test/unit/util/tc_program_execution_util.rb
356
+ homepage: http://razor-risk.com/
357
+ licenses:
358
+ - Nonstandard
359
+ metadata: {}
360
+ post_install_message:
361
+ rdoc_options: []
362
+ require_paths:
363
+ - lib
364
+ required_ruby_version: !ruby/object:Gem::Requirement
365
+ requirements:
366
+ - - "~>"
367
+ - !ruby/object:Gem::Version
368
+ version: '2.0'
369
+ required_rubygems_version: !ruby/object:Gem::Requirement
370
+ requirements:
371
+ - - ">="
372
+ - !ruby/object:Gem::Version
373
+ version: '0'
374
+ requirements: []
375
+ rubyforge_project:
376
+ rubygems_version: 2.6.14
377
+ signing_key:
378
+ specification_version: 4
379
+ summary: Razor Risk Cassini Common library
380
+ test_files: []