emasser 3.10.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql-analysis.yml +4 -4
- data/.github/workflows/gh-pages.yml +1 -1
- data/.github/workflows/push-to-docker-mail.yml +5 -5
- data/.github/workflows/push-to-docker.yml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/.github/workflows/rubocop.yml +1 -1
- data/.github/workflows/test-cli.yml +1 -1
- data/CHANGELOG.md +52 -2
- data/Gemfile.lock +7 -7
- data/README.md +17 -16
- data/docs/features.md +397 -222
- data/emasser.gemspec +1 -1
- data/lib/emasser/configuration.rb +4 -4
- data/lib/emasser/constants.rb +0 -4
- data/lib/emasser/delete.rb +78 -16
- data/lib/emasser/get.rb +416 -209
- data/lib/emasser/help/artifacts_del_mapper.md +2 -2
- data/lib/emasser/help/milestone_del_mapper.md +1 -1
- data/lib/emasser/help/poam_del_mapper.md +1 -1
- data/lib/emasser/output_converters.rb +14 -4
- data/lib/emasser/version.rb +1 -1
- metadata +4 -4
@@ -4,6 +4,6 @@ Provide single file or a space/comma delimited list of file names to be removed
|
|
4
4
|
|
5
5
|
Example:
|
6
6
|
|
7
|
-
bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value]
|
7
|
+
bundle exec exe/emasser delete artifacts remove -s, --systemId [value] -f, --files [value]
|
8
8
|
or
|
9
|
-
bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value ... value]
|
9
|
+
bundle exec exe/emasser delete artifacts remove -s, --systemId [value] -f, --files [value ... value]
|
@@ -8,4 +8,4 @@ The last milestone can not be deleted, at-least on must exist.
|
|
8
8
|
|
9
9
|
Example:
|
10
10
|
|
11
|
-
bundle exec exe/emasser delete milestones remove--systemId [value] --poamId [value] --milestoneId [value]
|
11
|
+
bundle exec exe/emasser delete milestones remove -s, --systemId [value] -p, --poamId [value] -m, --milestoneId [value]
|
@@ -79,7 +79,9 @@ module OutputConverters
|
|
79
79
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Style/TernaryParentheses
|
80
80
|
# rubocop:enable Style/IfWithBooleanLiteralBranches, Style/RescueStandardError, Metrics/BlockNesting
|
81
81
|
|
82
|
+
# rubocop:disable Style/RedundantReturn
|
82
83
|
# rubocop:disable Style/IdenticalConditionalBranches
|
84
|
+
# rubocop:disable Metrics/BlockNesting, Style/RescueStandardError
|
83
85
|
# rubocop:disable Performance/RedundantMatch, Performance/RegexpMatch
|
84
86
|
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
85
87
|
def change_to_datetime(obj)
|
@@ -98,18 +100,26 @@ module OutputConverters
|
|
98
100
|
obj_entry[key] = hash_array
|
99
101
|
data_obj.merge!(obj_entry)
|
100
102
|
else
|
103
|
+
date_value = value
|
101
104
|
if /(DATE|TIMESTAMP|LASTSEEN|TIME|ATD)/.match(key.to_s.upcase)
|
102
|
-
|
105
|
+
begin
|
106
|
+
date_value = Integer(value)
|
107
|
+
if date_value > 100000000
|
108
|
+
date_value = value.nil? ? value : Time.at(date_value)
|
109
|
+
end
|
110
|
+
rescue
|
111
|
+
date_value
|
112
|
+
end
|
103
113
|
end
|
104
|
-
obj_entry[key] =
|
114
|
+
obj_entry[key] = date_value
|
105
115
|
data_obj.merge!(obj_entry)
|
106
116
|
end
|
107
117
|
end
|
108
|
-
# rubocop:disable Style/RedundantReturn
|
109
118
|
return data_obj
|
110
|
-
# rubocop:enable Style/RedundantReturn
|
111
119
|
end
|
120
|
+
# rubocop:enable Style/RedundantReturn
|
112
121
|
# rubocop:enable Style/IdenticalConditionalBranches
|
122
|
+
# rubocop:enable Metrics/BlockNesting, Style/RescueStandardError
|
113
123
|
# rubocop:enable Performance/RedundantMatch, Performance/RegexpMatch
|
114
124
|
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
115
125
|
end
|
data/lib/emasser/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emasser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amndeep Singh Mann
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2023-
|
15
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activesupport
|
@@ -96,14 +96,14 @@ dependencies:
|
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '3.
|
99
|
+
version: '3.12'
|
100
100
|
type: :runtime
|
101
101
|
prerelease: false
|
102
102
|
version_requirements: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '3.
|
106
|
+
version: '3.12'
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: bundler
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|