consistency_check 0.1.0 → 0.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b647580fc6dc97b0fdf2837d19fa4f556535e73e
|
4
|
+
data.tar.gz: ec9bb26fe3c01c2aba83654870d45603484fc956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d7970d73f49b208dc3824c5e6cbd13b9eba204a13b2bdd748eb417e7f6e7b525bc290738e49ac3052cc3ba07c2cb92ae0b5c95a1c51c7f560f6ffa687df26ad
|
7
|
+
data.tar.gz: a9af3dbc02892b411535b1c27e9b2dc739a5fb3787cd61cd6db34f40a0ac284de4059e84a878590f29c9abc6915661a99b2453d1e9aa5498c4bd6e8641f02e5a
|
data/lib/consistency_check.rb
CHANGED
@@ -3,7 +3,7 @@ require 'consistency_check/runner'
|
|
3
3
|
|
4
4
|
module ConsistencyCheck
|
5
5
|
def run_all
|
6
|
-
ConsistencyCheck::Definitions.methods(false
|
6
|
+
ConsistencyCheck::Definitions.methods(false).map do |method|
|
7
7
|
puts "Running #{method}..."
|
8
8
|
violations = ConsistencyCheck::Definitions.send method
|
9
9
|
max_shown_violations = 5
|
data/lib/generators/consistency_check/install/templates/jobs/consistency_check/definitions.rb.erb
CHANGED
@@ -3,7 +3,7 @@ module ConsistencyCheck
|
|
3
3
|
# If you want to perform check in a way depending on DB version:
|
4
4
|
# POSTGRES_VERSION = ActiveRecord::Base.connection.select_value('SHOW server_version;')
|
5
5
|
|
6
|
-
def dummy_check
|
6
|
+
def self.dummy_check
|
7
7
|
# Perform some check and return list of models that violate the consistency
|
8
8
|
[]
|
9
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consistency_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Kováč
|
@@ -98,7 +98,6 @@ files:
|
|
98
98
|
- bin/setup
|
99
99
|
- consistency_check.gemspec
|
100
100
|
- lib/consistency_check.rb
|
101
|
-
- lib/consistency_check/runner.rb
|
102
101
|
- lib/consistency_check/version.rb
|
103
102
|
- lib/generators/consistency_check/install/install_generator.rb
|
104
103
|
- lib/generators/consistency_check/install/templates/jobs/consistency_check/definitions.rb.erb
|