inch 0.4.0 → 0.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d83d6f4f550c102c6a68ab8eb6940ac9985caacc
|
4
|
+
data.tar.gz: 78cabc5fcaf7e7fc1deb86ed614a41933dbf5903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ad47baff71a66d2c059eb2034f71bb4a0fd4d31caa6b5961ec41203cb4c2bf565f16596477d5bb3be47f2f627ae80c3a6520890dcb3b00f251b8c36e3548f3d
|
7
|
+
data.tar.gz: 57eded7a64cc79f1d81e3cd24a1583f984268ed5fa35d4883a5dbf19eae4e140dfdb5170689a9a1b7de5a48e70d0aa8b66e6e9f1ad555be8751ab454879c70a1
|
data/CHANGELOG.md
CHANGED
@@ -123,7 +123,7 @@ module Inch
|
|
123
123
|
# @todo analyse each signature on its own
|
124
124
|
def overloaded_parameter_names
|
125
125
|
overload_tags.map do |tag|
|
126
|
-
tag.parameters.map do |parameter|
|
126
|
+
Array(tag.parameters).map do |parameter|
|
127
127
|
normalize_parameter_name(parameter[0])
|
128
128
|
end
|
129
129
|
end.flatten
|
data/lib/inch/version.rb
CHANGED
@@ -170,6 +170,15 @@ module Overloading
|
|
170
170
|
# @return [Array<Symbol>] The identifiers for this class
|
171
171
|
def identifiers(*identifiers)
|
172
172
|
end
|
173
|
+
|
174
|
+
# @overload missing_param_names
|
175
|
+
#
|
176
|
+
#
|
177
|
+
# @param [Array<Symbol>] This param is not given in the overload above.
|
178
|
+
#
|
179
|
+
# @return [void]
|
180
|
+
def missing_param_names(*identifiers)
|
181
|
+
end
|
173
182
|
end
|
174
183
|
|
175
184
|
module YardError
|
@@ -282,4 +282,9 @@ describe ::Inch::CodeObject::Proxy::MethodObject do
|
|
282
282
|
assert_equal 100, m.score, "#{m.fullname} did not get 100"
|
283
283
|
end
|
284
284
|
end
|
285
|
+
|
286
|
+
def test_overloading_with_bad_doc
|
287
|
+
m = @objects.find("Overloading#missing_param_names")
|
288
|
+
refute m.has_doc? # it may be mentioned in the docs, but it's malformed.
|
289
|
+
end
|
285
290
|
end
|