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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dacec3e0a6c1fa83b9d6ab56a73e89718ec8a05abc97faad0bffc8e1abfd06cf
4
- data.tar.gz: 531551d591e30e5963bde825412f0611d4b2aacb899db8438c5e27e7bb6725df
3
+ metadata.gz: 3fa142f62bf64fea52b94bf48ae3b3140abaf43b24fdcfdf9d761325100acb9b
4
+ data.tar.gz: e9202b064a058c7371956b5ee3256d45892ff61e8aeb8d0958aa22cb8f5168fd
5
5
  SHA512:
6
- metadata.gz: 7871de24cb6a5ee01b3d322c3eb1f608771fc295a465d17f9cb5b8972133f07b356f9f6d07303827828a1427f012a874b87bd1def683e3bcf54359d45ced25c4
7
- data.tar.gz: 370375bb5373b1d84fdf26fde1fd92d449e09b65cc106645806796229f541c4c0491c11c139058e7c23b6712fbcf784bf10499a20bc4a35396a47ec539e04fce
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Reportinator
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
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.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-28 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel