consistency_check 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
  SHA1:
3
- metadata.gz: b647580fc6dc97b0fdf2837d19fa4f556535e73e
4
- data.tar.gz: ec9bb26fe3c01c2aba83654870d45603484fc956
3
+ metadata.gz: 2a89b8eaf9a30af66f270d05944debd7f402a80b
4
+ data.tar.gz: 763520b69dc28e9b5cf9b1c6984a3fab6deceb96
5
5
  SHA512:
6
- metadata.gz: 6d7970d73f49b208dc3824c5e6cbd13b9eba204a13b2bdd748eb417e7f6e7b525bc290738e49ac3052cc3ba07c2cb92ae0b5c95a1c51c7f560f6ffa687df26ad
7
- data.tar.gz: a9af3dbc02892b411535b1c27e9b2dc739a5fb3787cd61cd6db34f40a0ac284de4059e84a878590f29c9abc6915661a99b2453d1e9aa5498c4bd6e8641f02e5a
6
+ metadata.gz: 2baf92580bb97393b96cbdfea40742ddfc97f2277aeaa9e02ebc4450b20c6479fe871a772c9cfc55aeda6aadd9bc7333b55239cb897a5f7287e22ccbcd6fc00d
7
+ data.tar.gz: a77fdd1097f1b6faf9fdd2e2631dc3d23c7671539e831b351485cecbb46109f600592c3e7f762ea1145c5895501128be03023259e36b963f688881f409dcfdfa
data/README.md CHANGED
@@ -32,6 +32,23 @@ Write your own consistency check definitions into the file `jobs/consistency_che
32
32
 
33
33
  $ ConsistencyCheck.run_all
34
34
 
35
+ Usage with [ActiveAdmin](https://github.com/activeadmin/activeadmin)
36
+
37
+ ```
38
+ ActiveAdmin.register ConsistencyCheckResult do
39
+ actions :index
40
+
41
+ action_item :run do
42
+ link_to 'Run all consistency checks', run_admin_consistency_check_results_path
43
+ end
44
+
45
+ collection_action :run do
46
+ ConsistencyCheck.run_all.map(&:save)
47
+ redirect_to admin_consistency_check_results_path
48
+ end
49
+ end
50
+ ```
51
+
35
52
  ## Contributing
36
53
 
37
54
  Bug reports and pull requests are welcome on GitHub at https://github.com/mirelon/consistency_check.
@@ -1,5 +1,4 @@
1
1
  require 'consistency_check/version'
2
- require 'consistency_check/runner'
3
2
 
4
3
  module ConsistencyCheck
5
4
  def run_all
@@ -1,3 +1,3 @@
1
1
  module ConsistencyCheck
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.1
4
+ version: 0.1.2
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-10-03 00:00:00.000000000 Z
11
+ date: 2018-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ~>
18
17
  - !ruby/object:Gem::Version
19
18
  version: '5.0'
20
- type: :runtime
19
+ name: rails
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: activerecord
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: '5.0'
34
- type: :runtime
33
+ name: activerecord
35
34
  prerelease: false
35
+ type: :runtime
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bundler
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - "~>"
44
+ - - ~>
46
45
  - !ruby/object:Gem::Version
47
46
  version: '1.16'
48
- type: :development
47
+ name: bundler
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.16'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - "~>"
58
+ - - ~>
60
59
  - !ruby/object:Gem::Version
61
60
  version: '10.0'
62
- type: :development
61
+ name: rake
63
62
  prerelease: false
63
+ type: :development
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - "~>"
72
+ - - ~>
74
73
  - !ruby/object:Gem::Version
75
74
  version: '5.0'
76
- type: :development
75
+ name: minitest
77
76
  prerelease: false
77
+ type: :development
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,24 @@ 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.6.11
127
- signing_key:
125
+ rubyforge_project:
126
+ rubygems_version: 2.4.8
127
+ signing_key:
128
128
  specification_version: 4
129
129
  summary: Run custom consistency checks against your DB and track the results.
130
130
  test_files: []