the_schema_is 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/config/defaults.yml +24 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24d4d7e0d7d99a14a9d924af7efbbfbe4ee0fb9eef3b89537fb11378b4e5495e
4
- data.tar.gz: e41ee7faf7ee3620dc655c3ec3468df3cd6d89a5eb93a6b130ceabad7554b99f
3
+ metadata.gz: f3e54c39753d0c9f7004fd878f91a295508ff5f3a563e7275076a9164b4b42b5
4
+ data.tar.gz: 5b3ba0f932faa204a8e5a7bdfc399c15811f29fd34211c30a2a02fea4d57b3b2
5
5
  SHA512:
6
- metadata.gz: ce06ad394d6cec9c357af68eb370ec667707a7ea2c5df57c412a3b0e86d3122cc3865035f9464729b1548477aa23dc9350b5c7700f42d668cd72a90c487fdeeb
7
- data.tar.gz: 745a19300e80a00177abad59d4c702a304b1eb1c6f5b94c2ed3eb3b63519c5438b4cdb762c752ac9b71ef8e8d665fb3180b729ab8fa72262131e11a287d84465
6
+ metadata.gz: 4a26c592c14cc518a601b3ee5ae4c091d989936590c20742fda04ea87b2ee2f12844b349fd58bb18ff3afbc0b4763b665a384555a3f4c786d2627a0137cc9643
7
+ data.tar.gz: c3c760d8de08b39342855c85ee320f075ba221bb8d121e7acc00d8398e4aec4d9d1bbef5e69f8cb9411468a639d6deda8d238997fc47b3b0a979f78570de7345
@@ -0,0 +1,24 @@
1
+ ---
2
+ # For all TheSchemaIs cops the settings are the same.
3
+ # But note that Rubocop's behavior is slightly weird with --show-cops (it will not show that
4
+ # cop has those three setting)
5
+ TheSchemaIs:
6
+ Schema: db/schema.rb
7
+ BaseClass: ['ActiveRecord::Base', 'ApplicationRecord']
8
+ TablePrefix: ''
9
+
10
+ TheSchemaIs/Presence:
11
+ Description: "Check presence of the_schema_is statement in ActiveRecord models"
12
+ Enabled: true
13
+
14
+ TheSchemaIs/MissingColumn:
15
+ Description: "Check columns missing in the_schema_is definition (but present in schema.rb)"
16
+ Enabled: true
17
+
18
+ TheSchemaIs/UnknownColumn:
19
+ Description: "Check unknown column in the_schema_is definition (not defined in schema.rb)"
20
+ Enabled: true
21
+
22
+ TheSchemaIs/WrongColumnDefinition:
23
+ Description: "Check column definition in the_schema_is statement against schema.rb"
24
+ Enabled: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_schema_is
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Shepelev
@@ -132,6 +132,7 @@ extra_rdoc_files: []
132
132
  files:
133
133
  - LICENSE.txt
134
134
  - README.md
135
+ - config/defaults.yml
135
136
  - lib/the_schema_is.rb
136
137
  - lib/the_schema_is/cops.rb
137
138
  - lib/the_schema_is/cops/inject.rb