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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 703130e1a092c3fdff5a5ada5c83d10371a33ee7f4f45c770e9c4dd48fe20c1d
4
- data.tar.gz: 1bc7d081106b6aeb2544f504485ec62a6e5eb7a6c6eb6e2d06aa48413d43cdfd
3
+ metadata.gz: 979b79907f09475cf112a2b921326b5f1725b2231878ec5c2b182c5179f0c12c
4
+ data.tar.gz: d74fd6fb5a73eaec7cc6447c239c1b51eb7a1a7718ec010121d52f43df551c4a
5
5
  SHA512:
6
- metadata.gz: efb76a18e1c8d417a73114953a08901add1c282876747dd550d4ee3c7705881fa77f9394cb152e3efe9de404090ebf716ddd69f9f73a013615498b0e7bcdef0c
7
- data.tar.gz: 98f5481ee75be205f2e27938c46ebf82b54ede70248fd052a4ef5bce3a14bf574171364485d1e1d465b42801b0a820e55b3d1f3ae5f920497f92d4488351c911
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 = datum.merge(default_values)
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| d.merge(default_values) }
24
+ data.map! { |d| default_values.merge(d) }
25
25
 
26
26
  insert_data = type_cast(data)
27
27
  if first_sync_time_key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSync
4
- VERSION = "1.12.0"
4
+ VERSION = "1.12.1"
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memery