singleton-ruby 0.0.2 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +17 -0
  3. data/README.md +3 -0
  4. data/Rakefile +140 -0
  5. data/lib/generators/sgtnclient/USAGE +3 -0
  6. data/lib/generators/sgtnclient/install_generator.rb +15 -0
  7. data/lib/generators/sgtnclient/templates/sgtnclient.rb +2 -0
  8. data/lib/generators/sgtnclient/templates/sgtnclient.yml +33 -0
  9. data/lib/sgtn-client/api/source.rb +64 -0
  10. data/lib/sgtn-client/api/translation.rb +83 -0
  11. data/lib/sgtn-client/cldr/core_ext.rb +3 -0
  12. data/lib/sgtn-client/cldr/localized_date.rb +27 -0
  13. data/lib/sgtn-client/cldr/localized_datetime.rb +33 -0
  14. data/lib/sgtn-client/cldr/localized_time.rb +27 -0
  15. data/lib/sgtn-client/core/cache.rb +83 -0
  16. data/lib/sgtn-client/core/config.rb +173 -0
  17. data/lib/sgtn-client/core/exceptions.rb +112 -0
  18. data/lib/sgtn-client/core/logging.rb +50 -0
  19. data/lib/sgtn-client/core/request.rb +17 -0
  20. data/lib/{sgtn-client.rb → sgtn-client/sgtn-client.rb} +29 -1
  21. data/lib/sgtn-client/util/cache-util.rb +35 -0
  22. data/lib/sgtn-client/util/validate-util.rb +44 -0
  23. data/lib/singleton-ruby.rb +2 -0
  24. data/lib/version.rb +3 -0
  25. data/spec/config/locales/default/JAVA/en.yml +2 -0
  26. data/spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_en.json +1 -0
  27. data/spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh_CN.json +11 -0
  28. data/spec/config/sgtnclient-invalidate.yml +48 -0
  29. data/spec/config/sgtnclient.yml +11 -2
  30. data/spec/spec_helper.rb +2 -1
  31. data/spec/unit/cache_spec.rb +35 -0
  32. data/spec/unit/config_spec.rb +1 -1
  33. data/spec/unit/datetime_spec.rb +43 -0
  34. data/spec/unit/inconfig_spec.rb +17 -0
  35. data/spec/unit/logging_spec.rb +2 -3
  36. data/spec/unit/offclient_spec.rb +15 -0
  37. data/spec/unit/restclient_spec.rb +10 -1
  38. metadata +50 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singleton-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - VMware G11n Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-21 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: twitter_cldr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '6.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '6.6'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: webmock
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -209,21 +223,48 @@ extensions: []
209
223
  extra_rdoc_files:
210
224
  - README.md
211
225
  files:
226
+ - Gemfile
212
227
  - README.md
213
- - lib/sgtn-client.rb
228
+ - Rakefile
229
+ - lib/generators/sgtnclient/USAGE
230
+ - lib/generators/sgtnclient/install_generator.rb
231
+ - lib/generators/sgtnclient/templates/sgtnclient.rb
232
+ - lib/generators/sgtnclient/templates/sgtnclient.yml
233
+ - lib/sgtn-client/api/source.rb
234
+ - lib/sgtn-client/api/translation.rb
235
+ - lib/sgtn-client/cldr/core_ext.rb
236
+ - lib/sgtn-client/cldr/localized_date.rb
237
+ - lib/sgtn-client/cldr/localized_datetime.rb
238
+ - lib/sgtn-client/cldr/localized_time.rb
239
+ - lib/sgtn-client/core/cache.rb
240
+ - lib/sgtn-client/core/config.rb
241
+ - lib/sgtn-client/core/exceptions.rb
242
+ - lib/sgtn-client/core/logging.rb
243
+ - lib/sgtn-client/core/request.rb
244
+ - lib/sgtn-client/sgtn-client.rb
245
+ - lib/sgtn-client/util/cache-util.rb
246
+ - lib/sgtn-client/util/validate-util.rb
247
+ - lib/singleton-ruby.rb
248
+ - lib/version.rb
249
+ - spec/config/locales/default/JAVA/en.yml
214
250
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_de.json
215
251
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_en.json
216
252
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_latest.json
217
253
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh-Hans.json
218
254
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh-Hant.json
255
+ - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh_CN.json
219
256
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/creation.json
220
257
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/version.json
221
258
  - spec/config/sample_data.yml
259
+ - spec/config/sgtnclient-invalidate.yml
222
260
  - spec/config/sgtnclient.yml
223
261
  - spec/log/http.log
224
262
  - spec/spec_helper.rb
225
263
  - spec/support/sample_data.rb
264
+ - spec/unit/cache_spec.rb
226
265
  - spec/unit/config_spec.rb
266
+ - spec/unit/datetime_spec.rb
267
+ - spec/unit/inconfig_spec.rb
227
268
  - spec/unit/logging_spec.rb
228
269
  - spec/unit/offclient_spec.rb
229
270
  - spec/unit/restclient_spec.rb
@@ -252,19 +293,25 @@ signing_key:
252
293
  specification_version: 4
253
294
  summary: Singleton client for Ruby.
254
295
  test_files:
296
+ - spec/config/locales/default/JAVA/en.yml
255
297
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_de.json
256
298
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_en.json
257
299
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_latest.json
258
300
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh-Hans.json
259
301
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh-Hant.json
302
+ - spec/config/locales/l10n/bundles/logInsight/4.8.1/JAVA/messages_zh_CN.json
260
303
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/creation.json
261
304
  - spec/config/locales/l10n/bundles/logInsight/4.8.1/version.json
262
305
  - spec/config/sample_data.yml
306
+ - spec/config/sgtnclient-invalidate.yml
263
307
  - spec/config/sgtnclient.yml
264
308
  - spec/log/http.log
265
309
  - spec/spec_helper.rb
266
310
  - spec/support/sample_data.rb
311
+ - spec/unit/cache_spec.rb
267
312
  - spec/unit/config_spec.rb
313
+ - spec/unit/datetime_spec.rb
314
+ - spec/unit/inconfig_spec.rb
268
315
  - spec/unit/logging_spec.rb
269
316
  - spec/unit/offclient_spec.rb
270
317
  - spec/unit/restclient_spec.rb