polleverywhere-cops 1.0.0 → 1.0.1

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: 89c21da7018763638112ed372c643da8c6d47f9c
4
- data.tar.gz: 81e2bb70ee9313c7253ecf1b312327dbedfa323b
3
+ metadata.gz: 31e5f064aa48aac5b577a0abc3fabc2f0699e857
4
+ data.tar.gz: a218915bcdd9a9e6e67f0de848d27227a88f6f1a
5
5
  SHA512:
6
- metadata.gz: dd13214973ef2ca7b2351861881acee84d0de4b2a9f48c59a989b005904827d2ce22027076e2162b6a2633d7ee254b8bd853bd1abbccc31fb50e12a0f2972501
7
- data.tar.gz: ea2c03d68045b23aeae81d9b528ea7cb79ebfb107095b0107a7aece3ae956fa68c33efb63d90a70a1e324c54156bf338eea9f8e8f91d66da1de55753f68e181e
6
+ metadata.gz: 6e556c63f94eaa30ba786d0cf865b19cdf5416dc98f52064ace3efea8a2357c2bb50c6371579a2256277c705e368543172575e7284854af6e6772a6daadc5690
7
+ data.tar.gz: 8596be63c6c8b529416b1701c73927c0d7ddd1ea978fa4cda2624f686a0e9afa55d577f0dada334d97220b0ec4c596037ab81f3112c54cfa24bcfe1b72b76df6
data/README.md CHANGED
@@ -1,3 +1,22 @@
1
1
  # Poll Everywhere Cops
2
2
 
3
- Poll Everywhere's custom RuboCop cops
3
+ Custom RuboCop cops for Poll Everywhere
4
+
5
+ ## Cops
6
+
7
+ - *NullableBoolean*: Boolean database columns cannot be nullable.
8
+
9
+ ## Instructions
10
+
11
+ Add to `Gemfile`:
12
+
13
+ ```
14
+ gem "polleverywhere-cops"
15
+ ```
16
+
17
+ Add to `.rubocop.yml`:
18
+
19
+ ```
20
+ require:
21
+ - polleverywhere-cops
22
+ ```
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Cop
5
5
  module PollEverywhere
6
6
  class NullableBoolean < Cop
7
- MSG = "Boolean columns cannot be nullable. (https://playbook.polleverywhere.com/conventions/ruby/#migrations)".freeze
7
+ MSG = "Boolean database columns cannot be nullable. (https://playbook.polleverywhere.com/conventions/ruby/#migrations)".freeze
8
8
 
9
9
  def on_send(node)
10
10
  if adding_boolean?(node) && nullable?(node)
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module PollEverywhere
5
5
  module Version
6
- STRING = "1.0.0".freeze
6
+ STRING = "1.0.1".freeze
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polleverywhere-cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Poll Everywhere