singleton-client-test 0.7.0.24 → 0.7.0.25

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: 01244376c6cbad522481b0e2af9886c50d4d8bed128fc02e4879d69a3c70dc10
4
- data.tar.gz: '0638caa9a2d175cf377973b9c08c21f68a2055e52ee59f8fbe77c68fcb540ad1'
3
+ metadata.gz: 581b02396037c20da7ab2a9248e8522c60735bd1e6e11dd8d4a15af259737b2c
4
+ data.tar.gz: ec310a666d7c5384e552fdaad105d06972fded90df51f0760a4622abc8e39489
5
5
  SHA512:
6
- metadata.gz: 60a8bf5bf936a85807aeb7ba13548109d701da685c0256d3121f742ef896e62b8f6b581c2d9630f74a50dbd556b3d09d26d61cbf05db146196e960c3ab7a3fc8
7
- data.tar.gz: 460895911c399b548a787120b6912ea83dd2937d0f675e386412c5d181337d333adcdab165c30e598104e4af280b1c29cf4f558a3a24fbb1ebe9df5e8b2f0186
6
+ metadata.gz: b51088e04941faff963f289b7bbfefcfa9730f78682cb85adca816044dc1432972c3eb1c1f940ac2128b4953397a2ab565a1dbfc0b63fe00f9d79f49b4de7b3a
7
+ data.tar.gz: 545e8d51467d99c4ea57eb45d9f23a651997de2b07fe9eb331fd39f7042728fe2d23312ff8b0fda0f83564674aaf3d42fcf921266241913e875bb2371ccd1af6
@@ -73,7 +73,12 @@ module SgtnClient
73
73
  items = SgtnClient::CacheUtil.get_cache(cache_key)
74
74
  if items.nil?
75
75
  items = getTranslations(component, flocale)
76
- SgtnClient::CacheUtil.write_cache(cache_key, items)
76
+ if items.nil?
77
+ items = SgtnClient::Source.getSources(component, SgtnClient::Config.configurations.default)
78
+ SgtnClient::Core::Cache.put(cache_key, items, 60)
79
+ else
80
+ SgtnClient::CacheUtil.write_cache(cache_key, items)
81
+ end
77
82
  else
78
83
  SgtnClient.logger.debug "Getting translations from cache with key: " + cache_key
79
84
  end
@@ -4,7 +4,11 @@ require 'multi_json'
4
4
  module SgtnClient::Core
5
5
  class Request
6
6
  def self.get(url)
7
- res = RestClient.get(url)
7
+ #res = RestClient.get(url)
8
+ res = RestClient::Resource.new(
9
+ url,
10
+ :verify_ssl => false
11
+ ).get
8
12
  begin
9
13
  obj = MultiJson.load(res)
10
14
  rescue MultiJson::ParseError => exception
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singleton-client-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.24
4
+ version: 0.7.0.25
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: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client