paquito 0.6.2 → 0.7.0

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: 4cafb8418a35a2c05c91af1a49f3deb2a025b0f1d68ae7ca3ac21c6e0b81b79a
4
- data.tar.gz: 59f193750cd85c9f6664547f01665866af0f17ee43b371e89cee21d999aadf20
3
+ metadata.gz: ae7b47980ce61a6b1c3d650217d29a5c196df0c69470a36b74f643d0ded5334c
4
+ data.tar.gz: 06a85f164bcf5a0e472b4ebf41ce1a9680f71557663ed3176cb7e0df368e460b
5
5
  SHA512:
6
- metadata.gz: 2b04f0da342fc419646fdc20f147f1aa05bd357c1a42cec8802739fc6bd7858b5deabfeef9a1e1542e1edc68bf4a0807acbe7a306da55786b2a861c31046a198
7
- data.tar.gz: 8f2eb1d10755847d5a2a6d15fd5a67304d671f35805ed1b97123c0a981cf77eabebe2f0a8daeee438d09fd25e0bd7a59ecf34c132892823aff84274a64fac70a
6
+ metadata.gz: 7fcc3454d84b6cfac7ffe5f3b33780fc23aa609cad375db0e35b43a28582fc3b5dbb6913fc1b3e991b1f034418abe9dbd8c0d673f28e591fc8dee001eefd7c1c
7
+ data.tar.gz: 2baa0d2518993e2e140f5e989ede70a0d9aa19edb2361414bb6375a6161db0424fcbf7ab03f8f8e531ff0cef9160ea2fa0708afb345b6d3f2d2b3dcdeec332fa
data/CHANGELOG.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.7.0
4
+
5
+ * Make ActiveRecordCoder now encode wether records were persisted or not (#12).
6
+ This change is backward compatible with Paquito 0.6.2 but NOT OLDER VERSIONS.
7
+
3
8
  # 0.6.2
4
9
 
5
- * Make ActiveRecordCoder handle to read payloads that will be generated by Paquito 0.7.0 (#12).
10
+ * Make ActiveRecordCoder able to read payloads that will be generated by Paquito 0.7.0 (#12).
6
11
  DO NOT upgrade to Paquito 0.7.0+ without first fully rolling out Paquito 0.6.2.
7
12
 
8
13
  # 0.6.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paquito (0.6.2)
4
+ paquito (0.7.0)
5
5
  msgpack (>= 1.5.2)
6
6
 
7
7
  GEM
@@ -87,7 +87,9 @@ module Paquito
87
87
  end
88
88
 
89
89
  def serialize_record(record)
90
- [record.class.name, attributes_for_database(record)]
90
+ arguments = [record.class.name, attributes_for_database(record)]
91
+ arguments << true if record.new_record?
92
+ arguments
91
93
  end
92
94
 
93
95
  def attributes_for_database(record)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paquito
4
- VERSION = "0.6.2"
4
+ VERSION = "0.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paquito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack