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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 969f73b4e3218c8658ecb64ed8c23e4e2ba5456882c8c7ce0b023df273743127
4
- data.tar.gz: 9bd02ef303cf885249ffe6d2991fd869f07e3ce69ca7ebf6097230b6bf8ed263
3
+ metadata.gz: edc05e2758e3747ad424a36f97920ba9cc391af0c455e8d64bcf0ef7c10fa1f4
4
+ data.tar.gz: 5a387045ebdff1edf2ee26eed149637025cb8c116c2777d6a42de3c47d98d493
5
5
  SHA512:
6
- metadata.gz: 169097574d58f765beee12184ed050ae7ebff5ad9105e6e661df4959a45bdd198ef0196dff3bac5c57cdd828a175a85fc44d69a69f7120a89ef9c6a0839a614c
7
- data.tar.gz: 985c317f6a1dbc4ecd9458862473e760ae217e1d13bab888283bcce1e2bec7239d5c63ee6d4fbd1a425fa651eea3b022b448e1b129316e4afc7e5cbe2d9f5c31
6
+ metadata.gz: 5a0acd02e5ddea2c8a8b71348ba12de111a0e886cc2b4c2accd9cff3ced575fb15fa3a32f57fc8ddb2ade088fd30698c03cf43aa2d420d486be845d6b14c6df4
7
+ data.tar.gz: 9aadba08caf2bccf9466654e08eb491a62f868e273f60288f1a5db24169ce934a84b6f190bebc367f881904786e44df12f83c675feb84baf46d7dad5ba6c4228
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- birdspotting (0.1.1)
4
+ birdspotting (0.1.2)
5
5
  activerecord (~> 5.0)
6
6
 
7
7
  GEM
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.start_check_at = nil
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
- `start_check_at` allows to start the checks after some migration version only. Set it to a migration
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 :start_check_at,
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.start_check_at = nil
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.start_check_at &&
93
- version <= Birdspotting.configuration.start_check_at
92
+ Birdspotting.configuration.start_check_at_version &&
93
+ version <= Birdspotting.configuration.start_check_at_version
94
94
  end
95
95
 
96
96
  end
@@ -1,3 +1,3 @@
1
1
  module Birdspotting
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birdspotting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drivy