singleton-client-test 0.7.0.37 → 0.7.0.38

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: 365e6be5a17d3f95f2529789f8632092e859c793c96d67b4f8ddd6492f3e3687
4
- data.tar.gz: a2df815daeda06f52484e61ef7c64e2c5bc6ce5d46332a10b60187bbc2440a59
3
+ metadata.gz: e419a8a647ed41eb47557a85011cf889a694878be67956d76be674c1203773e4
4
+ data.tar.gz: 50cb15bfe02c29cd7d5b22b86d0ac54efce58b63cbfa4fee2843aefa6f3d738c
5
5
  SHA512:
6
- metadata.gz: 64ef532c3de19ee72c7b0c28661c1192856eb9ebdef0a335d7d702d98b0d7bf56411691cd3ce2c8ceeae829d0d8d8eaad53981cde88721b49e606c657f053028
7
- data.tar.gz: 27d63abbf9b7df87e20997664eebc97853ae1837f5f3c3853c1f77ce1ace43000d25482ae6f261a3d18788fbba9f026ca75374e1a14c078aa068dbdfec8a532a
6
+ metadata.gz: 253990e2ab87782fb19abb9b13079a8f857027d747b7911f2d5ef2367d5f0e188903c5d52b9623642c2932ef72cb62b461ef59e49c590493f0c521b39fe1547f
7
+ data.tar.gz: 414dc10cdd0a5fc96ef9d14bf7effc1d63221426d1cdf21c0a70387576348589dcc476fff44f739aa88fcdd9f8e44668ff19dc3269f6a4da7377387c0916bcde
@@ -22,7 +22,7 @@ module SgtnClient
22
22
  raise SgtnClient::SingletonError, 'no translation is available!' if loaders.empty?
23
23
 
24
24
  chain_loader = Class.new(Chain)
25
- chain_loader.include SourceComparer if config['source_bundle'] || config['vip_server']
25
+ chain_loader.include SourceComparer
26
26
  chain_loader.include SingleLoader
27
27
  chain_loader.include Cache
28
28
 
@@ -21,8 +21,6 @@ module SgtnClient
21
21
  end
22
22
 
23
23
  def load_bundle(component, locale)
24
- return if locale == CONSTS::REAL_SOURCE_LOCALE # return when querying source
25
-
26
24
  SgtnClient.logger.debug "[#{method(__callee__).owner}.#{__callee__}] component=#{component}, locale=#{locale}"
27
25
 
28
26
  file_name = BUNDLE_PREFIX + locale + BUNDLE_SUFFIX
@@ -2,7 +2,7 @@
2
2
  # SPDX-License-Identifier: EPL-2.0
3
3
 
4
4
  require 'pathname'
5
- require 'psych/simple'
5
+ require 'yaml'
6
6
 
7
7
  module SgtnClient
8
8
  module Common
@@ -25,7 +25,7 @@ module SgtnClient
25
25
  total_messages = {}
26
26
 
27
27
  (@source_bundle_path + component).glob('**/*.{yml, yaml}') do |f|
28
- bundle = Psych.simple_load(File.read(f))
28
+ bundle = YAML.load(File.read(f))
29
29
  messages = bundle&.first&.last # TODO: Warn about inconsistent source locale
30
30
  if messages.is_a?(Hash)
31
31
  total_messages.merge!(messages)
@@ -18,6 +18,7 @@ module SgtnClient
18
18
  autoload :LocaleUtil, "sgtn-client/util/locale-util"
19
19
  autoload :FileUtil, "sgtn-client/util/file-util"
20
20
  autoload :CacheUtil, "sgtn-client/util/cache-util"
21
+ autoload :StringUtil, "sgtn-client/util/string-util"
21
22
 
22
23
  module Formatters
23
24
  autoload :PluralFormatter, "sgtn-client/formatters/plurals/plural_formatter"
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.37
4
+ version: 0.7.0.38
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-05-20 00:00:00.000000000 Z
11
+ date: 2022-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -142,20 +142,6 @@ dependencies:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
144
  version: '6.6'
145
- - !ruby/object:Gem::Dependency
146
- name: psych-simple
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '2.0'
152
- type: :runtime
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '2.0'
159
145
  description: Singleton Ruby client
160
146
  email: g11n-vip-project@vmware.com
161
147
  executables: []