dozer 0.3.2 → 0.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: 87b4851a11a83f14e78ff8c3f3c975a42eb70a88d4dc6e4c9e6bea83e475374b
4
- data.tar.gz: 74dea50634b680aa55ad6c65e041f32e4709a00bd21e2568196c0568dd2a5d59
3
+ metadata.gz: 62030399ff459ea3faa84a94ad61a07fbe6346bc4d44dd624ebbc45e77d6fb94
4
+ data.tar.gz: 01fc7b2747cc0e20d5c120aa54fe440f4bb7f319dcb5ceb443db413644534190
5
5
  SHA512:
6
- metadata.gz: 9091b06596a3ec2adbe8584ca03df3253e6f8fc6bb692f725659c31a73f93ed8156eb27577adbf51e5de8620a65f51620dad040811f37888ae054b34c7e03646
7
- data.tar.gz: 0d9f6f598cab72c01c8e60ea6eff1899d07e4c96195f1403e76ec3beae00356660ef4d22bdea8de02373d6d30e9bbc8ef3b86f835f259a605387f43dc3b59ef4
6
+ metadata.gz: 43f96e33fcde5a798e5994f47e8cb3b3f0cb76c47f320d04e8b766d40e1afa552fc72174e94074e6740b8077627386fd000954ed2f14644a404aa37c8314a72d
7
+ data.tar.gz: ab843c5dde18a4b7e02d6983d92fa26b2a664314e011b8c96b280a2e2b0dbfc0c57abc4cab4de0aac547d4d2fed303955cced5aed354fffe7dc54812ef0fbc8d
@@ -6,11 +6,11 @@ module Dozer
6
6
  attr_accessor :input, :output, :options
7
7
  end
8
8
 
9
- def initialize(input, data)
9
+ def initialize(input, data = {})
10
10
  @input = input.with_indifferent_access
11
11
  @output = ActiveSupport::HashWithIndifferentAccess.new
12
- @options = data.with_indifferent_access
13
- end
12
+ @options = data&.with_indifferent_access || {}
13
+ end
14
14
 
15
15
  module ClassMethods
16
16
 
data/lib/dozer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dozer
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dozer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Workstream.us
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler