rubocop-discourse 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rubocop/cop/discourse/time_eq_matcher.rb +3 -3
- data/rubocop-discourse.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e9b0623d47b96bbaa5a7e78f2da4e889d03bbce2f16e2ab90e9ce61530a69f9
|
4
|
+
data.tar.gz: c3385aefb750fa0a379599f2ddce69a66d03186b1e0c21e1552f0c94e9347a96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 495b86ba2534d8d9b725628337eb70d0c96a2927aa6867f99ef59cd5b8c668530baf54637fe49f0fb08ba0b5c6b648cd2ce74a1b962af811f50d92cdb4bc6c31
|
7
|
+
data.tar.gz: b37411ba21ac5c4fcf1e5586f8a5c2419c251e74937499fafe68b8ecb06b75bc881582f813ac8af8f0b8c77675c0e750b001fc75e004607f460f646399b924be
|
@@ -19,7 +19,7 @@ module RuboCop
|
|
19
19
|
(send nil? :expect
|
20
20
|
(send ... #timestamp_suffix?))
|
21
21
|
{:to :not_to :to_not}
|
22
|
-
(send nil? :eq #not_nil))
|
22
|
+
(send nil? :eq #not_nil?))
|
23
23
|
MATCHER
|
24
24
|
|
25
25
|
def on_send(node)
|
@@ -40,8 +40,8 @@ module RuboCop
|
|
40
40
|
property =~ /_at$/
|
41
41
|
end
|
42
42
|
|
43
|
-
def not_nil(expression)
|
44
|
-
expression
|
43
|
+
def not_nil?(expression)
|
44
|
+
!expression.nil_type?
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
data/rubocop-discourse.gemspec
CHANGED