emasser 3.10.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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]
@@ -2,4 +2,4 @@ Remove one or many poa&m items in a system
2
2
 
3
3
  Example:
4
4
 
5
- bundle exec exe/emasser delete poams remove --systemId [value] --poamId [value]
5
+ bundle exec exe/emasser delete poams remove -s, --systemId [value] -p, --poamId [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
- value = value.nil? ? value : Time.at(value.to_i)
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] = value
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emasser
4
- VERSION = '3.10.0'
4
+ VERSION = '3.12.0'
5
5
  end
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.10.0
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-06-27 00:00:00.000000000 Z
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.10'
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.10'
106
+ version: '3.12'
107
107
  - !ruby/object:Gem::Dependency
108
108
  name: bundler
109
109
  requirement: !ruby/object:Gem::Requirement