birdspotting 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/birdspotting/configuration.rb +2 -2
- data/lib/birdspotting/schema_statements.rb +2 -2
- data/lib/birdspotting/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edc05e2758e3747ad424a36f97920ba9cc391af0c455e8d64bcf0ef7c10fa1f4
|
4
|
+
data.tar.gz: 5a387045ebdff1edf2ee26eed149637025cb8c116c2777d6a42de3c47d98d493
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a0acd02e5ddea2c8a8b71348ba12de111a0e886cc2b4c2accd9cff3ced575fb15fa3a32f57fc8ddb2ade088fd30698c03cf43aa2d420d486be845d6b14c6df4
|
7
|
+
data.tar.gz: 9aadba08caf2bccf9466654e08eb491a62f868e273f60288f1a5db24169ce934a84b6f190bebc367f881904786e44df12f83c675feb84baf46d7dad5ba6c4228
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -31,7 +31,7 @@ You can configure the gem (for instance by creating a `config/initializers/birds
|
|
31
31
|
|
32
32
|
```ruby
|
33
33
|
Birdspotting.configure do |config|
|
34
|
-
config.
|
34
|
+
config.start_check_at_version = nil
|
35
35
|
config.check_bypass_env_var = "BYPASS_SCHEMA_STATEMENTS_CHECK"
|
36
36
|
|
37
37
|
config.add_column_position_check = true
|
@@ -49,7 +49,7 @@ end
|
|
49
49
|
|
50
50
|
#### Common configuration
|
51
51
|
|
52
|
-
`
|
52
|
+
`start_check_at_version` allows to start the checks after some migration version only. Set it to a migration
|
53
53
|
timestamp like 20151209000000 for instance. When nil, all migrations will be checked.
|
54
54
|
|
55
55
|
`check_bypass_env_var` specify the ENV var allowing to bypass the checks. Use it to bypass temporarily all the checks so you do it intentionally. You can set it to any value, it's just testing it's set.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
class Birdspotting::Configuration
|
2
|
-
attr_accessor :
|
2
|
+
attr_accessor :start_check_at_version,
|
3
3
|
:check_bypass_env_var,
|
4
4
|
:add_column_position_check,
|
5
5
|
:encoding_check,
|
@@ -10,7 +10,7 @@ class Birdspotting::Configuration
|
|
10
10
|
|
11
11
|
def self.default
|
12
12
|
new.tap do |config|
|
13
|
-
config.
|
13
|
+
config.start_check_at_version = nil
|
14
14
|
config.check_bypass_env_var = "BYPASS_SCHEMA_STATEMENTS_CHECK"
|
15
15
|
config.add_column_position_check = true
|
16
16
|
config.encoding_check = true
|
@@ -89,8 +89,8 @@ module Birdspotting::SchemaStatements
|
|
89
89
|
|
90
90
|
def checkable_version?
|
91
91
|
version &&
|
92
|
-
Birdspotting.configuration.
|
93
|
-
version <= Birdspotting.configuration.
|
92
|
+
Birdspotting.configuration.start_check_at_version &&
|
93
|
+
version <= Birdspotting.configuration.start_check_at_version
|
94
94
|
end
|
95
95
|
|
96
96
|
end
|
data/lib/birdspotting/version.rb
CHANGED