singleton-client-test 0.7.7.9 → 0.7.7.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccb1c3998982edb391937d7b4cdfd24d05aac7d68b1e7527c80da8a50beed921
|
4
|
+
data.tar.gz: fae702ee9c964860231f60aea60049736700d1ebf64f8775ac4db0334e44e6c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f0a1fc98d6ff9185aadbe709b01393cc67713536b7f97b7965688ae367ba87de22ae603668c5141785e4066b0c89574eba0f67f5b40ac56d1ea26b21977ac2
|
7
|
+
data.tar.gz: 960d284e38da544b10d4264ccc4ce8d8a95558e97a43f2ba34b4cdc22ecf9db876a44bb6cfcc898cf681c7004d7c225b032dbd7647df6d09754fb59094e0fa9c
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2022 VMware, Inc.
|
1
|
+
# Copyright 2022-2023 VMware, Inc.
|
2
2
|
# SPDX-License-Identifier: EPL-2.0
|
3
3
|
|
4
4
|
require 'json'
|
@@ -33,7 +33,7 @@ module SgtnClient
|
|
33
33
|
def available_bundles
|
34
34
|
SgtnClient.logger.debug { "[#{method(__callee__).owner}.#{__callee__}]" }
|
35
35
|
|
36
|
-
@available_bundles =
|
36
|
+
@available_bundles = Pathname.glob(@base_path + '*/*.json').reduce(Set.new) do |bundles, f|
|
37
37
|
locale = f.basename.to_s.sub(/\A#{BUNDLE_PREFIX}/i, '').sub(/#{BUNDLE_SUFFIX}\z/i, '')
|
38
38
|
bundles.add Common::BundleID.new(f.parent.basename.to_s, locale)
|
39
39
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2022 VMware, Inc.
|
1
|
+
# Copyright 2022-2023 VMware, Inc.
|
2
2
|
# SPDX-License-Identifier: EPL-2.0
|
3
3
|
|
4
4
|
module SgtnClient
|
@@ -14,7 +14,8 @@ module SgtnClient
|
|
14
14
|
|
15
15
|
SgtnClient.logger.debug { "[#{__FILE__}][#{__callee__}] component=#{component}, locale=#{locale}" }
|
16
16
|
|
17
|
-
super(component, LocaleUtil.get_source_locale)
|
17
|
+
data = super(component, LocaleUtil.get_source_locale)
|
18
|
+
data.each { |k, v| data[k] = "#{@pseudo_tag}#{v}#{@pseudo_tag}" }
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2022 VMware, Inc.
|
1
|
+
# Copyright 2022-2023 VMware, Inc.
|
2
2
|
# SPDX-License-Identifier: EPL-2.0
|
3
3
|
|
4
4
|
require 'pathname'
|
@@ -19,7 +19,7 @@ module SgtnClient
|
|
19
19
|
|
20
20
|
total_messages = {}
|
21
21
|
|
22
|
-
(@source_bundle_path + component
|
22
|
+
Pathname.glob(@source_bundle_path + component + '**/*.{yml, yaml}') do |f|
|
23
23
|
bundle = YAML.load(File.read(f))
|
24
24
|
messages = bundle&.first&.last # TODO: Warn about inconsistent source locale
|
25
25
|
if messages.is_a?(Hash)
|
@@ -39,7 +39,7 @@ module SgtnClient
|
|
39
39
|
|
40
40
|
@available_bundles ||= begin
|
41
41
|
@source_bundle_path.children.select(&:directory?).reduce(Set.new) do |bundles, component|
|
42
|
-
|
42
|
+
Pathname.glob(component + '**/*.{yml, yaml}') do |_|
|
43
43
|
bundles << Common::BundleID.new(component.basename.to_s, LocaleUtil.get_source_locale)
|
44
44
|
break bundles
|
45
45
|
end || bundles
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: singleton-client-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.7.
|
4
|
+
version: 0.7.7.11
|
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: 2023-01-
|
11
|
+
date: 2023-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday_middleware
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: i18n
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|