smart_todo 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00c1fc521428aa50cef7d23ea71e79cd7ef19389c2ec9bf6a03f83a61613d43c
4
- data.tar.gz: 793c12664a7e8c54e22d33f392eec319d6cfeed0954b3854c0b631a4bac7e585
3
+ metadata.gz: d4a658f8acb049243c04ca03be1c3cf4eacd84a648955c6bc0625f9c497ffbe5
4
+ data.tar.gz: 49258142b68fc748a054bb36a3c207b16bb010709a21e935a28fe4bdb379cf02
5
5
  SHA512:
6
- metadata.gz: cc05790423e467a734c1e0ca0f8fe60a095da70ecfddc05ddb91f908f024ee47d198ab166dd2c658daf6ac604b7b9c18647354edf2e5f080498275b8fb379d35
7
- data.tar.gz: ba0ec4630934f6d9688f7bcdfd7a1ab05cac527f939adf7c9b84baac8b8e58a8a9dba23e68043bd028f310751271ba21b53756ce11c4a1173aa117993b9f3c7a
6
+ metadata.gz: da4d883a649e9c090eabd1415a778503d272ad36baf505688a126bc37e6b010f78a72e3da27ad0b28706ae015f48c41115e3644b68b3c590f1e69918d1b32b39
7
+ data.tar.gz: 7ff862bbc35a507e220dd40aca07b1b7719e5e47270456652c4c4bf39a7cf9634ef0132379bb2f5e52038b9eafa6e5fab22f2f26948f172907577dde573f271a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.0.2] - 2019-08-09
10
+ ### Fixed
11
+ - Fixed the SmartTodo cop to add an offense in case a SmartTodo has no assignee.
12
+ ```ruby
13
+ # Bad
14
+ #
15
+ # TODO(on: date('2019-08-08'))
16
+ ```
17
+
9
18
  ## [1.0.1] - 2019-08-06
10
19
  ### Fixed
11
20
  - Fixed `issue_close` event making a call to the `pulls/` GH endpoint instead of the `issues/` one
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smart_todo (1.0.1)
4
+ smart_todo (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmartTodo
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
@@ -29,7 +29,7 @@ module RuboCop
29
29
  def smart_todo?(comment)
30
30
  metadata = ::SmartTodo::Parser::MetadataParser.parse(comment.gsub(/^#/, ''))
31
31
 
32
- metadata.events.any?
32
+ metadata.events.any? && metadata.assignee
33
33
  end
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_todo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-06 00:00:00.000000000 Z
11
+ date: 2019-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,8 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.7.6
147
+ rubygems_version: 3.0.3
149
148
  signing_key:
150
149
  specification_version: 4
151
150
  summary: Enhance todo's comments in your codebase.