parlour 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/parlour/rbi_generator/method.rb +6 -2
- data/lib/parlour/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b2efb86589a0b2212d88906507d92990457318bdb3902426eef282a3da1b0e
|
4
|
+
data.tar.gz: 16e1cb30836c714623ca43d5b72a1cfe2225bd4f93993d1c7ea9c04d2bb6db15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5862a79da284a4953bd5d87b81c7cbe3852c91434d9d9b6b6f766d7838878ac2e40699f423951a559bc4e02e51bc922b936e133f12ddbe6a8276d44df16f607
|
7
|
+
data.tar.gz: d563d410dce0963e554d45fceb69c295ff25a36f99093c7b392bfd52d3d33c4d7a6aa6f4e15aacb19a999db71cd98b2fd58f6e540b811793d987316573985be1
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@ 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
|
+
## [0.3.1] - 2019-07-09
|
7
|
+
### Changed
|
8
|
+
- Multi-line parameter lists no longer have a trailing comma.
|
9
|
+
|
6
10
|
## [0.3.0] - 2019-07-09
|
7
11
|
### Changed
|
8
12
|
- Breaking change: all `Namespace#create_` methods, and the `Parameter` constructor, now take entirely keyword arguments.
|
@@ -127,8 +127,12 @@ module Parlour
|
|
127
127
|
options.indented(indent_level + 1, "#{qualifiers}params("),
|
128
128
|
] +
|
129
129
|
(
|
130
|
-
parameters.empty? ? [] : sig_params.map do |x|
|
131
|
-
options.indented(
|
130
|
+
parameters.empty? ? [] : sig_params.map.with_index do |x, i|
|
131
|
+
options.indented(
|
132
|
+
indent_level + 2,
|
133
|
+
# Don't include the comma on the last parameter.
|
134
|
+
parameters.length == i + 1 ? "#{x}" : "#{x},"
|
135
|
+
)
|
132
136
|
end
|
133
137
|
) +
|
134
138
|
[
|
data/lib/parlour/version.rb
CHANGED