inch 0.4.0 → 0.4.1

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: 70bd51c2792de8f8de939d1b92e67318997174b4
4
- data.tar.gz: ac1341d81bbb6981245ef4c4e0c3c851dee8e686
3
+ metadata.gz: d83d6f4f550c102c6a68ab8eb6940ac9985caacc
4
+ data.tar.gz: 78cabc5fcaf7e7fc1deb86ed614a41933dbf5903
5
5
  SHA512:
6
- metadata.gz: 2317879db99ade4706451160f728d5f2b8275045dc7a31fa967e847baf54596ef56eb73542829390d3a4dc785c26069c85fdf69e512ec883509ceeccd8fd5a95
7
- data.tar.gz: 36fce8f28e4bb3fa3ff88a62dd6428dec5d869a8d53a603ae48ddd9cb93ad45e6e72db842fa8c7bd030e0ebdb80e5d1bd7f0985c8e66bf5bef86182d1d7b843b
6
+ metadata.gz: 7ad47baff71a66d2c059eb2034f71bb4a0fd4d31caa6b5961ec41203cb4c2bf565f16596477d5bb3be47f2f627ae80c3a6520890dcb3b00f251b8c36e3548f3d
7
+ data.tar.gz: 57eded7a64cc79f1d81e3cd24a1583f984268ed5fa35d4883a5dbf19eae4e140dfdb5170689a9a1b7de5a48e70d0aa8b66e6e9f1ad555be8751ab454879c70a1
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## 0.4.1
5
+
6
+ - Bugfix regarding @overload tags (thanks @cbeer)
7
+
8
+
9
+ ## 0.4.0
10
+
11
+ - new diff command
12
+ - better support for YARD's @overload tag
13
+ - several bugfixes (as always)
14
+
15
+
3
16
  ## 0.3.3
4
17
 
5
18
  - Fix rake task
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Inch
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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
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.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Föhring