foreman_remote_execution 8.3.2 → 8.3.3

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: e314ca935b105cff932a0e45bf8c9d8c6d89c40ff036cdf38938f0c49156056a
4
- data.tar.gz: 5658ed442b54263bef82b179e44aee1b8994a6ea059a1424000fa13535c92621
3
+ metadata.gz: 7052b1b7ecb7f92386eb7ab37c239d9da0384d5f219dbbff447a2019fec688a5
4
+ data.tar.gz: 4395d1f84b7931aa4288b64e5ed98469a3b8fa8540cf6cc06691116f3cf0af50
5
5
  SHA512:
6
- metadata.gz: 3e78f24707b070f0e265291864eb29d2bbc939d1cdb06b92f1196f162abd210ace6b1ca6075da46ba71c625bf5f6cf9975657aff00733de769d963e779b36116
7
- data.tar.gz: 4b39682eea754deb3eee202aacd85d3500f9afeb9e07fc9da3ce7a08fd86a895df920b6d623c10820df71e80522b01215a6c4528b26490487ce4bae5d2452172
6
+ metadata.gz: f272cfde35b2e072131cf4420c2a1a38b48384becabe8c0ef9f849b6eb654ea9f009ca1b29c4a7dd88dab62dbb6959347d4a3a611a3d0b961442bdc9719481a6
7
+ data.tar.gz: ae403432e45b27b2783012756dcb99ccb68b8eadb433b8b6710d2198d4d06db64775f9052fea2613fc6c4701cb7ec96f6f8ec70fce10bf82fdb2cbf848c84a88
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '8.3.2'.freeze
2
+ VERSION = '8.3.3'.freeze
3
3
  end
@@ -26,6 +26,9 @@ import {
26
26
  import { buildHostQuery } from '../HostsAndInputs/buildHostQuery';
27
27
  import { WizardTitle } from '../form/WizardTitle';
28
28
 
29
+ const maskValue = (isHidden, value) =>
30
+ isHidden ? '*'.repeat(value.length) : value;
31
+
29
32
  const ReviewDetails = ({
30
33
  jobCategory,
31
34
  jobTemplateID,
@@ -75,9 +78,9 @@ const ReviewDetails = ({
75
78
  { label: __('Job category'), value: jobCategory },
76
79
  { label: __('Job template'), value: jobTemplate },
77
80
  { label: __('Target hosts'), value: stringHosts() },
78
- ...templateInputs.map(({ name }) => ({
81
+ ...templateInputs.map(({ name, hidden_value: isHidden }) => ({
79
82
  label: name,
80
- value: templateValues[name],
83
+ value: maskValue(isHidden, templateValues[name]),
81
84
  })),
82
85
  {
83
86
  label: __('Advanced fields'),
@@ -136,9 +139,9 @@ const ReviewDetails = ({
136
139
  ? __('Randomized')
137
140
  : __('Alphabetical'),
138
141
  },
139
- ...advancedTemplateInputs.map(({ name }) => ({
142
+ ...advancedTemplateInputs.map(({ name, hidden_value: isHidden }) => ({
140
143
  label: name,
141
- value: advancedValues.templateValues[name],
144
+ value: maskValue(isHidden, advancedValues.templateValues[name]),
142
145
  })),
143
146
  ];
144
147
 
@@ -9,11 +9,12 @@ const getWeekDays = () => {
9
9
  const locale = documentLocale().replace(/-/g, '_');
10
10
  const baseDate = new Date(Date.UTC(2017, 0, 1)); // just a Sunday
11
11
  const weekDays = [];
12
+ const formatOptions = { weekday: 'short', timeZone: 'UTC' };
12
13
  for (let i = 0; i < 7; i++) {
13
14
  try {
14
- weekDays.push(baseDate.toLocaleDateString(locale, { weekday: 'short' }));
15
+ weekDays.push(baseDate.toLocaleDateString(locale, formatOptions));
15
16
  } catch {
16
- weekDays.push(baseDate.toLocaleDateString('en', { weekday: 'short' }));
17
+ weekDays.push(baseDate.toLocaleDateString('en', formatOptions));
17
18
  }
18
19
  baseDate.setDate(baseDate.getDate() + 1);
19
20
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.2
4
+ version: 8.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-01 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -543,7 +543,7 @@ homepage: https://github.com/theforeman/foreman_remote_execution
543
543
  licenses:
544
544
  - GPL-3.0
545
545
  metadata: {}
546
- post_install_message:
546
+ post_install_message:
547
547
  rdoc_options: []
548
548
  require_paths:
549
549
  - lib
@@ -558,8 +558,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
558
558
  - !ruby/object:Gem::Version
559
559
  version: '0'
560
560
  requirements: []
561
- rubygems_version: 3.4.19
562
- signing_key:
561
+ rubygems_version: 3.1.6
562
+ signing_key:
563
563
  specification_version: 4
564
564
  summary: A plugin bringing remote execution to the Foreman, completing the config
565
565
  management functionality with remote management functionality.