table_sync 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/table_sync/model/active_record.rb +1 -1
- data/lib/table_sync/model/sequel.rb +1 -1
- data/lib/table_sync/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: 979b79907f09475cf112a2b921326b5f1725b2231878ec5c2b182c5179f0c12c
|
4
|
+
data.tar.gz: d74fd6fb5a73eaec7cc6447c239c1b51eb7a1a7718ec010121d52f43df551c4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89efc1b8b42c8ab941afdda6d0ba688b279a8c4f1caf6fd9898a14406088ef7e26dcd452a2538542551e0c8606a47097799477f581d9e991f40999ce119ce30
|
7
|
+
data.tar.gz: 46c2d7c70a6faf75cd4b7edddaa834b7e842c7e8450c28f7c5c0609824bda56e4bae4b6224346af0420ed59d70c0c6213523615068031a838640dce4ecdcdb1f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## [1.12.1] - 2019-09-27
|
5
|
+
### Fixed
|
6
|
+
- The `default_values` option no longer overrides original values.
|
7
|
+
|
4
8
|
## [1.12.0] - 2019-09-20
|
5
9
|
### Changed
|
6
10
|
- Payload for existing ActiveSupport adapter contains both `table` and `schema` fields now.
|
@@ -65,7 +65,7 @@ module TableSync::Model
|
|
65
65
|
|
66
66
|
row.update!(datum)
|
67
67
|
else
|
68
|
-
create_data =
|
68
|
+
create_data = default_values.merge(datum)
|
69
69
|
create_data[first_sync_time_key] = Time.current if first_sync_time_key
|
70
70
|
row = raw_model.create!(create_data)
|
71
71
|
end
|
@@ -21,7 +21,7 @@ module TableSync::Model
|
|
21
21
|
::Sequel.qualify(:excluded, version_key)
|
22
22
|
|
23
23
|
upd_spec = update_spec(data.first.keys - target_keys)
|
24
|
-
data.map! { |d|
|
24
|
+
data.map! { |d| default_values.merge(d) }
|
25
25
|
|
26
26
|
insert_data = type_cast(data)
|
27
27
|
if first_sync_time_key
|
data/lib/table_sync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Umbrellio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: memery
|