hekenga 1.0.1 → 1.0.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: 7a38cb70bbe202d2aecd3f16353ca659aca7b50e4d90d91d6437040439f5b356
4
- data.tar.gz: cbb4e9a75fdf27338c91960182ebd9e0c11069869a74536fc6b2c00e2c044533
3
+ metadata.gz: 4a5b2feed38ae6373320ea9097c0677cd3ba26c9ed72485d802abf846c4474d4
4
+ data.tar.gz: bbdaadd072871e04936b451f584c1ff72e111a7d26993b9e87c58df9f50fd7f7
5
5
  SHA512:
6
- metadata.gz: a25a854810fde682c314bc2c690f8619785410e38f049ed3f9ddd2628d926b6600d48e45f34cf86d3fc15f941f756f7f1ab436c762d5936749a97f3db948febe
7
- data.tar.gz: 75a06ce6490d6710ec8116fa68c00ff447a7ffc650b945f511e0a5ebb1213e6e5ff03f7f719ec36934139f9661c0399400009706e22526166486ec5ff2e036a5
6
+ metadata.gz: 1f93f0e083ca321cdc5be3ade1c8e32ec72ac57c4520073e91b8b6bede680a88dd13d921cc8efdc45b6352b307a9996f92c10c1eac4cf61c5857fd6eaf7ae250
7
+ data.tar.gz: 8dca120b22a5a4a270f8649f8dfa53609d11c803b17dd901c0a2f0e524b25bb91a9ae342c6782a2d60d59a8a29abc8c9c285a099772ca4403bb91c254d9a0a93
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.3
4
+
5
+ - Fix `timeless!` being ignored
6
+
7
+ ## v1.0.2
8
+
9
+ - Fix `skip_prepare!` being ignored
10
+
3
11
  ## v1.0.1
4
12
 
5
13
  - Generate migrations without : in the filename for windows
@@ -120,7 +120,15 @@ module Hekenga
120
120
  return if records_to_write.empty?
121
121
  return if task_record.test_mode
122
122
 
123
- records_to_write.each {|record| record.send(:prepare_update) {}}
123
+ unless task.skip_prepare
124
+ records_to_write.each do |record|
125
+ if task.timeless
126
+ record.timeless
127
+ else
128
+ record
129
+ end.send(:prepare_update) {}
130
+ end
131
+ end
124
132
 
125
133
  case task.write_strategy
126
134
  when :delete_then_insert
@@ -1,3 +1,3 @@
1
1
  module Hekenga
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hekenga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-27 00:00:00.000000000 Z
11
+ date: 2023-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler