hekenga 1.0.0 → 1.0.2

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: 4befa0d3716a0609575aa42f35fe126b854365f5e348ecb6b8babff4912e2522
4
- data.tar.gz: 674e20c142d8b8ebc0f51e75a4a372912359c196247471170c5ddae2c317c294
3
+ metadata.gz: 9b18d64f1af77f6390dc9205309821a4001a0a525dea11587786fda45df36867
4
+ data.tar.gz: f58dab795859624b4ba7b22d8ca9c69c25780afdb5b905d671b5af59ae590f9f
5
5
  SHA512:
6
- metadata.gz: 6625430dc0dc24bf821e7c584fa1141362de50effdf5606ed53583b77d20b8e79b7bd17680128b25e736c24a8fb41b58169f9a0b106bd693165abfec339c49b2
7
- data.tar.gz: 84a0af87ac9b21acc5253206d4de311adc6b5edbe47303894aeb1eb169ac89365f6338f79f67257478cc744ad98d8a23fe8002ee67c64b276f0a5e33be214685
6
+ metadata.gz: 57ac85c8a45fb1519f198336013a21b1f4c47ff030366eacbfb154bf492d2cc402fbfe7b61108b7c286ebfc2436983d0b621a34d4c53fdc9e03adc852ac62793
7
+ data.tar.gz: 252990381afa7b2e43486c6724c667e9a2666407f3b42e080b845177d0204fedae289f4248db9dee938a1d5990bf727e4e2a1787215d5e607da99c9ee6de08f1
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  *.gem
11
11
  todo.txt
12
+ .versions.conf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.2
4
+
5
+ - Fix `skip_prepare!` being ignored
6
+
7
+ ## v1.0.1
8
+
9
+ - Generate migrations without : in the filename for windows
10
+
3
11
  ## v1.0.0
4
12
 
5
13
  - `hekenga run!` now has a `--clear` option to clear the migration prior to running it
@@ -120,7 +120,9 @@ 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 {|record| record.send(:prepare_update) {}}
125
+ end
124
126
 
125
127
  case task.write_strategy
126
128
  when :delete_then_insert
@@ -16,7 +16,8 @@ module Hekenga
16
16
  end
17
17
 
18
18
  def to_path
19
- @path ||= File.join(Hekenga.config.abs_dir, @migration.to_key+".rb")
19
+ @path ||= File.join(Hekenga.config.abs_dir, @migration.to_key.gsub(/\:/, '-') +
20
+ '.rb')
20
21
  end
21
22
 
22
23
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Hekenga
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hekenga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen