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: a7b99573da9408ffa0e56ee31e420c296a42b3ea
4
- data.tar.gz: 93ab1ce0fe32d5ab28f52dc92a6fa17261b32bee
3
+ metadata.gz: b3e5a18673aa3437f1c7e4400c882a4ae17a52cc
4
+ data.tar.gz: 8807c48e3d8797313d6d4993e105d6c2503328e9
5
5
  SHA512:
6
- metadata.gz: a66b5b26a2bbbb2840413cb20082f14df0e158fde60c72655c5627b252f4ae08daa26148df44f8239ecd9ca5ceb1bacbb0e8ad2d3c79810471834e66f14b9f15
7
- data.tar.gz: 293663583786f286140ce3df1f0910e8660413156113231d12f8588724f8b72bbaf3cf07ed6c05de20a4d13562b57ee8794eae986136a9a524472270e60fbbad
6
+ metadata.gz: 63127a95841334b51b9d9fa80397725db19b7c8b6b7d2e63ce79fb9213d609f04edb9db3adfaa3e973e712a065f577c859fb8c15bf90bc485e71e269c72aec3f
7
+ data.tar.gz: 01cd2403460ac4c5aa3371cc78c0098b9b639aa57ecd1c034e7ab8617adf4d6c5c05f52bdb903e40809bbdf7d2fca62d69bee5c8c63634e047d1e79793f4b55a
data/TODOS.md CHANGED
@@ -7,3 +7,4 @@
7
7
  (realized via the @overload tag in YARD)
8
8
 
9
9
  * Add an option to suppress :nodoc: from output
10
+ * Add a role for TaggedAsDeprecated
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = "0.3.1.rc5"
2
+ VERSION = "0.3.1.rc6"
3
3
  end
@@ -83,6 +83,15 @@ module InchTest
83
83
  end
84
84
  public :public_method
85
85
 
86
+ # @raise [ArgumentError] every time!
87
+ def raising_method_with_comment
88
+ raise ArgumentError
89
+ end
90
+
91
+ def raising_method
92
+ raise ArgumentError
93
+ end
94
+
86
95
  def public_method
87
96
  end
88
97
 
@@ -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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.rc5
4
+ version: 0.3.1.rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring