parlour 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: ded8584a233720f5a345d5bad9b91c344fc12f1dc38b0fbad1b3e0e797178cb9
4
- data.tar.gz: c23b9bc0207031d207202d95e259521fa4b5826b739094c2f10cab5223392f9b
3
+ metadata.gz: e7b2efb86589a0b2212d88906507d92990457318bdb3902426eef282a3da1b0e
4
+ data.tar.gz: 16e1cb30836c714623ca43d5b72a1cfe2225bd4f93993d1c7ea9c04d2bb6db15
5
5
  SHA512:
6
- metadata.gz: 2f470194db52dd83dbb27df91f3f9044f921946471a800f7d2d42e7f6230496b326585847812c35d77a7cea1eb1a2f874dc1397b9fc4b96bd53f8c2b13d31b4a
7
- data.tar.gz: 270d77587338e413141952ce06710774e468a91f7ec636cf2636f2856a1bae4a3e9d4852a643aad602f57d0cb30cac88b080b0c46b22395e1905e69a0c56d28c
6
+ metadata.gz: b5862a79da284a4953bd5d87b81c7cbe3852c91434d9d9b6b6f766d7838878ac2e40699f423951a559bc4e02e51bc922b936e133f12ddbe6a8276d44df16f607
7
+ data.tar.gz: d563d410dce0963e554d45fceb69c295ff25a36f99093c7b392bfd52d3d33c4d7a6aa6f4e15aacb19a999db71cd98b2fd58f6e540b811793d987316573985be1
@@ -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(indent_level + 2, "#{x},")
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
  [
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
  module Parlour
3
3
  # The library version.
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parlour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Christiansen