foreman_virt_who_configure 0.5.22 → 0.5.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_virt_who_configure/config_copy_and_paste.js +8 -6
  3. data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +9 -3
  4. data/app/views/foreman_virt_who_configure/configs/show.html.erb +2 -2
  5. data/lib/foreman_virt_who_configure/version.rb +1 -1
  6. metadata +6 -79
  7. data/locale/action_names.rb +0 -2
  8. data/locale/bn/foreman_virt_who_configure.edit.po +0 -621
  9. data/locale/bn/foreman_virt_who_configure.po.time_stamp +0 -0
  10. data/locale/bn_IN/foreman_virt_who_configure.edit.po +0 -622
  11. data/locale/bn_IN/foreman_virt_who_configure.po.time_stamp +0 -0
  12. data/locale/ca/foreman_virt_who_configure.edit.po +0 -621
  13. data/locale/ca/foreman_virt_who_configure.po.time_stamp +0 -0
  14. data/locale/cs_CZ/foreman_virt_who_configure.edit.po +0 -628
  15. data/locale/cs_CZ/foreman_virt_who_configure.po.time_stamp +0 -0
  16. data/locale/de/foreman_virt_who_configure.edit.po +0 -638
  17. data/locale/de/foreman_virt_who_configure.po.time_stamp +0 -0
  18. data/locale/de_DE/foreman_virt_who_configure.edit.po +0 -624
  19. data/locale/de_DE/foreman_virt_who_configure.po.time_stamp +0 -0
  20. data/locale/el/foreman_virt_who_configure.edit.po +0 -621
  21. data/locale/el/foreman_virt_who_configure.po.time_stamp +0 -0
  22. data/locale/en/foreman_virt_who_configure.edit.po +0 -617
  23. data/locale/en/foreman_virt_who_configure.po.time_stamp +0 -0
  24. data/locale/en_GB/foreman_virt_who_configure.edit.po +0 -623
  25. data/locale/en_GB/foreman_virt_who_configure.po.time_stamp +0 -0
  26. data/locale/es/foreman_virt_who_configure.edit.po +0 -635
  27. data/locale/es/foreman_virt_who_configure.po.time_stamp +0 -0
  28. data/locale/fr/foreman_virt_who_configure.edit.po +0 -634
  29. data/locale/fr/foreman_virt_who_configure.po.time_stamp +0 -0
  30. data/locale/gl/foreman_virt_who_configure.edit.po +0 -621
  31. data/locale/gl/foreman_virt_who_configure.po.time_stamp +0 -0
  32. data/locale/gu/foreman_virt_who_configure.edit.po +0 -621
  33. data/locale/gu/foreman_virt_who_configure.po.time_stamp +0 -0
  34. data/locale/he_IL/foreman_virt_who_configure.edit.po +0 -623
  35. data/locale/he_IL/foreman_virt_who_configure.po.time_stamp +0 -0
  36. data/locale/hi/foreman_virt_who_configure.edit.po +0 -621
  37. data/locale/hi/foreman_virt_who_configure.po.time_stamp +0 -0
  38. data/locale/it/foreman_virt_who_configure.edit.po +0 -625
  39. data/locale/it/foreman_virt_who_configure.po.time_stamp +0 -0
  40. data/locale/ja/foreman_virt_who_configure.edit.po +0 -632
  41. data/locale/ja/foreman_virt_who_configure.po.time_stamp +0 -0
  42. data/locale/ka/foreman_virt_who_configure.edit.po +0 -628
  43. data/locale/ka/foreman_virt_who_configure.po.time_stamp +0 -0
  44. data/locale/kn/foreman_virt_who_configure.edit.po +0 -621
  45. data/locale/kn/foreman_virt_who_configure.po.time_stamp +0 -0
  46. data/locale/ko/foreman_virt_who_configure.edit.po +0 -623
  47. data/locale/ko/foreman_virt_who_configure.po.time_stamp +0 -0
  48. data/locale/mr/foreman_virt_who_configure.edit.po +0 -621
  49. data/locale/mr/foreman_virt_who_configure.po.time_stamp +0 -0
  50. data/locale/nl_NL/foreman_virt_who_configure.edit.po +0 -626
  51. data/locale/nl_NL/foreman_virt_who_configure.po.time_stamp +0 -0
  52. data/locale/or/foreman_virt_who_configure.edit.po +0 -621
  53. data/locale/or/foreman_virt_who_configure.po.time_stamp +0 -0
  54. data/locale/pa/foreman_virt_who_configure.edit.po +0 -622
  55. data/locale/pa/foreman_virt_who_configure.po.time_stamp +0 -0
  56. data/locale/pl/foreman_virt_who_configure.edit.po +0 -624
  57. data/locale/pl/foreman_virt_who_configure.po.time_stamp +0 -0
  58. data/locale/pt/foreman_virt_who_configure.edit.po +0 -622
  59. data/locale/pt/foreman_virt_who_configure.po.time_stamp +0 -0
  60. data/locale/pt_BR/foreman_virt_who_configure.edit.po +0 -634
  61. data/locale/pt_BR/foreman_virt_who_configure.po.time_stamp +0 -0
  62. data/locale/ru/foreman_virt_who_configure.edit.po +0 -627
  63. data/locale/ru/foreman_virt_who_configure.po.time_stamp +0 -0
  64. data/locale/sl/foreman_virt_who_configure.edit.po +0 -622
  65. data/locale/sl/foreman_virt_who_configure.po.time_stamp +0 -0
  66. data/locale/sv_SE/foreman_virt_who_configure.edit.po +0 -623
  67. data/locale/sv_SE/foreman_virt_who_configure.po.time_stamp +0 -0
  68. data/locale/ta/foreman_virt_who_configure.edit.po +0 -621
  69. data/locale/ta/foreman_virt_who_configure.po.time_stamp +0 -0
  70. data/locale/ta_IN/foreman_virt_who_configure.edit.po +0 -622
  71. data/locale/ta_IN/foreman_virt_who_configure.po.time_stamp +0 -0
  72. data/locale/te/foreman_virt_who_configure.edit.po +0 -621
  73. data/locale/te/foreman_virt_who_configure.po.time_stamp +0 -0
  74. data/locale/tr/foreman_virt_who_configure.edit.po +0 -621
  75. data/locale/tr/foreman_virt_who_configure.po.time_stamp +0 -0
  76. data/locale/zh_CN/foreman_virt_who_configure.edit.po +0 -633
  77. data/locale/zh_CN/foreman_virt_who_configure.po.time_stamp +0 -0
  78. data/locale/zh_TW/foreman_virt_who_configure.edit.po +0 -623
  79. data/locale/zh_TW/foreman_virt_who_configure.po.time_stamp +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22ea7c1f01f0e5903a2f219b5be36745a0c229b5471f2538ab88e65dc8117ff0
4
- data.tar.gz: 1d53ba8208462ef5c2c01c67c18c1b37523effdfb9bfc3bee174e64aa86e2a18
3
+ metadata.gz: 119cc91cb905da4bd294432142b61ac910531ae8e34cdb0a6e7223a932894b32
4
+ data.tar.gz: a2e875685992c24bbadbf43cb3337cddefa7fcafa3ea592f7afa59026fec1e73
5
5
  SHA512:
6
- metadata.gz: 5032cbca7e710798ca4061d88c5d2de7b001aa6acd39c54227d049b68321c8c35dbf50d3bbe1907821faa7d0363224f3fe9e60655f7240314bd279aab49df209
7
- data.tar.gz: 96acfb4d9ca5099569c7a149c1c3b809595cb0ccf52f7bc6338ca8684318c1080170031b65374fc8e214dab9dd5636bc43ccab7aa85b6bfff6ec923a8e3775c8
6
+ metadata.gz: cf72c11793e7157e197b8728be459ca702d5a030325445300f8b70ac010a43c03fa3064d46637c9727673796647e0a6e0ce709e6a3c4a7f30043fc17af815261
7
+ data.tar.gz: 5c0707b56eb0aa13bc1379d473fb207d35015c28531ca945b0396ac650f8d4f3d55176c38cbdc6667aa12428b6dc42f8c31218b766a71ac50fbe829923b269bc
@@ -1,8 +1,10 @@
1
1
  function virt_who_copy_configuration_to_clipboard(text) {
2
- var aux = document.createElement("textarea");
3
- $(aux).html(text);
4
- document.body.appendChild(aux);
5
- aux.select();
6
- document.execCommand("copy");
7
- document.body.removeChild(aux);
2
+ try {
3
+ navigator.clipboard.writeText(text);
4
+ } catch (error) {
5
+ console.error(
6
+ "Copying to clipboard is not supported in this browser, or with an insecure connection."
7
+ );
8
+ console.error(error);
9
+ }
8
10
  }
@@ -82,7 +82,13 @@ $(document).ready(function () {
82
82
  virt_who_update_hypervisor_fields();
83
83
  virt_who_update_ahv_debug();
84
84
 
85
- $('#foreman_virt_who_configure_config_listing_mode').change(virt_who_update_listing_mode);
86
- $('#foreman_virt_who_configure_config_hypervisor_type').change(virt_who_update_credentials_help);
87
- $('#foreman_virt_who_configure_config_hypervisor_type').change(virt_who_update_hypervisor_fields);
85
+ $("#foreman_virt_who_configure_config_listing_mode").on("change", virt_who_update_listing_mode);
86
+ $("#foreman_virt_who_configure_config_hypervisor_type").on(
87
+ "change",
88
+ virt_who_update_credentials_help
89
+ );
90
+ $("#foreman_virt_who_configure_config_hypervisor_type").on(
91
+ "change",
92
+ virt_who_update_hypervisor_fields
93
+ );
88
94
  });
@@ -79,7 +79,7 @@
79
79
  </div>
80
80
  <div class="col-md-8">
81
81
  <div class="terminal-buttons">
82
- <%= link_to _('Copy to clipboard'), nil, :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_command").html()); return false' %>
82
+ <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_command").html()); return false' %>
83
83
  </div>
84
84
  </div>
85
85
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
  <div class="col-md-8">
105
105
  <div class="terminal-buttons">
106
- <%= link_to _('Copy to clipboard'), nil, :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_script").html()); return false' %>
106
+ <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_script").html()); return false' %>
107
107
  <%= link_to _('Download the script'), deploy_script_foreman_virt_who_configure_config_path(@config), :class => 'btn btn-default' %>
108
108
  </div>
109
109
  </div>
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.5.22'.freeze
2
+ VERSION = '0.5.23'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_virt_who_configure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.22
4
+ version: 0.5.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman virt-who-configure team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -156,153 +156,80 @@ files:
156
156
  - lib/foreman_virt_who_configure/version.rb
157
157
  - lib/tasks/foreman_virt_who_configure_tasks.rake
158
158
  - locale/Makefile
159
- - locale/action_names.rb
160
159
  - locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo
161
- - locale/bn/foreman_virt_who_configure.edit.po
162
160
  - locale/bn/foreman_virt_who_configure.po
163
- - locale/bn/foreman_virt_who_configure.po.time_stamp
164
161
  - locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo
165
- - locale/bn_IN/foreman_virt_who_configure.edit.po
166
162
  - locale/bn_IN/foreman_virt_who_configure.po
167
- - locale/bn_IN/foreman_virt_who_configure.po.time_stamp
168
163
  - locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo
169
- - locale/ca/foreman_virt_who_configure.edit.po
170
164
  - locale/ca/foreman_virt_who_configure.po
171
- - locale/ca/foreman_virt_who_configure.po.time_stamp
172
165
  - locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo
173
- - locale/cs_CZ/foreman_virt_who_configure.edit.po
174
166
  - locale/cs_CZ/foreman_virt_who_configure.po
175
- - locale/cs_CZ/foreman_virt_who_configure.po.time_stamp
176
167
  - locale/de/LC_MESSAGES/foreman_virt_who_configure.mo
177
- - locale/de/foreman_virt_who_configure.edit.po
178
168
  - locale/de/foreman_virt_who_configure.po
179
- - locale/de/foreman_virt_who_configure.po.time_stamp
180
169
  - locale/de_DE/LC_MESSAGES/foreman_virt_who_configure.mo
181
- - locale/de_DE/foreman_virt_who_configure.edit.po
182
170
  - locale/de_DE/foreman_virt_who_configure.po
183
- - locale/de_DE/foreman_virt_who_configure.po.time_stamp
184
171
  - locale/el/LC_MESSAGES/foreman_virt_who_configure.mo
185
- - locale/el/foreman_virt_who_configure.edit.po
186
172
  - locale/el/foreman_virt_who_configure.po
187
- - locale/el/foreman_virt_who_configure.po.time_stamp
188
173
  - locale/en/LC_MESSAGES/foreman_virt_who_configure.mo
189
- - locale/en/foreman_virt_who_configure.edit.po
190
174
  - locale/en/foreman_virt_who_configure.po
191
- - locale/en/foreman_virt_who_configure.po.time_stamp
192
175
  - locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo
193
- - locale/en_GB/foreman_virt_who_configure.edit.po
194
176
  - locale/en_GB/foreman_virt_who_configure.po
195
- - locale/en_GB/foreman_virt_who_configure.po.time_stamp
196
177
  - locale/es/LC_MESSAGES/foreman_virt_who_configure.mo
197
- - locale/es/foreman_virt_who_configure.edit.po
198
178
  - locale/es/foreman_virt_who_configure.po
199
- - locale/es/foreman_virt_who_configure.po.time_stamp
200
179
  - locale/foreman_virt_who_configure.pot
201
180
  - locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo
202
- - locale/fr/foreman_virt_who_configure.edit.po
203
181
  - locale/fr/foreman_virt_who_configure.po
204
- - locale/fr/foreman_virt_who_configure.po.time_stamp
205
182
  - locale/gemspec.rb
206
183
  - locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo
207
- - locale/gl/foreman_virt_who_configure.edit.po
208
184
  - locale/gl/foreman_virt_who_configure.po
209
- - locale/gl/foreman_virt_who_configure.po.time_stamp
210
185
  - locale/gu/LC_MESSAGES/foreman_virt_who_configure.mo
211
- - locale/gu/foreman_virt_who_configure.edit.po
212
186
  - locale/gu/foreman_virt_who_configure.po
213
- - locale/gu/foreman_virt_who_configure.po.time_stamp
214
187
  - locale/he_IL/LC_MESSAGES/foreman_virt_who_configure.mo
215
- - locale/he_IL/foreman_virt_who_configure.edit.po
216
188
  - locale/he_IL/foreman_virt_who_configure.po
217
- - locale/he_IL/foreman_virt_who_configure.po.time_stamp
218
189
  - locale/hi/LC_MESSAGES/foreman_virt_who_configure.mo
219
- - locale/hi/foreman_virt_who_configure.edit.po
220
190
  - locale/hi/foreman_virt_who_configure.po
221
- - locale/hi/foreman_virt_who_configure.po.time_stamp
222
191
  - locale/it/LC_MESSAGES/foreman_virt_who_configure.mo
223
- - locale/it/foreman_virt_who_configure.edit.po
224
192
  - locale/it/foreman_virt_who_configure.po
225
- - locale/it/foreman_virt_who_configure.po.time_stamp
226
193
  - locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo
227
- - locale/ja/foreman_virt_who_configure.edit.po
228
194
  - locale/ja/foreman_virt_who_configure.po
229
- - locale/ja/foreman_virt_who_configure.po.time_stamp
230
195
  - locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo
231
- - locale/ka/foreman_virt_who_configure.edit.po
232
196
  - locale/ka/foreman_virt_who_configure.po
233
- - locale/ka/foreman_virt_who_configure.po.time_stamp
234
197
  - locale/kn/LC_MESSAGES/foreman_virt_who_configure.mo
235
- - locale/kn/foreman_virt_who_configure.edit.po
236
198
  - locale/kn/foreman_virt_who_configure.po
237
- - locale/kn/foreman_virt_who_configure.po.time_stamp
238
199
  - locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo
239
- - locale/ko/foreman_virt_who_configure.edit.po
240
200
  - locale/ko/foreman_virt_who_configure.po
241
- - locale/ko/foreman_virt_who_configure.po.time_stamp
242
201
  - locale/mr/LC_MESSAGES/foreman_virt_who_configure.mo
243
- - locale/mr/foreman_virt_who_configure.edit.po
244
202
  - locale/mr/foreman_virt_who_configure.po
245
- - locale/mr/foreman_virt_who_configure.po.time_stamp
246
203
  - locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo
247
- - locale/nl_NL/foreman_virt_who_configure.edit.po
248
204
  - locale/nl_NL/foreman_virt_who_configure.po
249
- - locale/nl_NL/foreman_virt_who_configure.po.time_stamp
250
205
  - locale/or/LC_MESSAGES/foreman_virt_who_configure.mo
251
- - locale/or/foreman_virt_who_configure.edit.po
252
206
  - locale/or/foreman_virt_who_configure.po
253
- - locale/or/foreman_virt_who_configure.po.time_stamp
254
207
  - locale/pa/LC_MESSAGES/foreman_virt_who_configure.mo
255
- - locale/pa/foreman_virt_who_configure.edit.po
256
208
  - locale/pa/foreman_virt_who_configure.po
257
- - locale/pa/foreman_virt_who_configure.po.time_stamp
258
209
  - locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo
259
- - locale/pl/foreman_virt_who_configure.edit.po
260
210
  - locale/pl/foreman_virt_who_configure.po
261
- - locale/pl/foreman_virt_who_configure.po.time_stamp
262
211
  - locale/pt/LC_MESSAGES/foreman_virt_who_configure.mo
263
- - locale/pt/foreman_virt_who_configure.edit.po
264
212
  - locale/pt/foreman_virt_who_configure.po
265
- - locale/pt/foreman_virt_who_configure.po.time_stamp
266
213
  - locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo
267
- - locale/pt_BR/foreman_virt_who_configure.edit.po
268
214
  - locale/pt_BR/foreman_virt_who_configure.po
269
- - locale/pt_BR/foreman_virt_who_configure.po.time_stamp
270
215
  - locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo
271
- - locale/ru/foreman_virt_who_configure.edit.po
272
216
  - locale/ru/foreman_virt_who_configure.po
273
- - locale/ru/foreman_virt_who_configure.po.time_stamp
274
217
  - locale/sl/LC_MESSAGES/foreman_virt_who_configure.mo
275
- - locale/sl/foreman_virt_who_configure.edit.po
276
218
  - locale/sl/foreman_virt_who_configure.po
277
- - locale/sl/foreman_virt_who_configure.po.time_stamp
278
219
  - locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo
279
- - locale/sv_SE/foreman_virt_who_configure.edit.po
280
220
  - locale/sv_SE/foreman_virt_who_configure.po
281
- - locale/sv_SE/foreman_virt_who_configure.po.time_stamp
282
221
  - locale/ta/LC_MESSAGES/foreman_virt_who_configure.mo
283
- - locale/ta/foreman_virt_who_configure.edit.po
284
222
  - locale/ta/foreman_virt_who_configure.po
285
- - locale/ta/foreman_virt_who_configure.po.time_stamp
286
223
  - locale/ta_IN/LC_MESSAGES/foreman_virt_who_configure.mo
287
- - locale/ta_IN/foreman_virt_who_configure.edit.po
288
224
  - locale/ta_IN/foreman_virt_who_configure.po
289
- - locale/ta_IN/foreman_virt_who_configure.po.time_stamp
290
225
  - locale/te/LC_MESSAGES/foreman_virt_who_configure.mo
291
- - locale/te/foreman_virt_who_configure.edit.po
292
226
  - locale/te/foreman_virt_who_configure.po
293
- - locale/te/foreman_virt_who_configure.po.time_stamp
294
227
  - locale/tr/LC_MESSAGES/foreman_virt_who_configure.mo
295
- - locale/tr/foreman_virt_who_configure.edit.po
296
228
  - locale/tr/foreman_virt_who_configure.po
297
- - locale/tr/foreman_virt_who_configure.po.time_stamp
298
229
  - locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo
299
- - locale/zh_CN/foreman_virt_who_configure.edit.po
300
230
  - locale/zh_CN/foreman_virt_who_configure.po
301
- - locale/zh_CN/foreman_virt_who_configure.po.time_stamp
302
231
  - locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo
303
- - locale/zh_TW/foreman_virt_who_configure.edit.po
304
232
  - locale/zh_TW/foreman_virt_who_configure.po
305
- - locale/zh_TW/foreman_virt_who_configure.po.time_stamp
306
233
  - test/factories/foreman_virt_who_configure_factories.rb
307
234
  - test/functional/api/v2/configs_controller_test.rb
308
235
  - test/test_plugin_helper.rb
@@ -313,7 +240,7 @@ homepage: https://github.com/theforeman/foreman_virt_who_configure
313
240
  licenses:
314
241
  - GPLv3
315
242
  metadata: {}
316
- post_install_message:
243
+ post_install_message:
317
244
  rdoc_options: []
318
245
  require_paths:
319
246
  - lib
@@ -328,8 +255,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
255
  - !ruby/object:Gem::Version
329
256
  version: '0'
330
257
  requirements: []
331
- rubygems_version: 3.1.6
332
- signing_key:
258
+ rubygems_version: 3.2.33
259
+ signing_key:
333
260
  specification_version: 4
334
261
  summary: A plugin to make virt-who configuration easy
335
262
  test_files:
@@ -1,2 +0,0 @@
1
- # Autogenerated!
2
- _("Report")