rubocop-yard 0.9.1 → 0.9.2

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: 2b240277d34c92f69d7a7b3bf0cc2de5e6db342a668dd2b3426faad8f693b36d
4
- data.tar.gz: d682c69f314766eb8e6ba49ac5ebb6d1c4dbe2cd3bed4c8e9d675ba49e347533
3
+ metadata.gz: 73d535218dd794bf83475348f09a8da8b8805ceb425081562a090d83aeed607f
4
+ data.tar.gz: 6c4ed5fabe09c75e6b8200c0113bf3eed53fd870dee20a74cd4f340aec8fda4f
5
5
  SHA512:
6
- metadata.gz: c02ef119ea3d56b064ffc1770ae0abc28d8e519eef44516b1ae5e14bb34347b494782d0e0d7a32d9db996d271513ae234e06234e85d61e8175efd0a7a7397162
7
- data.tar.gz: 162842c1675a778c33063ead865a10515c4665821751e3d05f222b5437369d06a62837ddcf1950bdc18775be4a46b8864e94489287464835d9db221d01557350
6
+ metadata.gz: 2c69daea85b80551835a17b161dbde8afebe62fa6b303bed7f3d95de81e1b0de6791509226c18babfa24690ec962b245a4b652e5899a3dd96704a387e109f56c
7
+ data.tar.gz: eaad4088a01acb5946fa57ab1c393a2ed07d65b1ca1dfd76984889973e4448a9cd0c773d400624932f40116ba5c085b57397f23f73e4ccd5d18ebadcfe625804
@@ -78,7 +78,7 @@ module RuboCop
78
78
 
79
79
  def build_docstring(preceding_lines)
80
80
  comment_texts = preceding_lines.map { |l| l.text.gsub(/\A#/, '') }
81
- minimum_space = comment_texts.map { |t| t.index(/[^\s]/) }.min
81
+ minimum_space = comment_texts.map { |t| t.index(/[^\s]/) }.compact.min
82
82
  yard_docstring = comment_texts.map { |t| t[minimum_space..-1] }.join("\n")
83
83
  begin
84
84
  ::YARD::DocstringParser.new.parse(yard_docstring)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module YARD
5
- VERSION = "0.9.1"
5
+ VERSION = "0.9.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-yard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2023-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop