reportinator 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/reportinator/parsers/value.rb +4 -1
- data/lib/reportinator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fa142f62bf64fea52b94bf48ae3b3140abaf43b24fdcfdf9d761325100acb9b
|
4
|
+
data.tar.gz: e9202b064a058c7371956b5ee3256d45892ff61e8aeb8d0958aa22cb8f5168fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8897b1b8cbf446d24b682e5d443433e061f2b5ae06f22c3962823a35faadd0f41f4c05300174452b711bfd894fe1a17d3fcb658814528511c72241825ed571a5
|
7
|
+
data.tar.gz: 846c99513a7b0e36767853e4f1dafb138040f4a661c7104c7bd3a101868ab4511b74629e85b27049781182a3aaa4620faf5ab3cbd990f11509693d756b649aaf
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [0.3.4] 2022-11-29
|
9
|
+
### Fixed
|
10
|
+
- Strings, Arrays and Hashes are now duplicated regardless of the ValueParser parameter
|
11
|
+
|
8
12
|
## [0.3.3] 2022-11-28
|
9
13
|
### Fixed
|
10
14
|
- Target parsed by ValueParser.parse_and_execute method no longer is duplicated
|
@@ -1,10 +1,13 @@
|
|
1
1
|
module Reportinator
|
2
|
-
class ValueParser < Parser
|
2
|
+
class ValueParser < Parser
|
3
|
+
FORCE_DUP = [String, Hash, Array]
|
4
|
+
|
3
5
|
attribute :element
|
4
6
|
attribute :metadata, default: {}
|
5
7
|
|
6
8
|
def self.parse(element, metadata = {}, dup = true)
|
7
9
|
metadata = metadata.present? ? metadata : {}
|
10
|
+
dup = true if FORCE_DUP.include? element.class
|
8
11
|
input_element = (dup ? element.dup : element)
|
9
12
|
new(element: input_element, metadata: metadata).output
|
10
13
|
rescue => e
|
data/lib/reportinator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reportinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moxvallix
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|