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: ca169d2d5a7667dd41da06e6c0f701a107778a78
4
- data.tar.gz: 92443233a03ffd40c24c2ef6470f5a93920e1daa
3
+ metadata.gz: b647580fc6dc97b0fdf2837d19fa4f556535e73e
4
+ data.tar.gz: ec9bb26fe3c01c2aba83654870d45603484fc956
5
5
  SHA512:
6
- metadata.gz: f70e4c7c1565859b6210a114e693b54adbf21c257bd2ef5bd750b2c1c72645cd2c4c4cc77c54d0985e1b1f47a64496c22add91d53f80c0869421bd63f4a80fa9
7
- data.tar.gz: 3f37bb868746d18a5d008c58c7469e835b975747d3e68c76d5dca36ac9ad0ff02672a0c040ff9c3f3ef7d0cfcebb7368ba3ee150d22400c611e537f28d77023c
6
+ metadata.gz: 6d7970d73f49b208dc3824c5e6cbd13b9eba204a13b2bdd748eb417e7f6e7b525bc290738e49ac3052cc3ba07c2cb92ae0b5c95a1c51c7f560f6ffa687df26ad
7
+ data.tar.gz: a9af3dbc02892b411535b1c27e9b2dc739a5fb3787cd61cd6db34f40a0ac284de4059e84a878590f29c9abc6915661a99b2453d1e9aa5498c4bd6e8641f02e5a
@@ -1,3 +1,3 @@
1
1
  module ConsistencyCheck
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -3,7 +3,7 @@ require 'consistency_check/runner'
3
3
 
4
4
  module ConsistencyCheck
5
5
  def run_all
6
- ConsistencyCheck::Definitions.methods(false ).map do |method|
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
@@ -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.0
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
@@ -1,5 +0,0 @@
1
- module ConsistencyCheck
2
- class Runner
3
-
4
- end
5
- end