sord 5.0.1 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sord/generator.rb +9 -0
- data/lib/sord/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f101fdc3b63cf69bc59fd766ced5222c3e6b02f70f913fcc39085459e32c89de
|
4
|
+
data.tar.gz: ea8df6949fdef290b13cf082c364138a17224deb127e069fd8a55d8e86de29c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bed3f4e28d753ccf493a63d552f0560267d5a4841ca6208691e557fa84ba719e1c906be765c4ba45d62ad84cbe167766b8b286202727400bcf62bf8e0748a84
|
7
|
+
data.tar.gz: c51d9041a3de3dd66faf35173c38ce74e89e5dc4054e9cc675c54a871dc35c84a33139e1a18674265d951f759365a66f272badca1306d89c3b7fa7997f87bb3e
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
5
5
|
|
6
|
+
## [5.1.0] - 2023-05-22
|
7
|
+
### Added
|
8
|
+
- Add support for a single `@overload` tag, typically used to describe methods defined outside of
|
9
|
+
Ruby. Thanks @ohai!
|
10
|
+
|
6
11
|
## [5.0.1] - 2023-05-02
|
7
12
|
### Fixed
|
8
13
|
- Use `File#exist?` instead of `File#exists?`, for Ruby 3.2 support. Thanks @matmorel!
|
data/lib/sord/generator.rb
CHANGED
@@ -294,6 +294,15 @@ module Sord
|
|
294
294
|
next
|
295
295
|
end
|
296
296
|
|
297
|
+
# If the method has YARD's "@overload" tags, the information of the
|
298
|
+
# first one is merged into meth object
|
299
|
+
# NOTE: This code does not handle the second and subsequent @overload tags
|
300
|
+
if meth.tag("overload")
|
301
|
+
meth.parameters = meth.tag("overload").parameters
|
302
|
+
meth.tag("overload").tags.each { |tag| meth.add_tag(tag) }
|
303
|
+
meth.docstring += meth.tag("overload").docstring
|
304
|
+
end
|
305
|
+
|
297
306
|
# Sort parameters
|
298
307
|
meth.parameters.reverse.sort! { |pair1, pair2| sort_params(pair1, pair2) }
|
299
308
|
|
data/lib/sord/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Christiansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|