hammer_cli_foreman_google 1.0.0 → 1.0.1

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: 6bbf79fedbb0a052e325d3cd69e767ad461f1e666a2ced890500a78af0a011d4
4
- data.tar.gz: 4309f1a8049e8ca1bec5a155ddafd81695adc5803bfab5f0052ee3f4886e491c
3
+ metadata.gz: 585ebfe55c60683e0a7334c0ced718f0cae588c9324468214a939e17afa4cfc1
4
+ data.tar.gz: 216eaf31e6a8d7685455a56b351c09a8b6c40b30063b7877f86b3d2c0a2bce9b
5
5
  SHA512:
6
- metadata.gz: c7b4d7fae37bd0e488e6721d2a797deb65379f5fbec1386cc4d92a41ce11638e494e7a8602395d8cac9f53cc2b661ac935f0bcb4918b5f24c8c196cfc4317e4d
7
- data.tar.gz: f7a6878c4482d1d9984c23ab1b674242c04952291d12fd54c21221365b8f5c46eda774e81fa2050691f9ee6c33b2e2af8c5dc9d33e4f9305d58a504493384ab2
6
+ metadata.gz: 4266290acaef964ef7b9b1eec643de4995e90f1fc13e3052b0f673daadb79d3f11f27e1365e1be2f54fd929a628e32c694cda70b295c492564ccb66261a89227
7
+ data.tar.gz: 0f5c899e099c8fc675bd69394647c03dc26c6696debebc708a60bf57a499161932a6381999164b8c5c8675f87ec54934834ad7368a9261dc78840bb6bbda449a
@@ -0,0 +1,33 @@
1
+ require 'hammer_cli/i18n'
2
+
3
+ module HammerCLIForemanGoogle
4
+ module I18n
5
+
6
+ class LocaleDomain < HammerCLI::I18n::LocaleDomain
7
+
8
+ def translated_files
9
+ Dir.glob(File.join(__dir__, '../**/*.rb'))
10
+ end
11
+
12
+ def locale_dir
13
+ File.join(__dir__, '../../locale')
14
+ end
15
+
16
+ def domain_name
17
+ 'hammer-cli-foreman-google'
18
+ end
19
+ end
20
+
21
+ class SystemLocaleDomain < LocaleDomain
22
+
23
+ def locale_dir
24
+ '/usr/share/locale'
25
+ end
26
+
27
+ end
28
+
29
+ end
30
+ end
31
+
32
+ domain = [HammerCLIForemanGoogle::I18n::LocaleDomain.new, HammerCLIForemanGoogle::I18n::SystemLocaleDomain.new].find { |d| d.available? }
33
+ HammerCLI::I18n.add_domain(domain) if domain
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForemanGoogle
2
2
  def self.version
3
- @version ||= Gem::Version.new '1.0.0'
3
+ @version ||= Gem::Version.new '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Foreman Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hammer_cli_foreman
@@ -70,6 +70,7 @@ files:
70
70
  - config/foreman_google.yml
71
71
  - lib/hammer_cli_foreman_google.rb
72
72
  - lib/hammer_cli_foreman_google/compute_resources/google.rb
73
+ - lib/hammer_cli_foreman_google/i18n.rb
73
74
  - lib/hammer_cli_foreman_google/version.rb
74
75
  homepage: https://github.com/theforeman/hammer-cli-foreman-google
75
76
  licenses:
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
93
- rubygems_version: 3.1.6
94
+ rubygems_version: 3.3.26
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: Foreman Google plugin for Hammer CLI