inch 0.4.4.rc3 → 0.4.4.rc4

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
  SHA1:
3
- metadata.gz: 906e6d4610f4a1e6b81d26882e245c6b79080963
4
- data.tar.gz: 5777392ea8de43a8536c7e223be7b2fbdf16af38
3
+ metadata.gz: 14edad2e63192250ed780e03aa2d00577210bd72
4
+ data.tar.gz: f786cb7c61c07dcb19122a13a4d1f3ed6df8e60b
5
5
  SHA512:
6
- metadata.gz: 0e7375a37a7d8166fb730f61c7bf2fcf935d2919d463342c4327d9f2a47911086ebe1bcc007787a64c79f94a48c158178165483d880f884fe672bc16a7015267
7
- data.tar.gz: 18d13d4469bdfcc1beff48798a6aeacb5e9b2eda677e9a766b32eb3ec5fee6ad6a0c4a7dad1c67e5335914c897044a7a3870c524230f576707b4728402f39e02
6
+ metadata.gz: 5444b36091c6def4f1eb5956ad75242e4f11a62474cf3141993fb865730fa90ef717d129ac8ac8a4a710f1e591555d7abff5695c166b0d8ccdd8aaede70148bd
7
+ data.tar.gz: cf05646415b2fdea77c8d85a6af743485d18b779753699909be9814cbaa8b2dfdc04df0c8ad60aeef26c4fcf25e2c3809115d4851509b3fe0acf9166a9d3e0d9
@@ -63,11 +63,14 @@ module Inch
63
63
  overridden_method.fullname
64
64
  end
65
65
 
66
+ # Returns +true+ if a return value is described by it's type or
67
+ # mentioned in the docstring (e.g. "Returns a String").
66
68
  def return_mentioned?
67
- return_tags.any? { |t| !t.types.empty? && !YARD.implicit_tag?(t, self) } ||
69
+ return_tags.any? { |t| !t.types.nil? && !t.types.empty? && !YARD.implicit_tag?(t, self) } ||
68
70
  docstring.mentions_return? && !implicit_docstring?
69
71
  end
70
72
 
73
+ # Returns +true+ if a return value is described by words.
71
74
  def return_described?
72
75
  return_tags.any? { |t| !t.text.empty? && !YARD.implicit_tag?(t, self) } ||
73
76
  docstring.describes_return? && !implicit_docstring?
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = "0.4.4.rc3"
2
+ VERSION = "0.4.4.rc4"
3
3
  end
@@ -28,6 +28,12 @@ module Foo
28
28
  # @return [String]
29
29
  def method_with_splat_parameter2(*names)
30
30
  end
31
+
32
+ # The problem here is that the @return tag does not have brackets
33
+ #
34
+ # @return HasH
35
+ def method_with_wrong_return_tag
36
+ end
31
37
  end
32
38
 
33
39
  module Overloading
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.4.4.rc3
4
+ version: 0.4.4.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring