the_schema_is 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +5 -0
- data/README.md +1 -1
- data/lib/the_schema_is/cops.rb +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c0bfc087833138e49b3723c6c8c7682899473ac1569b7a98d73c4aa86f62e7
|
4
|
+
data.tar.gz: c5e7980b3a600c1bfff051b719157c980cace74667db35517f225434e765e303
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89cff82616f4fa927e93268347d44d2d335928073912c1c4dac3f8a309d0c3fe82922bf97c6975b54a978d6d6bd23704cb30f80d4cc919896185d0d6eb0d1f9d
|
7
|
+
data.tar.gz: 0e6b141eb082561ea2939c131539e6d4ff58f47dd25d142f841b703ae6e3fe325ed10c4bc368a77b144c4cf817d4d7da8df361a6e877946d17a348f5253bac4f
|
data/Changelog.md
ADDED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# The schema is ...
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/the_schema_is.svg)](http://badge.fury.io/rb/the_schema_is)
|
4
|
-
|
4
|
+
![Build Status](https://github.com/zverok/the_schema_is/workflows/CI/badge.svg?branch=master)
|
5
5
|
|
6
6
|
`the_schema_is` is a model schema annotation DSL in ActiveSupport.
|
7
7
|
|
data/lib/the_schema_is/cops.rb
CHANGED
@@ -38,6 +38,14 @@ module TheSchemaIs
|
|
38
38
|
validate
|
39
39
|
end
|
40
40
|
|
41
|
+
# We need this method to tell Rubocop that EVEN if app/models/user.rb haven't changed, and
|
42
|
+
# .rubocop.yml haven't changed, we STILL may need to rerun the cop if schema.rb have changed.
|
43
|
+
def external_dependency_checksum
|
44
|
+
return unless schema_path
|
45
|
+
|
46
|
+
Digest::SHA1.hexdigest(File.read(schema_path))
|
47
|
+
end
|
48
|
+
|
41
49
|
private
|
42
50
|
|
43
51
|
attr_reader :model
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_schema_is
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Shepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backports
|
@@ -130,6 +130,7 @@ executables: []
|
|
130
130
|
extensions: []
|
131
131
|
extra_rdoc_files: []
|
132
132
|
files:
|
133
|
+
- Changelog.md
|
133
134
|
- LICENSE.txt
|
134
135
|
- README.md
|
135
136
|
- config/defaults.yml
|