consistency_check 0.1.2 → 0.2.0

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
- SHA1:
3
- metadata.gz: 2a89b8eaf9a30af66f270d05944debd7f402a80b
4
- data.tar.gz: 763520b69dc28e9b5cf9b1c6984a3fab6deceb96
2
+ SHA256:
3
+ metadata.gz: 4462c6d374642bc6b221768f284a436c512bb39757b4edc41bbd9aa3e92c10f0
4
+ data.tar.gz: '0369f4658e334b1897275d2f27d7442bc4d321e8b0ad5d8cca2cfdedd0b33182'
5
5
  SHA512:
6
- metadata.gz: 2baf92580bb97393b96cbdfea40742ddfc97f2277aeaa9e02ebc4450b20c6479fe871a772c9cfc55aeda6aadd9bc7333b55239cb897a5f7287e22ccbcd6fc00d
7
- data.tar.gz: a77fdd1097f1b6faf9fdd2e2631dc3d23c7671539e831b351485cecbb46109f600592c3e7f762ea1145c5895501128be03023259e36b963f688881f409dcfdfa
6
+ metadata.gz: 2c42b885ad99aba7e3950475749c44d3a0dd922bc8172d55a09060dfb60e7d5c599c3fc72dfe816798f13ae42249473ffc42ebbdf187193cb063efd094715d6b
7
+ data.tar.gz: 5f7a213681a986ebd89ab5cd9f04e7271cbc510eef1e1c1af3f50923921985887215478d2316ecf9040ed14d283e4605dce0c346a12e0a1debffae40bfcd82a1
@@ -20,9 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "rails", "~> 5.0"
24
- spec.add_runtime_dependency "activerecord", "~> 5.0"
25
- spec.add_development_dependency "bundler", "~> 1.16"
26
- spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_runtime_dependency "rails", "~> 6.0"
24
+ spec.add_runtime_dependency "activerecord", "~> 6.0"
25
+ spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "rake", "~> 12.0"
27
27
  spec.add_development_dependency "minitest", "~> 5.0"
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module ConsistencyCheck
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,11 +1,10 @@
1
1
  require 'consistency_check/version'
2
2
 
3
3
  module ConsistencyCheck
4
- def run_all
4
+ def run_all(max_shown_violations = 5)
5
5
  ConsistencyCheck::Definitions.methods(false).map do |method|
6
6
  puts "Running #{method}..."
7
7
  violations = ConsistencyCheck::Definitions.send method
8
- max_shown_violations = 5
9
8
  first_violations_ids = violations.take(max_shown_violations).map(&:id).join(',')
10
9
  optional_ellipsis = violations.to_a.count > max_shown_violations ? '...' : ''
11
10
  result = violations.empty? ? 'OK' : "FAIL (#{violations.to_a.count} violations: #{first_violations_ids}#{optional_ellipsis})"
metadata CHANGED
@@ -1,94 +1,94 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consistency_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kováč
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: rails
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
- - - ~>
17
+ - - "~>"
17
18
  - !ruby/object:Gem::Version
18
- version: '5.0'
19
- name: rails
20
- prerelease: false
19
+ version: '6.0'
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: activerecord
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
- version: '5.0'
33
- name: activerecord
34
- prerelease: false
33
+ version: '6.0'
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '6.0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: bundler
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - ~>
45
+ - - "~>"
45
46
  - !ruby/object:Gem::Version
46
- version: '1.16'
47
- name: bundler
48
- prerelease: false
47
+ version: '2.0'
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: rake
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
- - - ~>
59
+ - - "~>"
59
60
  - !ruby/object:Gem::Version
60
- version: '10.0'
61
- name: rake
62
- prerelease: false
61
+ version: '12.0'
63
62
  type: :development
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '12.0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: minitest
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
- - - ~>
73
+ - - "~>"
73
74
  - !ruby/object:Gem::Version
74
75
  version: '5.0'
75
- name: minitest
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '5.0'
83
- description:
83
+ description:
84
84
  email:
85
85
  - miso@consistency_check.gem.ksp.sk
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".travis.yml"
92
92
  - CODE_OF_CONDUCT.md
93
93
  - Gemfile
94
94
  - LICENSE.txt
@@ -107,24 +107,23 @@ homepage: https://github.com/mirelon/consistency_check
107
107
  licenses:
108
108
  - MIT
109
109
  metadata: {}
110
- post_install_message:
110
+ post_install_message:
111
111
  rdoc_options: []
112
112
  require_paths:
113
113
  - lib
114
114
  required_ruby_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubyforge_project:
126
- rubygems_version: 2.4.8
127
- signing_key:
125
+ rubygems_version: 3.0.1
126
+ signing_key:
128
127
  specification_version: 4
129
128
  summary: Run custom consistency checks against your DB and track the results.
130
129
  test_files: []