rubocop-safe_migrations 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3649ce5cf29e895eb9639963ee1e26d5a57deed878c2dce600699b03c8a4dc62
4
- data.tar.gz: 046e3c506c93b0ec04bde54d0a3ec8fa3f190d92678ab68a8e2b931ba717158b
3
+ metadata.gz: 07241eabc33327dd417a7a7c71eda773343e4b8914c8203094aae772c7b14d94
4
+ data.tar.gz: 13d34888fe1d7631f9daa2ea53e8005eefdb4b93facc4d47ce3b27d8a4e08484
5
5
  SHA512:
6
- metadata.gz: 1cf46dd12f6d67b50f83edcab3f49f8f84d5c2ede5612a7ffb31cd9ca8670f346052da4ac66bb38f065fa3f2e0d42908c05482ae6d06189d9358d493d7576d90
7
- data.tar.gz: 626594af95804cc4e22f0303b0b1bb984be3e5d0cf50f22ac41d8b88c5f8d65f3b8e0f5e96b4b3efca8f526b0f52fac25c63e615eb66495001a57c28b3d4804f
6
+ metadata.gz: d4a0631fb0a2c4901572f4dc777114c63ffef18580defb1df8f4fd93f8267681213f353a70653a8a79fa4e9f0bce4c9e39c72882cdeee9c9a552942164d1fd1e
7
+ data.tar.gz: 015aef4b18a0c7e2b519174290bfc63b0389ce1b28f3d9dec67232aa7ed659ff51689c01b5f5f0740a0130190495840298d9ef13a29caec04d85866636aa780b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-safe_migrations (0.0.2)
4
+ rubocop-safe_migrations (0.0.3)
5
5
  rubocop
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -20,7 +20,14 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- After installed, this will automatically add new migration cops to be checked when running rubocop on the project. Be sure that you are not excluding migration folder on your rubocop config.
23
+ After installed, you have to tell rubocop to require this new cops. For doing this, add this config to your .rubocop.yml file:
24
+
25
+ ```yaml
26
+ require:
27
+ - rubocop-safe_migrations
28
+ ```
29
+
30
+ Be sure that you are not excluding migrate files for all cops either.
24
31
 
25
32
  The cops that will be checked are:
26
33
 
data/config/default.yml CHANGED
@@ -1 +1,4 @@
1
- # Write it!
1
+ Migration/UpdatingDataInMigration:
2
+ Enabled: true
3
+ Include:
4
+ - "db/migrate/*"
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module SafeMigrations
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-safe_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joao Paulo Lethier