foreman_google 2.0.1 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_google/locale/cs_CZ/foreman_google.js +35 -50
  3. data/app/assets/javascripts/foreman_google/locale/de/foreman_google.js +38 -53
  4. data/app/assets/javascripts/foreman_google/locale/el/foreman_google.js +31 -46
  5. data/app/assets/javascripts/foreman_google/locale/en/foreman_google.js +25 -40
  6. data/app/assets/javascripts/foreman_google/locale/en_GB/foreman_google.js +8 -23
  7. data/app/assets/javascripts/foreman_google/locale/es/foreman_google.js +38 -53
  8. data/app/assets/javascripts/foreman_google/locale/fr/foreman_google.js +42 -57
  9. data/app/assets/javascripts/foreman_google/locale/it/foreman_google.js +34 -49
  10. data/app/assets/javascripts/foreman_google/locale/ja/foreman_google.js +42 -57
  11. data/app/assets/javascripts/foreman_google/locale/ka/foreman_google.js +42 -57
  12. data/app/assets/javascripts/foreman_google/locale/ko/foreman_google.js +35 -50
  13. data/app/assets/javascripts/foreman_google/locale/pl/foreman_google.js +33 -48
  14. data/app/assets/javascripts/foreman_google/locale/pt_BR/foreman_google.js +38 -53
  15. data/app/assets/javascripts/foreman_google/locale/ru/foreman_google.js +35 -50
  16. data/app/assets/javascripts/foreman_google/locale/sv_SE/foreman_google.js +33 -48
  17. data/app/assets/javascripts/foreman_google/locale/zh_CN/foreman_google.js +42 -57
  18. data/app/assets/javascripts/foreman_google/locale/zh_TW/foreman_google.js +35 -50
  19. data/app/lib/foreman_google/google_compute_adapter.rb +3 -5
  20. data/app/models/foreman_google/gce.rb +0 -2
  21. data/app/models/foreman_google/google_compute.rb +0 -2
  22. data/config/initializers/zeitwerk.rb +3 -0
  23. data/db/migrate/20220331113745_foreman_gce_to_foreman_google_gce.rb +2 -2
  24. data/lib/foreman_google/engine.rb +1 -3
  25. data/lib/foreman_google/version.rb +1 -1
  26. data/locale/Makefile +12 -2
  27. data/locale/cs_CZ/LC_MESSAGES/foreman_google.mo +0 -0
  28. data/locale/cs_CZ/foreman_google.po +2 -17
  29. data/locale/de/LC_MESSAGES/foreman_google.mo +0 -0
  30. data/locale/de/foreman_google.po +3 -18
  31. data/locale/el/LC_MESSAGES/foreman_google.mo +0 -0
  32. data/locale/el/foreman_google.po +2 -17
  33. data/locale/en/LC_MESSAGES/foreman_google.mo +0 -0
  34. data/locale/en/foreman_google.po +9 -22
  35. data/locale/en_GB/LC_MESSAGES/foreman_google.mo +0 -0
  36. data/locale/en_GB/foreman_google.po +9 -24
  37. data/locale/es/LC_MESSAGES/foreman_google.mo +0 -0
  38. data/locale/es/foreman_google.po +2 -17
  39. data/locale/fr/LC_MESSAGES/foreman_google.mo +0 -0
  40. data/locale/fr/foreman_google.po +11 -24
  41. data/locale/it/LC_MESSAGES/foreman_google.mo +0 -0
  42. data/locale/it/foreman_google.po +3 -18
  43. data/locale/ja/LC_MESSAGES/foreman_google.mo +0 -0
  44. data/locale/ja/foreman_google.po +11 -24
  45. data/locale/ka/LC_MESSAGES/foreman_google.mo +0 -0
  46. data/locale/ka/foreman_google.po +10 -25
  47. data/locale/ko/LC_MESSAGES/foreman_google.mo +0 -0
  48. data/locale/ko/foreman_google.po +2 -17
  49. data/locale/pl/LC_MESSAGES/foreman_google.mo +0 -0
  50. data/locale/pl/foreman_google.po +2 -17
  51. data/locale/pt_BR/LC_MESSAGES/foreman_google.mo +0 -0
  52. data/locale/pt_BR/foreman_google.po +2 -17
  53. data/locale/ru/LC_MESSAGES/foreman_google.mo +0 -0
  54. data/locale/ru/foreman_google.po +2 -17
  55. data/locale/sv_SE/LC_MESSAGES/foreman_google.mo +0 -0
  56. data/locale/sv_SE/foreman_google.po +2 -17
  57. data/locale/zh_CN/LC_MESSAGES/foreman_google.mo +0 -0
  58. data/locale/zh_CN/foreman_google.po +11 -24
  59. data/locale/zh_TW/LC_MESSAGES/foreman_google.mo +0 -0
  60. data/locale/zh_TW/foreman_google.po +2 -17
  61. data/test/test_google_helper.rb +1 -1
  62. metadata +48 -19
  63. data/locale/action_names.rb +0 -6
  64. data/locale/en/foreman_google.edit.po +0 -116
  65. data/locale/en/foreman_google.po.time_stamp +0 -0
@@ -8,14 +8,16 @@
8
8
  # Bryan Kearney <bryan.kearney@gmail.com>, 2022
9
9
  # tim123, 2022
10
10
  # Amit Upadhye <aupadhye@redhat.com>, 2022
11
+ # Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarden.nl>, 2024
11
12
  #
12
13
  msgid ""
13
14
  msgstr ""
14
- "Project-Id-Version: foreman_google 1.0.0\n"
15
+ "Project-Id-Version: foreman_google 3.0.0\n"
15
16
  "Report-Msgid-Bugs-To: \n"
16
17
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
17
- "Last-Translator: Amit Upadhye <aupadhye@redhat.com>, 2022\n"
18
- "Language-Team: Chinese (China) (https://www.transifex.com/foreman/teams/114/zh"
18
+ "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
19
+ "n.nl>, 2024\n"
20
+ "Language-Team: Chinese (China) (https://app.transifex.com/foreman/teams/114/zh"
19
21
  "_CN/)\n"
20
22
  "MIME-Version: 1.0\n"
21
23
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -23,9 +25,6 @@ msgstr ""
23
25
  "Language: zh_CN\n"
24
26
  "Plural-Forms: nplurals=1; plural=0;\n"
25
27
 
26
- msgid "Action with sub plans"
27
- msgstr "有子计划的操作"
28
-
29
28
  msgid "Actions"
30
29
  msgstr "操作"
31
30
 
@@ -33,13 +32,13 @@ msgid "Associate Ephemeral External IP"
33
32
  msgstr "关联临时外部 IP"
34
33
 
35
34
  msgid "Certificate path, for GCE only"
36
- msgstr ""
35
+ msgstr "证书路径,仅限 GCE"
37
36
 
38
37
  msgid "Deprecated, email is automatically loaded from the JSON file. For GCE only"
39
- msgstr ""
38
+ msgstr "弃用,电子邮件从 JSON 文件中自动加载。仅限 GCE"
40
39
 
41
40
  msgid "Deprecated, project is automatically loaded from the JSON file. For GCE only"
42
- msgstr ""
41
+ msgstr "弃用,项目从 JSON 文件中自动加载。仅限 GCE"
43
42
 
44
43
  msgid "Does this image support user data input (e.g. via cloud-init)?"
45
44
  msgstr "这个镜像是否支持用户数据输入(例如:通过 cloud-init)?"
@@ -50,12 +49,6 @@ msgstr "Foreman 的 Google Compute Engine 插件。"
50
49
  msgid "Image"
51
50
  msgstr "镜像"
52
51
 
53
- msgid "Import Puppet classes"
54
- msgstr "导入 Puppet 类"
55
-
56
- msgid "Import facts"
57
- msgstr "导入事实"
58
-
59
52
  msgid "JSON key"
60
53
  msgstr "JSON 键"
61
54
 
@@ -80,15 +73,9 @@ msgstr "网络"
80
73
  msgid "Please select an image"
81
74
  msgstr "请选择一个镜像"
82
75
 
83
- msgid "Preupgrade job"
84
- msgstr "升级前的作业"
85
-
86
76
  msgid "Properties"
87
77
  msgstr "属性"
88
78
 
89
- msgid "Remote action:"
90
- msgstr "远程操作:"
91
-
92
79
  msgid "Size (GB)"
93
80
  msgstr "大小 (GB)"
94
81
 
@@ -96,10 +83,10 @@ msgid "State"
96
83
  msgstr "状态"
97
84
 
98
85
  msgid "The email parameter is deprecated, value is automatically loaded from the JSON file"
99
- msgstr ""
86
+ msgstr "email 参数已弃用,值会自动从 JSON 文件加载"
100
87
 
101
88
  msgid "The project parameter is deprecated, value is automatically loaded from the JSON file"
102
- msgstr ""
89
+ msgstr "project 参数已弃用,值会自动从 JSON 文件加载"
103
90
 
104
91
  msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, etc. Note: Google engine doesn't support SSH for the root user."
105
92
  msgstr "用于 ssh 到实例的用户,通常为 cloud-user、ec2-user、ubuntu 等:Google 引擎不支持 root 用户的 SSH。"
@@ -111,7 +98,7 @@ msgid "Zone"
111
98
  msgstr "区"
112
99
 
113
100
  msgid "Zone, for GCE only"
114
- msgstr ""
101
+ msgstr "Zone,仅限 GCE"
115
102
 
116
103
  msgid "console is not available at this time because the instance is powered off"
117
104
  msgstr "控制台目前不可用,因为实例已关闭"
@@ -10,11 +10,11 @@
10
10
  #
11
11
  msgid ""
12
12
  msgstr ""
13
- "Project-Id-Version: foreman_google 1.0.0\n"
13
+ "Project-Id-Version: foreman_google 3.0.0\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
15
  "PO-Revision-Date: 2022-08-01 12:51+0000\n"
16
16
  "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4, 2022\n"
17
- "Language-Team: Chinese (Taiwan) (https://www.transifex.com/foreman/teams/114/z"
17
+ "Language-Team: Chinese (Taiwan) (https://app.transifex.com/foreman/teams/114/z"
18
18
  "h_TW/)\n"
19
19
  "MIME-Version: 1.0\n"
20
20
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -22,9 +22,6 @@ msgstr ""
22
22
  "Language: zh_TW\n"
23
23
  "Plural-Forms: nplurals=1; plural=0;\n"
24
24
 
25
- msgid "Action with sub plans"
26
- msgstr "有子計畫的動作"
27
-
28
25
  msgid "Actions"
29
26
  msgstr "動作"
30
27
 
@@ -49,12 +46,6 @@ msgstr ""
49
46
  msgid "Image"
50
47
  msgstr "影像"
51
48
 
52
- msgid "Import Puppet classes"
53
- msgstr "匯入 Puppet 類別"
54
-
55
- msgid "Import facts"
56
- msgstr "匯入詳情"
57
-
58
49
  msgid "JSON key"
59
50
  msgstr ""
60
51
 
@@ -79,15 +70,9 @@ msgstr "網路"
79
70
  msgid "Please select an image"
80
71
  msgstr "請選擇一個映像檔"
81
72
 
82
- msgid "Preupgrade job"
83
- msgstr ""
84
-
85
73
  msgid "Properties"
86
74
  msgstr "屬性"
87
75
 
88
- msgid "Remote action:"
89
- msgstr "遠端動作:"
90
-
91
76
  msgid "Size (GB)"
92
77
  msgstr "大小(GB)"
93
78
 
@@ -16,7 +16,7 @@ class GoogleTestCase < ActiveSupport::TestCase
16
16
  let(:google_access_token) { 'ya29.c.stubbed_token' }
17
17
  let(:gce_cr) { FactoryBot.create(:compute_resource, :google_gce) }
18
18
  let(:google_project_id) { gce_cr.google_project_id }
19
- let(:gauth_json) { (ENV['VCR'] == '1' ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
19
+ let(:gauth_json) { ((ENV['VCR'] == '1') ? ENV['GCE_AUTH'] : nil) || gce_cr.password }
20
20
 
21
21
  setup do
22
22
  ::Signet::OAuth2::Client.any_instance.stubs(fetch_access_token!: google_access_token) unless ENV['VCR'] == '1'
metadata CHANGED
@@ -1,43 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 3.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: 2024-03-25 00:00:00.000000000 Z
11
+ date: 2024-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-compute_v1
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0.14'
19
+ version: 0.54.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: '0.14'
26
+ version: 0.54.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-compute
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0.2'
33
+ version: 0.5.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: '0.2'
40
+ version: 0.5.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: google-protobuf
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 3.24.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 3.24.3
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rdoc
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +66,20 @@ dependencies:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: theforeman-rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.1
55
83
  description: Google Compute Engine plugin for the Foreman
56
84
  email:
57
85
  - dev@community.theforeman.org
@@ -96,6 +124,7 @@ files:
96
124
  - app/views/compute_resources_vms/index/_gce.html.erb
97
125
  - app/views/compute_resources_vms/show/_gce.html.erb
98
126
  - app/views/images/form/_gce.html.erb
127
+ - config/initializers/zeitwerk.rb
99
128
  - config/routes.rb
100
129
  - db/migrate/20220331113745_foreman_gce_to_foreman_google_gce.rb
101
130
  - lib/foreman_google.rb
@@ -103,7 +132,6 @@ files:
103
132
  - lib/foreman_google/version.rb
104
133
  - lib/tasks/foreman_google_tasks.rake
105
134
  - locale/Makefile
106
- - locale/action_names.rb
107
135
  - locale/cs_CZ/LC_MESSAGES/foreman_google.mo
108
136
  - locale/cs_CZ/foreman_google.po
109
137
  - locale/de/LC_MESSAGES/foreman_google.mo
@@ -111,9 +139,7 @@ files:
111
139
  - locale/el/LC_MESSAGES/foreman_google.mo
112
140
  - locale/el/foreman_google.po
113
141
  - locale/en/LC_MESSAGES/foreman_google.mo
114
- - locale/en/foreman_google.edit.po
115
142
  - locale/en/foreman_google.po
116
- - locale/en/foreman_google.po.time_stamp
117
143
  - locale/en_GB/LC_MESSAGES/foreman_google.mo
118
144
  - locale/en_GB/foreman_google.po
119
145
  - locale/es/LC_MESSAGES/foreman_google.mo
@@ -189,18 +215,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
215
  requirements:
190
216
  - - ">="
191
217
  - !ruby/object:Gem::Version
192
- version: '2.5'
218
+ version: '2.7'
219
+ - - "<"
220
+ - !ruby/object:Gem::Version
221
+ version: '4'
193
222
  required_rubygems_version: !ruby/object:Gem::Requirement
194
223
  requirements:
195
224
  - - ">="
196
225
  - !ruby/object:Gem::Version
197
226
  version: '0'
198
227
  requirements: []
199
- rubygems_version: 3.1.6
228
+ rubygems_version: 3.2.33
200
229
  signing_key:
201
230
  specification_version: 4
202
231
  summary: Google Compute Engine plugin for the Foreman
203
232
  test_files:
233
+ - test/factories/gce.rb
204
234
  - test/fixtures/disks_delete.json
205
235
  - test/fixtures/disks_get.json
206
236
  - test/fixtures/disks_insert.json
@@ -215,13 +245,12 @@ test_files:
215
245
  - test/fixtures/instance_start.json
216
246
  - test/fixtures/instance_stop.json
217
247
  - test/fixtures/machine_types.json
248
+ - test/fixtures/networks.json
218
249
  - test/fixtures/operation_error.json
219
250
  - test/fixtures/operation_get.json
220
251
  - test/fixtures/zones.json
221
- - test/fixtures/networks.json
222
- - test/factories/gce.rb
223
- - test/unit/foreman_google/google_compute_adapter_test.rb
224
- - test/unit/google_extensions/attached_disk_test.rb
225
252
  - test/models/foreman_google/gce_test.rb
226
253
  - test/models/foreman_google/google_compute_test.rb
227
254
  - test/test_google_helper.rb
255
+ - test/unit/foreman_google/google_compute_adapter_test.rb
256
+ - test/unit/google_extensions/attached_disk_test.rb
@@ -1,6 +0,0 @@
1
- # Autogenerated!
2
- _('Preupgrade job')
3
- _('Action with sub plans')
4
- _('Import facts')
5
- _('Import Puppet classes')
6
- _('Remote action:')
@@ -1,116 +0,0 @@
1
- # foreman_google
2
- #
3
- # This file is distributed under the same license as foreman_google.
4
- #
5
- msgid ""
6
- msgstr ""
7
- "Project-Id-Version: version 0.0.1\n"
8
- "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2014-08-20 08:54+0100\n"
10
- "Last-Translator: Foreman Team <foreman-dev@googlegroups.com>\n"
11
- "Language-Team: Foreman Team <foreman-dev@googlegroups.com>\n"
12
- "Language: \n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=UTF-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
-
18
- #: ../app/models/foreman_google/gce.rb:126
19
- msgid "console is not available at this time because the instance is powered off"
20
- msgstr ""
21
-
22
- #: ../app/models/foreman_google/gce.rb:170
23
- msgid "Missing an image for operating system!"
24
- msgstr ""
25
-
26
- #: ../app/views/compute_resources/form/_gce.html.erb:3
27
- msgid "JSON key"
28
- msgstr ""
29
-
30
- #: ../app/views/compute_resources/form/_gce.html.erb:9 ../app/views/compute_resources_vms/show/_gce.html.erb:11
31
- msgid "Zone"
32
- msgstr ""
33
-
34
- #: ../app/views/compute_resources/form/_gce.html.erb:10
35
- msgid "Load Zones"
36
- msgstr ""
37
-
38
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:3
39
- msgid "Machine type"
40
- msgstr ""
41
-
42
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:12
43
- msgid "Please select an image"
44
- msgstr ""
45
-
46
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:13 ../app/views/compute_resources_vms/show/_gce.html.erb:18
47
- msgid "Image"
48
- msgstr ""
49
-
50
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:17
51
- msgid "Network"
52
- msgstr ""
53
-
54
- #: ../app/views/compute_resources_vms/form/gce/_base.html.erb:18
55
- msgid "Associate Ephemeral External IP"
56
- msgstr ""
57
-
58
- #: ../app/views/compute_resources_vms/form/gce/_volume.html.erb:5
59
- msgid "Size (GB)"
60
- msgstr ""
61
-
62
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:3
63
- msgid "Name"
64
- msgstr ""
65
-
66
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:4
67
- msgid "Type"
68
- msgstr ""
69
-
70
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:5
71
- msgid "State"
72
- msgstr ""
73
-
74
- #: ../app/views/compute_resources_vms/index/_gce.html.erb:6
75
- msgid "Actions"
76
- msgstr ""
77
-
78
- #: ../app/views/compute_resources_vms/show/_gce.html.erb:6
79
- msgid "Properties"
80
- msgstr ""
81
-
82
- #: ../app/views/compute_resources_vms/show/_gce.html.erb:10
83
- msgid "Machine Type"
84
- msgstr ""
85
-
86
- #: ../app/views/images/form/_gce.html.erb:1
87
- msgid "The user that is used to ssh into the instance, normally cloud-user, ec2-user, ubuntu, etc. Note: Google engine doesn't support SSH for the root user."
88
- msgstr ""
89
-
90
- #: ../app/views/images/form/_gce.html.erb:3
91
- msgid "Does this image support user data input (e.g. via cloud-init)?"
92
- msgstr ""
93
-
94
- #: action_names.rb:2
95
- msgid "Preupgrade job"
96
- msgstr ""
97
-
98
- #: action_names.rb:3
99
- msgid "Action with sub plans"
100
- msgstr ""
101
-
102
- #: action_names.rb:4
103
- msgid "Import facts"
104
- msgstr ""
105
-
106
- #: action_names.rb:5
107
- msgid "Import Puppet classes"
108
- msgstr ""
109
-
110
- #: action_names.rb:6
111
- msgid "Remote action:"
112
- msgstr ""
113
-
114
- #: gemspec.rb:2
115
- msgid "Google Compute Engine plugin for the Foreman."
116
- msgstr ""
File without changes