rubocop-discourse 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +0 -1
- data/lib/rubocop/cop/discourse/time_eq_matcher.rb +2 -2
- data/rubocop-discourse.gemspec +5 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77712b97cde68ea4417a03ea56b6fccff3678c96ca97d3a6e518534efd65b7ab
|
4
|
+
data.tar.gz: 284be7e29c7278afac20f0d7edf73a3cfb08cd662c7d4d2f2ae1377d0584be8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d40d329945599d5b41d2f00383a63e75c0e2a57e4860295003bbcb345255bddfe0bf95784ca1e071e83e0fd1cb6f5ea61f7e5b8edcc2f94aa0f37145c77f0d3
|
7
|
+
data.tar.gz: f83f42a4e2805b15f713eb7b45b7517340bd458e8ae1ad05c046f9677e7b1a8b215e3cc768010e4458fc32698cca3871bfca185d6d97269cc42a522f8f5cebf7
|
data/.github/workflows/ci.yml
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module RuboCop
|
4
4
|
module Cop
|
5
5
|
module Discourse
|
6
|
-
# Use `
|
6
|
+
# Use `eq_time` matcher with timestamps in specs.
|
7
7
|
#
|
8
8
|
# @example
|
9
9
|
# # bad
|
@@ -12,7 +12,7 @@ module RuboCop
|
|
12
12
|
# # good
|
13
13
|
# expect(user.created_at).to eq_time(Time.zone.now)
|
14
14
|
class TimeEqMatcher < Cop
|
15
|
-
MSG = "Use
|
15
|
+
MSG = "Use eq_time when testing timestamps"
|
16
16
|
|
17
17
|
def_node_matcher :using_eq_matcher_with_timestamp?, <<-MATCHER
|
18
18
|
(send
|
data/rubocop-discourse.gemspec
CHANGED
@@ -2,11 +2,13 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rubocop-discourse"
|
5
|
-
s.version = "2.3.
|
5
|
+
s.version = "2.3.2"
|
6
6
|
s.summary = "Custom rubocop cops used by Discourse"
|
7
7
|
s.authors = ["David Taylor"]
|
8
|
-
s.
|
9
|
-
s.
|
8
|
+
s.license = "MIT"
|
9
|
+
s.homepage = "https://github.com/discourse/rubocop-discourse"
|
10
|
+
|
11
|
+
s.files = `git ls-files`.split($/)
|
10
12
|
s.require_paths = ["lib"]
|
11
13
|
|
12
14
|
s.add_runtime_dependency "rubocop", ">= 0.69.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-discourse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -102,7 +102,7 @@ files:
|
|
102
102
|
- spec/lib/rubocop/cop/no_mocking_jobs_enqueue_spec.rb
|
103
103
|
- spec/lib/rubocop/cop/no_reset_column_information_migrations_spec.rb
|
104
104
|
- spec/spec_helper.rb
|
105
|
-
homepage:
|
105
|
+
homepage: https://github.com/discourse/rubocop-discourse
|
106
106
|
licenses:
|
107
107
|
- MIT
|
108
108
|
metadata: {}
|