ledger_sync-domains 1.1.3 → 1.1.4

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: 5265bf9fa4013d199f6b6c3d0a598badb5b7e6fd82a6c4ae33ddc59871ba092a
4
- data.tar.gz: ba7d0a065d695fe4b4a15272f468d69412b30e73a1ef01c7c19abb53dd00c05a
3
+ metadata.gz: 14d7f7a6ce94ba69c8e10a5aba3719bce8c2789fc9fdd9fdc599884a3391a32f
4
+ data.tar.gz: c5b7a3caee8948c730e0afe84eef573f686c0b6b4ca6efc5330a7893e8fdac61
5
5
  SHA512:
6
- metadata.gz: 4ecc62ebb4abfd8eb5ca354a80467657a87eee2e306bd54b05ff84572630583ccb78e7f0365c33d36701da4e790b5bcf794f50fcb784472a3444174d9a2fecb5
7
- data.tar.gz: 988c7af469fa5dce665c0258eea9eb21f5f2364f8e8950c52873fb5251da3b938a256d6831ba266251308520ec33523adb47a38e14f49171748aa706638dbf6f
6
+ metadata.gz: 8c99ee3e2b9d0260aecda2f27663fb61c469957530d73813185c06d6bf0e2fa44941e07924a41f2a8b55697ae58580a1867f0ed289ed630ae0e0f1d202abe534
7
+ data.tar.gz: d933fa1ab6c3876a16890b93c7e33ff0eacbbfd08d219ac5bae93a368fc7d7317a9fc7bc9bfd47f2e0d3d79af3f2f92f3841ab1828557c239b3278c2dcc16603
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.1.4] - 2022-05-26
4
+
5
+ - Feature: Operation accepts custom serializer
6
+
3
7
  ## [1.1.3] - 2022-04-08
4
8
 
5
9
  - Fix: Nasty typo
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ledger_sync-domains (1.1.3)
4
+ ledger_sync-domains (1.1.4)
5
5
  ledger_sync (~> 2.3.1)
6
6
 
7
7
  GEM
@@ -20,7 +20,7 @@ GEM
20
20
  concurrent-ruby (1.1.9)
21
21
  diff-lcs (1.4.4)
22
22
  dotenv (2.7.6)
23
- dry-configurable (0.14.0)
23
+ dry-configurable (0.15.0)
24
24
  concurrent-ruby (~> 1.0)
25
25
  dry-core (~> 0.6)
26
26
  dry-container (0.9.0)
@@ -103,7 +103,7 @@ GEM
103
103
  simply_serializable (>= 1.5.1)
104
104
  minitest (5.15.0)
105
105
  multipart-post (2.1.1)
106
- nokogiri (1.13.3-x86_64-linux)
106
+ nokogiri (1.13.6-x86_64-linux)
107
107
  racc (~> 1.4)
108
108
  openssl (2.2.1)
109
109
  ipaddr
@@ -60,8 +60,9 @@ module LedgerSync
60
60
 
61
61
  attr_reader :params, :result
62
62
 
63
- def initialize(domain:, **params)
63
+ def initialize(domain:, serializer: nil, **params)
64
64
  @domain = domain
65
+ @serializer = serializer
65
66
  @params = params
66
67
  @result = nil
67
68
  end
@@ -112,7 +113,7 @@ module LedgerSync
112
113
  end
113
114
 
114
115
  def serializer_for(resource:)
115
- serializer_class_for(resource: resource).new
116
+ @serializer || serializer_class_for(resource: resource).new
116
117
  end
117
118
 
118
119
  def serializer_class_for(resource:)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module LedgerSync
4
4
  module Domains
5
- VERSION = '1.1.3'
5
+ VERSION = '1.1.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ledger_sync-domains
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jozef Vaclavik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-08 00:00:00.000000000 Z
11
+ date: 2022-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ledger_sync