inch 0.3.1.rc5 → 0.3.1.rc6
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3e5a18673aa3437f1c7e4400c882a4ae17a52cc
|
4
|
+
data.tar.gz: 8807c48e3d8797313d6d4993e105d6c2503328e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63127a95841334b51b9d9fa80397725db19b7c8b6b7d2e63ce79fb9213d609f04edb9db3adfaa3e973e712a065f577c859fb8c15bf90bc485e71e269c72aec3f
|
7
|
+
data.tar.gz: 01cd2403460ac4c5aa3371cc78c0098b9b639aa57ecd1c034e7ab8617adf4d6c5c05f52bdb903e40809bbdf7d2fca62d69bee5c8c63634e047d1e79793f4b55a
|
data/TODOS.md
CHANGED
@@ -259,6 +259,7 @@ module Inch
|
|
259
259
|
# YARD tags that are not already covered by other wrapper methods
|
260
260
|
def unconsidered_tags
|
261
261
|
@unconsidered_tags ||= tags.reject do |tag|
|
262
|
+
(tag.tag_name == "raise" && tag.text.empty?) ||
|
262
263
|
CONSIDERED_YARD_TAGS.include?(tag.tag_name)
|
263
264
|
end
|
264
265
|
end
|
data/lib/inch/version.rb
CHANGED
@@ -12,6 +12,18 @@ describe ::Inch::CodeObject::Proxy::MethodObject do
|
|
12
12
|
assert m.undocumented?
|
13
13
|
end
|
14
14
|
|
15
|
+
def test_raising_method_with_comment
|
16
|
+
m = @codebase.objects.find("InchTest#raising_method_with_comment")
|
17
|
+
assert m.score > 0
|
18
|
+
refute m.undocumented?
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_raising_method
|
22
|
+
m = @codebase.objects.find("InchTest#raising_method")
|
23
|
+
assert_equal 0, m.score
|
24
|
+
assert m.undocumented?
|
25
|
+
end
|
26
|
+
|
15
27
|
def test_tagged_as_private
|
16
28
|
%w( InchTest#method_with_private_tag
|
17
29
|
InchTest#private_method_with_tomdoc).each do |fullname|
|