prettier 1.4.0 → 1.5.0

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
  SHA256:
3
- metadata.gz: b87bc10882cc30779fa7d83d4b52bada919561ed298c0a42331f6df5b8681fb4
4
- data.tar.gz: fc46f3778f9824d8a9b5f2d15e70a6419e01ed921b3ed3c7f4a0ff4699b7aa2a
3
+ metadata.gz: 24ce6592d56391ec133891b51f4b0fc3092b735ae547547c79a75f953a891d90
4
+ data.tar.gz: 9b60c471f9d6953ebbcd1f7bd7080d306a3e8fba19a147f2a65ba9fd52542a9a
5
5
  SHA512:
6
- metadata.gz: 76a79ab1910791821427f896140c008a3b5430a99236c65225b24c633bd333462ad77fd5f90c6f9de060568809aa05585198aba8fcfe64f1c30c381c9c6f8ce7
7
- data.tar.gz: 408d7cabd27ce93415ee1cf5248746c62fbba32ab3cab820fbdc02f45da2ae2555a89eca2d3be81573acfa02d331a06628a332e22021e4771d51dd2c2a51adf4
6
+ metadata.gz: d258d7f5838c43e5e2d17a6bc2c02645dc5f347b801e2d4cad9dab298040cf7fc65850562f6f1d36dd35719196f986d4b8fd9243e4da9ea0df3c88a8cec44d6e
7
+ data.tar.gz: de06627e53a1c7994868f6184dc6d5fbb88f05c19e5a7a3c242361e320afc31b2f4254a388452b38f1d15581dcc760fa7a345c90d13a42c745c4c37cbbda3369
@@ -6,139 +6,153 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.5.0] - 2021-01-21
10
+
11
+ ### Added
12
+
13
+ - kddeisz - Add `.rbi` as a file type that we support.
14
+
15
+ ### Changed
16
+
17
+ - [#795](https://github.com/prettier/plugin-ruby/issues/795) djrodgerspryor, kddeisz - Trailing comments attached to empty arrays should not multiply.
18
+ - [#794](https://github.com/prettier/plugin-ruby/issues/794) djrodgerspryor, kddeisz - Fix embedded parser parsing by stripping common leading whitespace before passing on the content.
19
+ - [#793](https://github.com/prettier/plugin-ruby/issues/793) djrodgerspryor, kddeisz - Do not include trailing commas on arguments within `arg_paren` nodes if they could not be parsed with them (`command` and `command_call`).
20
+ - [#788](https://github.com/prettier/plugin-ruby/issues/788) clarkdave, kddeisz - Break child hashes within a multi-line hash regardless of whether or not they can fit on one line.
21
+ - kddeisz - Stop using `;` to separate empty class definitions, module definitions, and loops.
22
+
9
23
  ## [1.4.0] - 2021-01-15
10
24
 
11
25
  ### Added
12
26
 
13
- - [@ianks], [@kddeisz] - Use `netcat` to communicate to a parser server for better performance when formatting multiple files.
27
+ - ianks, kddeisz - Use `netcat` to communicate to a parser server for better performance when formatting multiple files.
14
28
 
15
29
  ### Changed
16
30
 
17
- - [@jeffcarbs], [@kddeisz] - Long strings with interpolated expressions should only break if the contents in the original source is broken.
18
- - [@johannesluedke], [@kddeisz] - Fix for rescues with inline comments.
19
- - [@johncsnyder], [@kddeisz] - Comments should not attach to nodes beyond a double newline.
20
- - [@blampe], [@kddeisz] - Comments inside of a broken method chain get dropped.
21
- - [@clarkdave], [@kddeisz] - Don't ignore Sorbet `sig` transformations.
31
+ - jeffcarbs, kddeisz - Long strings with interpolated expressions should only break if the contents in the original source is broken.
32
+ - johannesluedke, kddeisz - Fix for rescues with inline comments.
33
+ - johncsnyder, kddeisz - Comments should not attach to nodes beyond a double newline.
34
+ - blampe, kddeisz - Comments inside of a broken method chain get dropped.
35
+ - clarkdave, kddeisz - Don't ignore Sorbet `sig` transformations.
22
36
 
23
37
  ## [1.3.0] - 2021-01-05
24
38
 
25
39
  ### Added
26
40
 
27
- - [@kddeisz] - Handling of the RBS language.
28
- - [@kddeisz] - Incorporate the HAML plugin.
41
+ - kddeisz - Handling of the RBS language.
42
+ - kddeisz - Incorporate the HAML plugin.
29
43
 
30
44
  ## [1.2.5] - 2021-01-04
31
45
 
32
46
  ### Changed
33
47
 
34
- - [@nruth], [@kddeisz] - Ensure unary operators on method calls that are sending operators get the correct scanner events.
35
- - [@cvoege], [@kddeisz] - Do not add parentheses when they're not needed to non-breaking command_calls with ternary arguments.
36
- - [@valscion], [@kddeisz] - Print method chains more nicely off array and hash literals.
48
+ - nruth, kddeisz - Ensure unary operators on method calls that are sending operators get the correct scanner events.
49
+ - cvoege, kddeisz - Do not add parentheses when they're not needed to non-breaking command_calls with ternary arguments.
50
+ - valscion, kddeisz - Print method chains more nicely off array and hash literals.
37
51
 
38
52
  ## [1.2.4] - 2021-01-03
39
53
 
40
54
  ### Added
41
55
 
42
- - [@andyw8] - Explain usage with Rubocop, as well as shipping a rubocop.yml config.
56
+ - andyw8 - Explain usage with Rubocop, as well as shipping a rubocop.yml config.
43
57
 
44
58
  ### Changed
45
59
 
46
- - [@kddeisz] - Reduce JSON size passing from Ruby process to node process by changing `char_start` -> `sc`, `char_end` -> `ec`, `start` -> `sl`, `end` -> `el`.
47
- - [@kddeisz] - Up the max buffer size between the Ruby and node processes to 15K.
60
+ - kddeisz - Reduce JSON size passing from Ruby process to node process by changing `char_start` -> `sc`, `char_end` -> `ec`, `start` -> `sl`, `end` -> `el`.
61
+ - kddeisz - Up the max buffer size between the Ruby and node processes to 15K.
48
62
 
49
63
  ## [1.2.3] - 2021-01-02
50
64
 
51
65
  ### Changed
52
66
 
53
- - [@lukyth], [@kddeisz] - Ensure if a ternary breaks into an `if..else..end` within a `command_call` node that parentheses are added.
54
- - [@AlanFoster], [@kddeisz] - Ensure you consume the optional `do` keyword on `while` and `until` loops so that it doesn't confuse the parser.
55
- - [@AlanFoster], [@kddeisz] - Ensure key-value pairs split on line when the key has a comment attached within a hash.
56
- - [@AlanFoster], [@kddeisz] - Fix for `for` loops that have multiple index variables.
57
- - [@AlanFoster], [@kddeisz] - Fix parsing very large files by reducing the size of the JSON output from the parser.
58
- - [@AlanFoster], [@kddeisz] - Ensure you don't skip parentheses if you're returning a value with the `not` unary operator.
67
+ - lukyth, kddeisz - Ensure if a ternary breaks into an `if..else..end` within a `command_call` node that parentheses are added.
68
+ - AlanFoster, kddeisz - Ensure you consume the optional `do` keyword on `while` and `until` loops so that it doesn't confuse the parser.
69
+ - AlanFoster, kddeisz - Ensure key-value pairs split on line when the key has a comment attached within a hash.
70
+ - AlanFoster, kddeisz - Fix for `for` loops that have multiple index variables.
71
+ - AlanFoster, kddeisz - Fix parsing very large files by reducing the size of the JSON output from the parser.
72
+ - AlanFoster, kddeisz - Ensure you don't skip parentheses if you're returning a value with the `not` unary operator.
59
73
 
60
74
  ## [1.2.2] - 2021-01-01
61
75
 
62
76
  ### Changed
63
77
 
64
- - [@nathan-beam] - Gem does not work with CMD/Powershell.
65
- - [@blampe], [@kddeisz] - Comments inside keyword parameters in method declarations are not printed.
66
- - [@blampe], [@kddeisz] - `command_call` nodes with unary operators incorrectly parse their operator.
67
- - [@blampe], [@kddeisz] - Returning multiple values where the first has parentheses was incorrectly removing the remaining values.
68
- - [@johncsnyder], [@kddeisz] - Call chains whose left-most receiver is a no-indent expression should not indent their entire chain.
78
+ - nathan-beam - Gem does not work with CMD/Powershell.
79
+ - blampe, kddeisz - Comments inside keyword parameters in method declarations are not printed.
80
+ - blampe, kddeisz - `command_call` nodes with unary operators incorrectly parse their operator.
81
+ - blampe, kddeisz - Returning multiple values where the first has parentheses was incorrectly removing the remaining values.
82
+ - johncsnyder, kddeisz - Call chains whose left-most receiver is a no-indent expression should not indent their entire chain.
69
83
 
70
84
  ## [1.2.1] - 2020-12-27
71
85
 
72
86
  ### Changed
73
87
 
74
- - [@kddeisz] - Handle single-line method definitions with parameters.
75
- - [@kddeisz] - Handle hash and array patterns nested within find patterns.
76
- - [@kddeisz] - Handle rightward assignment.
77
- - [@kddeisz] - Handle find patterns with named boundaries.
78
- - [@kddeisz] - Handle rightward assignment in conditionals.
88
+ - kddeisz - Handle single-line method definitions with parameters.
89
+ - kddeisz - Handle hash and array patterns nested within find patterns.
90
+ - kddeisz - Handle rightward assignment.
91
+ - kddeisz - Handle find patterns with named boundaries.
92
+ - kddeisz - Handle rightward assignment in conditionals.
79
93
 
80
94
  ## [1.2.0] - 2020-12-26
81
95
 
82
96
  ### Added
83
97
 
84
- - [@kddeisz] - Support for the `fndptn` node for Ruby 3.0 pattern matching.
85
- - [@kddeisz] - Support for Ruby 3.0+ single-line method definitions.
98
+ - kddeisz - Support for the `fndptn` node for Ruby 3.0 pattern matching.
99
+ - kddeisz - Support for Ruby 3.0+ single-line method definitions.
86
100
 
87
101
  ## [1.1.0] - 2020-12-20
88
102
 
89
103
  ### Added
90
104
 
91
- - [@kddeisz] - Now that the comments are all fixed up, we can support `# prettier-ignore` comments.
105
+ - kddeisz - Now that the comments are all fixed up, we can support `# prettier-ignore` comments.
92
106
 
93
107
  ### Changed
94
108
 
95
- - [@rindek], [@kddeisz] - Do not remove parentheses when receiver looks like a constant.
96
- - [@rindek], [@kddeisz] - Do not remove parentheses when using the special `call` syntax with no arguments.
97
- - [@ykpythemind] - Do not change regexp bounds if the body has certain content.
98
- - [@karanmandal], [@kddeisz] - Correctly print for loops.
99
- - [@rafbm], [@kddeisz] - If there are method chains with arguments only at the end, we should group the method chain and the method args.
109
+ - rindek, kddeisz - Do not remove parentheses when receiver looks like a constant.
110
+ - rindek, kddeisz - Do not remove parentheses when using the special `call` syntax with no arguments.
111
+ - ykpythemind - Do not change regexp bounds if the body has certain content.
112
+ - karanmandal, kddeisz - Correctly print for loops.
113
+ - rafbm, kddeisz - If there are method chains with arguments only at the end, we should group the method chain and the method args.
100
114
 
101
115
  ## [1.0.1] - 2020-12-12
102
116
 
103
117
  ### Changed
104
118
 
105
- - [@steobrien], [@kddeisz] - Ensure leading comments in empty array and hash literals do not duplicate.
119
+ - steobrien, kddeisz - Ensure leading comments in empty array and hash literals do not duplicate.
106
120
 
107
121
  ## [1.0.0] - 2020-12-11
108
122
 
109
123
  ### Changed
110
124
 
111
- - [@kddeisz] - Do not unescape double quotes in a single quote string.
112
- - [@kddeisz] - Only force braces on regexp for spaces and equals if it's inside a command or command_call.
113
- - [@kddeisz] - Leave Sorbet type annotations in place.
114
- - [@kddeisz] - Don't group hash contents, just allow them to break with their parent node.
115
- - [@kddeisz] - Honor the UTF-8 lang passed in through ENV vars.
125
+ - kddeisz - Do not unescape double quotes in a single quote string.
126
+ - kddeisz - Only force braces on regexp for spaces and equals if it's inside a command or command_call.
127
+ - kddeisz - Leave Sorbet type annotations in place.
128
+ - kddeisz - Don't group hash contents, just allow them to break with their parent node.
129
+ - kddeisz - Honor the UTF-8 lang passed in through ENV vars.
116
130
 
117
131
  ## [1.0.0-rc2] - 2020-12-10
118
132
 
119
133
  ### Changed
120
134
 
121
- - [@kddeisz] - Print hashes with consistent keys (e.g., if one key cannot be a hash label, use all hash rockets).
122
- - [@kddeisz] - Respect using `o` or not using `o` for octal numbers.
123
- - [@kddeisz] - Ensure `when` clauses with multiple predicates that can be split into multiple lines are split correctly.
124
- - [@kddeisz] - Ensure hash literal is split correctly when only its contents would fit on one line.
125
- - [@kddeisz] - Simplify `toProc` checks by not calling if the option is disabled.
126
- - [@johncsnyder], [@kddeisz] - Add `method_add_block` to the potential like of method calls that can be chained.
127
- - [@kddeisz] - Add the `rubyArrayLiteral` option for disabling automatically turning into array literals.
135
+ - kddeisz - Print hashes with consistent keys (e.g., if one key cannot be a hash label, use all hash rockets).
136
+ - kddeisz - Respect using `o` or not using `o` for octal numbers.
137
+ - kddeisz - Ensure `when` clauses with multiple predicates that can be split into multiple lines are split correctly.
138
+ - kddeisz - Ensure hash literal is split correctly when only its contents would fit on one line.
139
+ - kddeisz - Simplify `toProc` checks by not calling if the option is disabled.
140
+ - johncsnyder, kddeisz - Add `method_add_block` to the potential like of method calls that can be chained.
141
+ - kddeisz - Add the `rubyArrayLiteral` option for disabling automatically turning into array literals.
128
142
 
129
143
  ## [1.0.0-rc1] - 2020-12-09
130
144
 
131
145
  ### Changed
132
146
 
133
- - [@kddeisz] - Rename options to prep for v1.0 release.
147
+ - kddeisz - Rename options to prep for v1.0 release.
134
148
  - `addTrailingCommas` -> `trailingComma`, `"es5"` means `true`
135
149
  - `inlineConditionals` and `inlineLoops` -> `rubyModifier`
136
150
  - `preferHashLabels` -> `rubyHashLabel`
137
151
  - `preferSingleQuotes` -> `rubySingleQuote`
138
152
  - `toProcTransform` -> `rubyToProc`
139
- - [@andyw8], [@kddeisz] - Fix for Ruby `2.5.1` dyna_symbols. Turns out they were previously incorrectly reported as `xstring` nodes.
140
- - [@andyw8], [@kddeisz] - Fix for plain `rescue` nodes with only comments in the body.
141
- - [@andyw8], [@kddeisz] - Move declaration-type comments up to the line in the original source, as in:
153
+ - andyw8, kddeisz - Fix for Ruby `2.5.1` dyna_symbols. Turns out they were previously incorrectly reported as `xstring` nodes.
154
+ - andyw8, kddeisz - Fix for plain `rescue` nodes with only comments in the body.
155
+ - andyw8, kddeisz - Move declaration-type comments up to the line in the original source, as in:
142
156
 
143
157
  ```ruby
144
158
  def foo # :nodoc:
@@ -148,12 +162,12 @@ end
148
162
 
149
163
  The comment in the above example should stay in place.
150
164
 
151
- - [@janklimo] - Respect special call syntax, e.g., `a.(1, 2, 3)` should remain the same.
152
- - [@kddeisz] - Fix up a bug with `ensure` being used in a `bodystmt` and not a `begin`.
153
- - [@kddeisz] - Fix up a bug with negative ranges, e.g., `-4..-3`.
154
- - [@kddeisz] - Fix up a bug with operator aliases, e.g., `alias << push`.
155
- - [@kddeisz] - Fix up a bug with calls and unary nodes, e.g., `!!foo&.bar`.
156
- - [@kddeisz] - Fix up a bug with multiple rescue clauses and comments, e.g.,
165
+ - janklimo - Respect special call syntax, e.g., `a.(1, 2, 3)` should remain the same.
166
+ - kddeisz - Fix up a bug with `ensure` being used in a `bodystmt` and not a `begin`.
167
+ - kddeisz - Fix up a bug with negative ranges, e.g., `-4..-3`.
168
+ - kddeisz - Fix up a bug with operator aliases, e.g., `alias << push`.
169
+ - kddeisz - Fix up a bug with calls and unary nodes, e.g., `!!foo&.bar`.
170
+ - kddeisz - Fix up a bug with multiple rescue clauses and comments, e.g.,
157
171
 
158
172
  ```ruby
159
173
  begin
@@ -163,64 +177,64 @@ rescue Foo, Bar
163
177
  end
164
178
  ```
165
179
 
166
- - [@kddeisz] - Handle string literals that start with `%Q`.
167
- - [@kddeisz] - Handle question method methods in the predicate of an if with a comment in the body.
168
- - [@kddeisz] - Fix bare `break` with comments immediately after.
169
- - [@kddeisz] - Fix for heredocs with comments immediately after the declaration.
170
- - [@kddeisz] - Fix for comments when you're defining a method whose name overlaps with a keyword.
171
- - [@kddeisz] - Don't automatically indent inside interpolated expressions from within a heredoc.
172
- - [@kddeisz] - Don't convert into string literal arrays if the elements have brackets.
173
- - [@kddeisz] - Ensure you break the parent when there is an assignment in the predicate of a loop.
174
- - [@kddeisz] - Fix up a bug with keyword aliases, e.g., `alias in within`.
175
- - [@kddeisz] - Force using braces for regex if a regex starts with a blank space.
176
- - [@kddeisz] - Force using braces for regex if a regex starts with an equals sign.
177
- - [@kddeisz] - Fix up a bug with constant aliases, e.g., `alias in IN`.
178
- - [@andyw8], [@kddeisz] - Ensure `rescue` comments stay on the same line as their declaration.
180
+ - kddeisz - Handle string literals that start with `%Q`.
181
+ - kddeisz - Handle question method methods in the predicate of an if with a comment in the body.
182
+ - kddeisz - Fix bare `break` with comments immediately after.
183
+ - kddeisz - Fix for heredocs with comments immediately after the declaration.
184
+ - kddeisz - Fix for comments when you're defining a method whose name overlaps with a keyword.
185
+ - kddeisz - Don't automatically indent inside interpolated expressions from within a heredoc.
186
+ - kddeisz - Don't convert into string literal arrays if the elements have brackets.
187
+ - kddeisz - Ensure you break the parent when there is an assignment in the predicate of a loop.
188
+ - kddeisz - Fix up a bug with keyword aliases, e.g., `alias in within`.
189
+ - kddeisz - Force using braces for regex if a regex starts with a blank space.
190
+ - kddeisz - Force using braces for regex if a regex starts with an equals sign.
191
+ - kddeisz - Fix up a bug with constant aliases, e.g., `alias in IN`.
192
+ - andyw8, kddeisz - Ensure `rescue` comments stay on the same line as their declaration.
179
193
 
180
194
  # [0.22.0] - 2020-12-08
181
195
 
182
196
  ### Changed
183
197
 
184
- - [@flyerhzm] - Print method chains by one indentation.
185
- - [@mmcnl], [@kddeisz] - Handle heredocs and blocks being passed to the same method.
186
- - [@johncsnyder], [@kddeisz] - Ensure correct formatting when breaking up conditionals with `inlineConditionals: false`.
187
- - [@Rsullivan00] - Ensure that when ternaries as command arguments get broken into multiple lines we add the necessary parentheses.
188
- - [@jbielick] - Maintain parse order during if/unless modifier expressions
189
- - [@flyerhzm] - Slight prettifying of wrapped args if doc length is under a certain value.
190
- - [@github0013], [@kddeisz] - Ensure `not` keeps parentheses if they are being used.
191
- - [@jbielick] - Print heredocs consistently.
192
- - [@kddeisz] - Completely revamp the way we handle comments.
193
- - [@kddeisz] - Support `hshptn` and the remaining missing pattern matching syntax.
198
+ - flyerhzm - Print method chains by one indentation.
199
+ - mmcnl, kddeisz - Handle heredocs and blocks being passed to the same method.
200
+ - johncsnyder, kddeisz - Ensure correct formatting when breaking up conditionals with `inlineConditionals: false`.
201
+ - Rsullivan00 - Ensure that when ternaries as command arguments get broken into multiple lines we add the necessary parentheses.
202
+ - jbielick - Maintain parse order during if/unless modifier expressions
203
+ - flyerhzm - Slight prettifying of wrapped args if doc length is under a certain value.
204
+ - github0013, kddeisz - Ensure `not` keeps parentheses if they are being used.
205
+ - jbielick - Print heredocs consistently.
206
+ - kddeisz - Completely revamp the way we handle comments.
207
+ - kddeisz - Support `hshptn` and the remaining missing pattern matching syntax.
194
208
 
195
209
  ## [0.21.0] - 2020-12-02
196
210
 
197
211
  ### Changed
198
212
 
199
- - [@kddeisz], [@ryan-hunter-pc] - Explicitly handle `break` and `next` keyword parentheses.
200
- - [@jbielick], [@kddeisz] - Don't convert between `lambda {}` and `-> {}`. Technically it's breaking the semantics of the program. Also because lambda method call arguments can't handle everything that stabby lambda can.
201
- - [@kddeisz] - Turn off the `Symbol#to_proc` transform by default.
202
- - [@janklimo], [@kddeisz] - Properly handle trailing commas on hash arguments.
203
- - [@coiti], [@kddeisz] - Properly handle parentheses when necessary on if/unless statements and while/until loops.
204
- - [@Rsullivan00] - Prevent `command` and `command_call` nodes from being turned into ternaries.
205
- - [@kddeisz] - Better handling of the `alias` node with and without comments.
206
- - [@kddeisz] - Better handling of the `BEGIN` and `END` nodes with and without comments.
207
- - [@kddeisz] - Much better handling of heredocs where now there is a consistent `heredoc` node instead of multiple.
213
+ - kddeisz, ryan-hunter-pc - Explicitly handle `break` and `next` keyword parentheses.
214
+ - jbielick, kddeisz - Don't convert between `lambda {}` and `-> {}`. Technically it's breaking the semantics of the program. Also because lambda method call arguments can't handle everything that stabby lambda can.
215
+ - kddeisz - Turn off the `Symbol#to_proc` transform by default.
216
+ - janklimo, kddeisz - Properly handle trailing commas on hash arguments.
217
+ - coiti, kddeisz - Properly handle parentheses when necessary on if/unless statements and while/until loops.
218
+ - Rsullivan00 - Prevent `command` and `command_call` nodes from being turned into ternaries.
219
+ - kddeisz - Better handling of the `alias` node with and without comments.
220
+ - kddeisz - Better handling of the `BEGIN` and `END` nodes with and without comments.
221
+ - kddeisz - Much better handling of heredocs where now there is a consistent `heredoc` node instead of multiple.
208
222
 
209
223
  ## [0.20.1] - 2020-09-04
210
224
 
211
225
  ### Changed
212
226
 
213
- - [@ftes], [@kddeisz] - Properly escape HAML plain text statements that start with special HAML characters.
227
+ - ftes, kddeisz - Properly escape HAML plain text statements that start with special HAML characters.
214
228
 
215
229
  ### Removed
216
230
 
217
- - [@kddeisz] - I'm stripping out the HAML plugin and putting it into its own package (`@prettier/plugin-haml`). It's become too difficult to maintain within this repo, and it's confusing for contributors because there are some things that work with Ruby and some things that don't. This is going to simplify maintenance. This should probably be a major version bump but since we're still pre `1.0` I'm going to leave it as a patch.
231
+ - kddeisz - I'm stripping out the HAML plugin and putting it into its own package (`@prettier/plugin-haml`). It's become too difficult to maintain within this repo, and it's confusing for contributors because there are some things that work with Ruby and some things that don't. This is going to simplify maintenance. This should probably be a major version bump but since we're still pre `1.0` I'm going to leave it as a patch.
218
232
 
219
233
  ## [0.20.0] - 2020-08-28
220
234
 
221
235
  ### Added
222
236
 
223
- - [@kddeisz] - Allow embedded formatting on heredocs by the name placed at the start. For example,
237
+ - kddeisz - Allow embedded formatting on heredocs by the name placed at the start. For example,
224
238
 
225
239
  <!-- prettier-ignore -->
226
240
  ```ruby
@@ -233,37 +247,37 @@ JAVASCRIPT
233
247
 
234
248
  ### Changed
235
249
 
236
- - [@mmainz] - Fix the encoding setting such that we're not overwriting the entire set of environment variables.
250
+ - mmainz - Fix the encoding setting such that we're not overwriting the entire set of environment variables.
237
251
 
238
252
  ## [0.19.1] - 2020-08-21
239
253
 
240
254
  ### Changed
241
255
 
242
- - [@Rsullivan00] - Do not tranform word-literal arrays when there is an escape sequence.
243
- - [@steobrien], [@kddeisz] - Do not indent heredocs with calls more than they should be.
244
- - [@jpickwell] - Include .simplecov in filenames
245
- - [@github0013], [@kddeisz] - Ensure we're parsing ruby files using UTF-8 regardless of the system encoding.
256
+ - Rsullivan00 - Do not tranform word-literal arrays when there is an escape sequence.
257
+ - steobrien, kddeisz - Do not indent heredocs with calls more than they should be.
258
+ - jpickwell - Include .simplecov in filenames
259
+ - github0013, kddeisz - Ensure we're parsing ruby files using UTF-8 regardless of the system encoding.
246
260
 
247
261
  ## [0.19.0] - 2020-07-03
248
262
 
249
263
  ### Added
250
264
 
251
- - [@ryan-hunter-pc] - Add the option to disable the `Symbol#to_proc` transform.
252
- - [@ryan-hunter-pc], [@SViccari], [@kddeisz] - Disable `Symbol#to_proc` transform when used as a key inside of a hash where the key is either `:if` or `:unless`.
265
+ - ryan-hunter-pc - Add the option to disable the `Symbol#to_proc` transform.
266
+ - ryan-hunter-pc], [@SViccari, kddeisz - Disable `Symbol#to_proc` transform when used as a key inside of a hash where the key is either `:if` or `:unless`.
253
267
 
254
268
  ## [0.18.2] - 2020-05-01
255
269
 
256
270
  ### Changed
257
271
 
258
- - [@alse] - Support `vscodeLanguageIds` for HAML.
259
- - [@ShayDavidson], [@kddeisz] - Don't allow replacing if/else with ternary if there's an assignment in the predicate.
260
- - [@janklimo] - Do not add an empty line after `rescue` when the block is empty.
272
+ - alse - Support `vscodeLanguageIds` for HAML.
273
+ - ShayDavidson, kddeisz - Don't allow replacing if/else with ternary if there's an assignment in the predicate.
274
+ - janklimo - Do not add an empty line after `rescue` when the block is empty.
261
275
 
262
276
  ## [0.18.1] - 2020-04-05
263
277
 
264
278
  ### Changed
265
279
 
266
- - [@petevk], [@kddeisz] - Use braces for block format iff it was originally a brace block, otherwise you could be changing precedence. For example:
280
+ - petevk, kddeisz - Use braces for block format iff it was originally a brace block, otherwise you could be changing precedence. For example:
267
281
 
268
282
  <!-- prettier-ignore -->
269
283
  ```ruby
@@ -276,7 +290,7 @@ end.to raise_error
276
290
 
277
291
  should maintain its `do...end` and not switch to inline braces otherwise the brace might get associated with the `1`.
278
292
 
279
- - [@flyerhzm] - Rewrite operators binary parser, as in:
293
+ - flyerhzm - Rewrite operators binary parser, as in:
280
294
 
281
295
  <!-- prettier-ignore -->
282
296
  ```ruby
@@ -287,10 +301,10 @@ should maintain its `do...end` and not switch to inline braces otherwise the bra
287
301
  [1]
288
302
  ```
289
303
 
290
- - [@ftes], [@kddeisz] - When old-form dynamic attributes are added to a `div` tag in HAML, it was previously skipping printing the `%div`, which led to it being incorrectly displayed.
291
- - [@ftes], [@kddeisz] - Previously if you had a long tag declaration with attributes that made it hit the line limit, then the content of the tag would be pushed to the next line but indented one character too many.
292
- - [@ftes], [@kddeisz] - Don't explicitly require JSON if it has already been loaded, as this can lead to rubygems activation errors.
293
- - [@mmainz], [@kddeisz] - Handle heredocs as the receivers of call nodes, as in:
304
+ - ftes, kddeisz - When old-form dynamic attributes are added to a `div` tag in HAML, it was previously skipping printing the `%div`, which led to it being incorrectly displayed.
305
+ - ftes, kddeisz - Previously if you had a long tag declaration with attributes that made it hit the line limit, then the content of the tag would be pushed to the next line but indented one character too many.
306
+ - ftes, kddeisz - Don't explicitly require JSON if it has already been loaded, as this can lead to rubygems activation errors.
307
+ - mmainz, kddeisz - Handle heredocs as the receivers of call nodes, as in:
294
308
 
295
309
  <!-- prettier-ignore -->
296
310
  ```ruby
@@ -299,7 +313,7 @@ foo = <<~TEXT.strip
299
313
  TEXT
300
314
  ```
301
315
 
302
- - [@github0013], [@kddeisz] - Leave parentheses in place if the value of a return node contains a binary with low operator precedence, as in:
316
+ - github0013, kddeisz - Leave parentheses in place if the value of a return node contains a binary with low operator precedence, as in:
303
317
 
304
318
  <!-- prettier-ignore -->
305
319
  ```ruby
@@ -310,13 +324,13 @@ return (a or b) if c?
310
324
 
311
325
  ### Added
312
326
 
313
- - [@kddeisz] - Support for the `nokw_param` node for specifying when methods should no accept keywords, as in:
327
+ - kddeisz - Support for the `nokw_param` node for specifying when methods should no accept keywords, as in:
314
328
 
315
329
  ```ruby
316
330
  def foo(**nil); end
317
331
  ```
318
332
 
319
- - [@kddeisz] - Support for the `args_forward` node for forwarding all types of arguments, as in:
333
+ - kddeisz - Support for the `args_forward` node for forwarding all types of arguments, as in:
320
334
 
321
335
  ```ruby
322
336
  def foo(...)
@@ -326,13 +340,13 @@ end
326
340
 
327
341
  ### Changed
328
342
 
329
- - [@ftes], [@kddeisz] - Handled 3 or more classes on a node in HAML, as in:
343
+ - ftes, kddeisz - Handled 3 or more classes on a node in HAML, as in:
330
344
 
331
345
  ```haml
332
346
  %table.table.is-striped.is-hoverable
333
347
  ```
334
348
 
335
- - [@ftes], [@kddeisz] - Better handling of indentation of `if/elsif/else`, `unless/elsif/else`, and `case/when` branches, as in:
349
+ - ftes, kddeisz - Better handling of indentation of `if/elsif/else`, `unless/elsif/else`, and `case/when` branches, as in:
336
350
 
337
351
  ```haml
338
352
  .column.is-12
@@ -342,9 +356,9 @@ end
342
356
  FALSE
343
357
  ```
344
358
 
345
- - [@tobyndockerill] - Format numbers with underscores after 4 digits, as opposed to 3.
346
- - [@ianks] - Improve performance by using `--disable-gems`.
347
- - [@flyerhzm] - Calls are grouped such that after an end parenthesis the following call will not be indented, as in:
359
+ - tobyndockerill - Format numbers with underscores after 4 digits, as opposed to 3.
360
+ - ianks - Improve performance by using `--disable-gems`.
361
+ - flyerhzm - Calls are grouped such that after an end parenthesis the following call will not be indented, as in:
348
362
 
349
363
  <!-- prettier-ignore -->
350
364
  ```ruby
@@ -365,7 +379,7 @@ Config::Download.new(
365
379
  ).perform
366
380
  ```
367
381
 
368
- - [@pje], [@kddeisz] - Method definition bodies (on `defs` nodes) should dedent if a helper method is called. As in:
382
+ - pje, kddeisz - Method definition bodies (on `defs` nodes) should dedent if a helper method is called. As in:
369
383
 
370
384
  <!-- prettier-ignore -->
371
385
  ```ruby
@@ -383,7 +397,7 @@ private def self.foo
383
397
  end
384
398
  ```
385
399
 
386
- - [@masqita], [@kddeisz] - Inline variable assignment within a predicate should force the conditional to break, as in:
400
+ - masqita, kddeisz - Inline variable assignment within a predicate should force the conditional to break, as in:
387
401
 
388
402
  ```ruby
389
403
  array.each do |element|
@@ -393,26 +407,26 @@ array.each do |element|
393
407
  end
394
408
  ```
395
409
 
396
- - [@hafley66], [@kddeisz] - Handle empty `while` and `until` blocks.
397
- - [@Fruetel], [@kddeisz] - Simplify string escape pattern by locking on any escape sequence.
398
- - [@flyerhzm], [@kddeisz] - Properly handle string quotes on symbols in hash keys.
410
+ - hafley66, kddeisz - Handle empty `while` and `until` blocks.
411
+ - Fruetel, kddeisz - Simplify string escape pattern by locking on any escape sequence.
412
+ - flyerhzm, kddeisz - Properly handle string quotes on symbols in hash keys.
399
413
 
400
414
  ## [0.17.0] - 2019-12-12
401
415
 
402
416
  ### Added
403
417
 
404
- - [@matt-wratt] - Better support for explicit `return` nodes with empty arrays or arrays with a single element.
405
- - [@jrdioko], [@kddeisz] - Alignment of `not_to` is explicitly allowed to not indent to better support rspec.
418
+ - matt-wratt - Better support for explicit `return` nodes with empty arrays or arrays with a single element.
419
+ - jrdioko, kddeisz - Alignment of `not_to` is explicitly allowed to not indent to better support rspec.
406
420
 
407
421
  ### Changed
408
422
 
409
- - [@gin0606] - The max buffer being passed into the Ruby process is now up to 10MB.
423
+ - gin0606 - The max buffer being passed into the Ruby process is now up to 10MB.
410
424
 
411
425
  ## [0.16.0] - 2019-11-14
412
426
 
413
427
  ### Added
414
428
 
415
- - [@mmainz], [@kddeisz] - Support for extra commas in multiple assignment, as it changes the meaning. For example,
429
+ - mmainz, kddeisz - Support for extra commas in multiple assignment, as it changes the meaning. For example,
416
430
 
417
431
  <!-- prettier-ignore -->
418
432
  ```ruby
@@ -421,12 +435,12 @@ a, = [1, 2, 3]
421
435
 
422
436
  would previously get printed as `a = [1, 2, 3]`, which changes the value of `a` from `1` to the value of the entire array.
423
437
 
424
- - [@kddeisz] - Experimental support for the HAMtemplate language.
438
+ - kddeisz - Experimental support for the HAMtemplate language.
425
439
 
426
440
  ### Changed
427
441
 
428
- - [@github0013], [@kddeisz] - Support proper string escaping when the original string in the source is wrapped in `%q|...|`. For example, `%q|\'|` should get printed as `"\'"`, where previously it was dropping the backslash.
429
- - [@jamescostian], [@kddeisz] - Force ternary breaking when using the lower-precendence operators `and` and `or`. For example,
442
+ - github0013, kddeisz - Support proper string escaping when the original string in the source is wrapped in `%q|...|`. For example, `%q|\'|` should get printed as `"\'"`, where previously it was dropping the backslash.
443
+ - jamescostian, kddeisz - Force ternary breaking when using the lower-precendence operators `and` and `or`. For example,
430
444
 
431
445
  <!-- prettier-ignore -->
432
446
  ```ruby
@@ -439,7 +453,7 @@ end
439
453
 
440
454
  the previous expression was being transformed into a ternary which was invalid ruby. Instead it now stays broken out into an if/else block.
441
455
 
442
- - [@localhostdotdev], [@joeyjoejoejr], [@eins78], [@kddeisz] - Better support for embedded expressions inside heredocs. For example,
456
+ - localhostdotdev], [@joeyjoejoejr], [@eins78, kddeisz - Better support for embedded expressions inside heredocs. For example,
443
457
 
444
458
  <!-- prettier-ignore -->
445
459
  ```ruby
@@ -452,14 +466,14 @@ HERE
452
466
 
453
467
  should remain formatted as it is. Whereas previously due to the way the lines were split, you would sometimes end up with it breaking after `#{`.
454
468
 
455
- - [@jamescostian], [@kddeisz] - Fix up `return` node printing. When returning multiple values, you need to return an array literal as opposed to using parentheses.
469
+ - jamescostian, kddeisz - Fix up `return` node printing. When returning multiple values, you need to return an array literal as opposed to using parentheses.
456
470
 
457
471
  ## [0.15.1] - 2019-11-05
458
472
 
459
473
  ### Changed
460
474
 
461
- - [@AlanFoster] - Add `bin/lex` for viewing the tokenized result of Ripper on Ruby code.
462
- - [@jakeprime], [@kddeisz] - When predicates from within an `if`, `unless`, `while`, or `until` loop break the line, they should be aligned together. For example,
475
+ - AlanFoster - Add `bin/lex` for viewing the tokenized result of Ripper on Ruby code.
476
+ - jakeprime, kddeisz - When predicates from within an `if`, `unless`, `while`, or `until` loop break the line, they should be aligned together. For example,
463
477
 
464
478
  <!-- prettier-ignore -->
465
479
  ```ruby
@@ -478,7 +492,7 @@ if foooooo ||
478
492
  end
479
493
  ```
480
494
 
481
- - [@jamescostian], [@AlanFoster] - Empty `if`, and `unless` conditionals are now handled gracefully:
495
+ - jamescostian], [@AlanFoster - Empty `if`, and `unless` conditionals are now handled gracefully:
482
496
 
483
497
  <!-- prettier-ignore -->
484
498
  ```ruby
@@ -486,7 +500,7 @@ if foo?
486
500
  end
487
501
  ```
488
502
 
489
- - [@mmainz], [@kddeisz] - Hash keys are not converted to keyword syntax if they would make invalid symbols. For example,
503
+ - mmainz, kddeisz - Hash keys are not converted to keyword syntax if they would make invalid symbols. For example,
490
504
 
491
505
  <!-- prettier-ignore -->
492
506
  ```ruby
@@ -495,9 +509,9 @@ end
495
509
 
496
510
  cannot be translated into `[]:` as that is an invalid symbol. Instead, it stays with the hash rocket syntax.
497
511
 
498
- - [@cldevs], [@kddeisz] - Do not attempt to format the insides of xstring literals (string that get sent to the command line surrounded by backticks or `%x`).
499
- - [@cldevs], [@kddeisz] - When predicates for `if`, `unless`, `while`, or `until` nodes contain an assignment, we can't know for sure that it doesn't modify the body. In this case we need to always break and form a multi-line block.
500
- - [@MarcManiez], [@kddeisz] - When the return value of `if`, `unless`, `while`, or `until` nodes are assigned to anything other than a local variable, we need to wrap them in parentheses if we're changing to the modifier form. This is because the following expressions have different semantic meaning:
512
+ - cldevs, kddeisz - Do not attempt to format the insides of xstring literals (string that get sent to the command line surrounded by backticks or `%x`).
513
+ - cldevs, kddeisz - When predicates for `if`, `unless`, `while`, or `until` nodes contain an assignment, we can't know for sure that it doesn't modify the body. In this case we need to always break and form a multi-line block.
514
+ - MarcManiez, kddeisz - When the return value of `if`, `unless`, `while`, or `until` nodes are assigned to anything other than a local variable, we need to wrap them in parentheses if we're changing to the modifier form. This is because the following expressions have different semantic meaning:
501
515
 
502
516
  <!-- prettier-ignore -->
503
517
  ```ruby
@@ -514,14 +528,14 @@ hash[:key] = (break :value while false)
514
528
 
515
529
  That will guarantee that the expressions are equivalent.
516
530
 
517
- - [@AlanFoster] - Fix crashes that were happening with `ignored_nl` nodes.
531
+ - AlanFoster - Fix crashes that were happening with `ignored_nl` nodes.
518
532
 
519
533
  ## [0.15.0] - 2019-08-06
520
534
 
521
535
  ### Changed
522
536
 
523
- - [@dudeofawesome], [@kddeisz] - If xstring literals (command line calls surrounded by backticks) break, then we indent and place the command on a new line. Previously, this was resulting in new lines getting added each time the code was formatted. Now this happens correctly.
524
- - [@krachtstefan], [@kddeisz] - When a `while` or `until` loop modifies a `begin...end` statement, it must remain in the modifier form or else it changes sematic meaning. For example,
537
+ - dudeofawesome, kddeisz - If xstring literals (command line calls surrounded by backticks) break, then we indent and place the command on a new line. Previously, this was resulting in new lines getting added each time the code was formatted. Now this happens correctly.
538
+ - krachtstefan, kddeisz - When a `while` or `until` loop modifies a `begin...end` statement, it must remain in the modifier form or else it changes sematic meaning. For example,
525
539
 
526
540
  <!-- prettier-ignore -->
527
541
  ```ruby
@@ -541,8 +555,8 @@ end
541
555
 
542
556
  because that would never execute `foo` if `bar` is falsy, whereas in the initial example it would have.
543
557
 
544
- - [@jviney], [@kddeisz] - When transforming a block into the `Symbol#to_proc` syntax from within a list of arguments inside of an `aref` node (i.e., `foo[:bar].each`), we can't put the block syntax inside the brackets.
545
- - [@jakeprime], [@kddeisz] - Values for the `return` keyword that broke the line were previously just printed as they were, which breaks if you have a block expression like an `if` or `while`. For example,
558
+ - jviney], kddeisz - When transforming a block into the `Symbol#to_proc` syntax from within a list of arguments inside of an `aref` node (i.e., `foo[:bar.each`), we can't put the block syntax inside the brackets.
559
+ - jakeprime, kddeisz - Values for the `return` keyword that broke the line were previously just printed as they were, which breaks if you have a block expression like an `if` or `while`. For example,
546
560
 
547
561
  <!-- prettier-ignore -->
548
562
  ```ruby
@@ -573,7 +587,7 @@ return(
573
587
  )
574
588
  ```
575
589
 
576
- - [@jakeprime], [@kddeisz] - When switching from a double-quoted string to a single-quoted string that contained escaped double quotes, the backslashes would stay in the string. As in:
590
+ - jakeprime, kddeisz - When switching from a double-quoted string to a single-quoted string that contained escaped double quotes, the backslashes would stay in the string. As in:
577
591
 
578
592
  <!-- prettier-ignore -->
579
593
  ```ruby
@@ -598,11 +612,11 @@ but now gets formatted as:
598
612
 
599
613
  ### Added
600
614
 
601
- - [@kddeisz] - Support for pattern matching for variables and array patterns. Currently waiting on Ripper support for hash patterns. For examples, check out the [test/js/patterns.test.js](test/js/patterns.test.js) file.
615
+ - kddeisz - Support for pattern matching for variables and array patterns. Currently waiting on Ripper support for hash patterns. For examples, check out the [test/js/patterns.test.js](test/js/patterns.test.js) file.
602
616
 
603
617
  ### Changed
604
618
 
605
- - [@jviney], [@kddeisz] - if/else blocks that had method calls on the end of them that were also transformed into ternaries need to have parens added to them. For example,
619
+ - jviney, kddeisz - if/else blocks that had method calls on the end of them that were also transformed into ternaries need to have parens added to them. For example,
606
620
 
607
621
  <!-- prettier-ignore -->
608
622
  ```ruby
@@ -620,8 +634,8 @@ now correctly gets transformed into:
620
634
  (foo ? 1 : 2).to_s
621
635
  ```
622
636
 
623
- - [@acrewdson], [@kddeisz] - Fixed a bug where multiple newlines at the end of the file would cause a crash.
624
- - [@jviney], [@kddeisz] - If a variable is assigned inside of the predicate of a conditional, then we can't change it into the single-line version as this breaks. For example,
637
+ - acrewdson, kddeisz - Fixed a bug where multiple newlines at the end of the file would cause a crash.
638
+ - jviney, kddeisz - If a variable is assigned inside of the predicate of a conditional, then we can't change it into the single-line version as this breaks. For example,
625
639
 
626
640
  <!-- prettier-ignore -->
627
641
  ```ruby
@@ -636,11 +650,11 @@ must stay the same.
636
650
 
637
651
  ### Added
638
652
 
639
- - [@kddeisz] - Added `locStart` and `locEnd` functions to support `--cursor-offset`.
653
+ - kddeisz - Added `locStart` and `locEnd` functions to support `--cursor-offset`.
640
654
 
641
655
  ### Changed
642
656
 
643
- - [@xipgroc], [@kddeisz] - Comments inside of `do...end` blocks that preceeded `call` nodes were associating the comment with the `var_ref` instead of the `call` itself. For example,
657
+ - xipgroc, kddeisz - Comments inside of `do...end` blocks that preceeded `call` nodes were associating the comment with the `var_ref` instead of the `call` itself. For example,
644
658
 
645
659
  <!-- prettier-ignore -->
646
660
  ```ruby
@@ -665,7 +679,7 @@ end
665
679
 
666
680
  but now gets printed correctly.
667
681
 
668
- - [@petevk], [@kddeisz] - Double splats inside a hash were previously failing to print. For example,
682
+ - petevk, kddeisz - Double splats inside a hash were previously failing to print. For example,
669
683
 
670
684
  <!-- prettier-ignore -->
671
685
  ```ruby
@@ -678,12 +692,12 @@ would fail to print, but now works.
678
692
 
679
693
  ### Changed
680
694
 
681
- - [@kddeisz] - Move arg, assign, constant, flow, massign, operator, scope, and statement nodes into their own files.
682
- - [@kddeisz] - Move `@int`, `access_ctrl`, `assocsplat`, `block_var`, `else`, `number_arg`, `super`, `undef`, `var_ref`, and `var_ref` as well as various call and symbol nodes into appropriate files.
683
- - [@kddeisz] - Better support for excessed commas in block args. Previously `proc { |x,| }` would add an extra space, but now it does not.
684
- - [@kddeisz] - Add a lot more documentation to the parser.
685
- - [@glejeune], [@kddeisz] - Previously, the unary `not` operator inside a ternary (e.g., `a ? not(b) : c`) would break because it wouldn't add parentheses, but now it adds them.
686
- - [@kddeisz] - `if` and `unless` nodes used to not be able to handle if a comment was the only statement in the body. For example,
695
+ - kddeisz - Move arg, assign, constant, flow, massign, operator, scope, and statement nodes into their own files.
696
+ - kddeisz - Move `@int`, `access_ctrl`, `assocsplat`, `block_var`, `else`, `number_arg`, `super`, `undef`, `var_ref`, and `var_ref` as well as various call and symbol nodes into appropriate files.
697
+ - kddeisz - Better support for excessed commas in block args. Previously `proc { |x,| }` would add an extra space, but now it does not.
698
+ - kddeisz - Add a lot more documentation to the parser.
699
+ - glejeune, kddeisz - Previously, the unary `not` operator inside a ternary (e.g., `a ? not(b) : c`) would break because it wouldn't add parentheses, but now it adds them.
700
+ - kddeisz - `if` and `unless` nodes used to not be able to handle if a comment was the only statement in the body. For example,
687
701
 
688
702
  <!-- prettier-ignore -->
689
703
  ```ruby
@@ -701,7 +715,7 @@ would get printed as
701
715
 
702
716
  Now the `if` and `unless` printers check for the presence of single comments.
703
717
 
704
- - [@JoshuaKGoldberg], [@kddeisz] - Fixes an error where `command` nodes within `def` nodes would fail to format if it was only a single block argument. For example,
718
+ - JoshuaKGoldberg, kddeisz - Fixes an error where `command` nodes within `def` nodes would fail to format if it was only a single block argument. For example,
705
719
 
706
720
  <!-- prettier-ignore -->
707
721
  ```ruby
@@ -712,7 +726,7 @@ end
712
726
 
713
727
  would fail, but now works.
714
728
 
715
- - [@xipgroc], [@kddeisz] - Comments on lines with array references were previously deleting the array references entirely. For example,
729
+ - xipgroc, kddeisz - Comments on lines with array references were previously deleting the array references entirely. For example,
716
730
 
717
731
  <!-- prettier-ignore -->
718
732
  ```ruby
@@ -725,323 +739,323 @@ would previously result in `array[]`, but now prints properly.
725
739
 
726
740
  ### Changed
727
741
 
728
- - [@kddeisz] - When symbol literal hash keys end with `=`, they cannot be transformed into hash labels.
729
- - [@xipgroc], [@kddeisz] - Fixed when blocks on methods with no arguments are transformed into `to_proc` syntax.
742
+ - kddeisz - When symbol literal hash keys end with `=`, they cannot be transformed into hash labels.
743
+ - xipgroc, kddeisz - Fixed when blocks on methods with no arguments are transformed into `to_proc` syntax.
730
744
 
731
745
  ## [0.12.1] - 2019-04-22
732
746
 
733
747
  ### Changed
734
748
 
735
- - [@kddeisz] - If a lambda literal is nested under a `command` or `command_call` node anywhere in the heirarchy, then it needs to use the higher-precedence `{ ... }` braces as opposed to the `do ... end` delimiters.
736
- - [@jpickwell], [@kddeisz] - Calling `super` with a block and no args was causing the parser to fail when attempting to inspect lambda nodes.
737
- - [@kddeisz] - Support better breaking within interpolation by grouping the interpolated content.
749
+ - kddeisz - If a lambda literal is nested under a `command` or `command_call` node anywhere in the heirarchy, then it needs to use the higher-precedence `{ ... }` braces as opposed to the `do ... end` delimiters.
750
+ - jpickwell, kddeisz - Calling `super` with a block and no args was causing the parser to fail when attempting to inspect lambda nodes.
751
+ - kddeisz - Support better breaking within interpolation by grouping the interpolated content.
738
752
 
739
753
  ## [0.12.0] - 2019-04-18
740
754
 
741
755
  ### Added
742
756
 
743
- - [@kddeisz] - Automatically convert `lambda { ... }` method calls into `-> { ... }` literals.
757
+ - kddeisz - Automatically convert `lambda { ... }` method calls into `-> { ... }` literals.
744
758
 
745
759
  ## [0.11.0] - 2019-04-18
746
760
 
747
761
  ### Added
748
762
 
749
- - [@kddeisz] - Support for parsing things with a ruby shebang (e.g., `#!/usr/bin/env ruby` or `#!/usr/bin/ruby`).
750
- - [@kddeisz] - Big tests refactor.
751
- - [@kddeisz] - Make multiple `when` predicates break at 80 chars and then wrap to be inline with the other predicates.
752
- - [@kddeisz] - Automatically add underscores in large numbers that aren't already formatted.
753
- - [@AlanFoster] - Better support for inline access control modifiers.
754
- - [@jpickwell], [@kddeisz] - Better support for heredocs in hash literals.
755
- - [@kddeisz] - Better support for heredocs in array literals.
756
- - [@kddeisz] - Support automatically transforming `def/begin/rescue/end/end` into `def/rescue/end`.
763
+ - kddeisz - Support for parsing things with a ruby shebang (e.g., `#!/usr/bin/env ruby` or `#!/usr/bin/ruby`).
764
+ - kddeisz - Big tests refactor.
765
+ - kddeisz - Make multiple `when` predicates break at 80 chars and then wrap to be inline with the other predicates.
766
+ - kddeisz - Automatically add underscores in large numbers that aren't already formatted.
767
+ - AlanFoster - Better support for inline access control modifiers.
768
+ - jpickwell, kddeisz - Better support for heredocs in hash literals.
769
+ - kddeisz - Better support for heredocs in array literals.
770
+ - kddeisz - Support automatically transforming `def/begin/rescue/end/end` into `def/rescue/end`.
757
771
 
758
772
  ### Changed
759
773
 
760
- - [@deecewan] - Fixed support for dynamic string hash keys.
761
- - [@kddeisz] - Moved `case/when` into its own file and added better documentation.
762
- - [@kddeisz] - Moved `begin/rescue` into its own file.
763
- - [@AlanFoster] - Automatically add newlines around access modifiers.
764
- - [@kddeisz] - Alignment of command calls with arguments is fixed.
765
- - [@aaronjensen], [@kddeisz] - Alignment of `to` is explicitly allowed to not indent to better support rspec.
766
- - [@kddeisz] - Fix up the `to_proc` transform so that it works with other argument handling appropriately.
767
- - [@kddeisz] - Fixed regression on regexp comments.
768
- - [@CodingItWrong], [@kddeisz] - Fix up block delimiters when nested inside a `command` or `command_call` node.
769
- - [@kddeisz] - Moved hashes into its own file.
774
+ - deecewan - Fixed support for dynamic string hash keys.
775
+ - kddeisz - Moved `case/when` into its own file and added better documentation.
776
+ - kddeisz - Moved `begin/rescue` into its own file.
777
+ - AlanFoster - Automatically add newlines around access modifiers.
778
+ - kddeisz - Alignment of command calls with arguments is fixed.
779
+ - aaronjensen, kddeisz - Alignment of `to` is explicitly allowed to not indent to better support rspec.
780
+ - kddeisz - Fix up the `to_proc` transform so that it works with other argument handling appropriately.
781
+ - kddeisz - Fixed regression on regexp comments.
782
+ - CodingItWrong, kddeisz - Fix up block delimiters when nested inside a `command` or `command_call` node.
783
+ - kddeisz - Moved hashes into its own file.
770
784
 
771
785
  ## [0.10.0] - 2019-03-25
772
786
 
773
787
  ### Added
774
788
 
775
- - [@kddeisz] - Support for block-local variables.
776
- - [@kddeisz] - Support for dyna-symbols that are using single quotes.
789
+ - kddeisz - Support for block-local variables.
790
+ - kddeisz - Support for dyna-symbols that are using single quotes.
777
791
 
778
792
  ### Changed
779
793
 
780
- - [@kddeisz] - Force method calls after arrays, blocks, hashes, and xstrings to hang onto the end of the previous nodes.
781
- - [@kddeisz] - Check before anything else for an invalid ruby version.
794
+ - kddeisz - Force method calls after arrays, blocks, hashes, and xstrings to hang onto the end of the previous nodes.
795
+ - kddeisz - Check before anything else for an invalid ruby version.
782
796
 
783
797
  ## [0.9.1] - 2019-03-24
784
798
 
785
799
  ### Changed
786
800
 
787
- - [@kddeisz] - Better support string quotes by favoring what the user chose if the string contains escape patterns.
788
- - [@kddeisz] - Better support heredocs within method calls.
801
+ - kddeisz - Better support string quotes by favoring what the user chose if the string contains escape patterns.
802
+ - kddeisz - Better support heredocs within method calls.
789
803
 
790
804
  ## [0.9.0] - 2019-03-18
791
805
 
792
806
  ### Added
793
807
 
794
- - [@kddeisz] - Support the `hasPragma` function.
795
- - [@kddeisz] - Support the new `number_arg` node type in Ruby 2.7.
808
+ - kddeisz - Support the `hasPragma` function.
809
+ - kddeisz - Support the new `number_arg` node type in Ruby 2.7.
796
810
 
797
811
  ### Changed
798
812
 
799
- - [@kddeisz] - Limit the number of nodes that are allowed to turn into ternary expressions.
813
+ - kddeisz - Limit the number of nodes that are allowed to turn into ternary expressions.
800
814
 
801
815
  ## [0.8.0] - 2019-03-08
802
816
 
803
817
  ### Added
804
818
 
805
- - [@kddeisz] - Add `eslint` and fix up existing violations.
806
- - [@AlanFoster] - Add the infra for the `prettier` ruby gem.
807
- - [@kddeisz] - Add a `rake` task for easier process integration for the ruby gem.
808
- - [@kddeisz] - Handle direct interpolation of strings with %w array literals (i.e., `["#{foo}"]` should not be transformed into a %w array).
819
+ - kddeisz - Add `eslint` and fix up existing violations.
820
+ - AlanFoster - Add the infra for the `prettier` ruby gem.
821
+ - kddeisz - Add a `rake` task for easier process integration for the ruby gem.
822
+ - kddeisz - Handle direct interpolation of strings with %w array literals (i.e., `["#{foo}"]` should not be transformed into a %w array).
809
823
 
810
824
  ### Changed
811
825
 
812
- - [@kddeisz] - Fix string escaping for hex digit bit patterns when there's only one character after the "x".
813
- - [@AlanFoster] - Don't allow line breaks between brace block params.
814
- - [@johnschoeman] - Switch over the array.rb test case to minitest.
815
- - [@AlanFoster] - Test improvements to allow running in parallel.
816
- - [@johnschoeman] - Switch over assign.rb test case to minitest.
817
- - [@AlanFoster] - Add a contributing guide.
818
- - [@AlanFoster] - Handle longer command nodes.
819
- - [@kddeisz] - Changed the ruby executable within the `prettier` gem to `rbprettier` for easier autocomplete.
826
+ - kddeisz - Fix string escaping for hex digit bit patterns when there's only one character after the "x".
827
+ - AlanFoster - Don't allow line breaks between brace block params.
828
+ - johnschoeman - Switch over the array.rb test case to minitest.
829
+ - AlanFoster - Test improvements to allow running in parallel.
830
+ - johnschoeman - Switch over assign.rb test case to minitest.
831
+ - AlanFoster - Add a contributing guide.
832
+ - AlanFoster - Handle longer command nodes.
833
+ - kddeisz - Changed the ruby executable within the `prettier` gem to `rbprettier` for easier autocomplete.
820
834
 
821
835
  ### Removed
822
836
 
823
- - [@kddeisz] - All instances of the spread (`...`) operator so that we can support older versions of node.
837
+ - kddeisz - All instances of the spread (`...`) operator so that we can support older versions of node.
824
838
 
825
839
  ## [0.7.0] - 2019-02-24
826
840
 
827
841
  ### Changed
828
842
 
829
- - [@kddeisz] - Support checking for escaping within strings to force double quotes (e.g., "\n").
830
- - [@RossKinsella], [@kddeisz] - Handle cases with empty class and module declarations that need to break.
831
- - [@AlanFoster] - Align the `bin/print` and `bin/sexp` APto support `bin/print` taking a filepath.
832
- - [@AndrewRayCode], [@kddeisz] - Support lambdas that don't break and are inline.
833
- - [@AlanFoster] - Switch over the numbers.rb test to minitest.
834
- - [@AlanFoster] - Switch over the kwargs.rb test to minitest.
835
- - [@AlanFoster] - Bail out early if the Ruby input is invalid.
836
- - [@kddeisz] - Support `__END__` content.
837
- - [@AlanFoster] - Fix up issue with whitespace being added within regexp that are multiline.
838
- - [@AlanFoster] - Better support for destructuring within multi assignment.
839
- - [@kddeisz] - Switch `next` test over to minitest.
840
- - [@kddeisz] - Handle multiple arguments to `next` with a space between.
841
- - [@AndrewRayCode], [@kddeisz] - Handle multi-line conditional predicate (should align with keyword).
842
- - [@aaronjensen], [@kddeisz] - Properly support adding trailing commas with and without blocks.
843
- - [@AlanFoster], [@kddeisz] - Fix regression of handling comments within arrays on array literals.
844
- - [@AlanFoster] - Support multiple arguments to `undef`.
843
+ - kddeisz - Support checking for escaping within strings to force double quotes (e.g., "\n").
844
+ - RossKinsella, kddeisz - Handle cases with empty class and module declarations that need to break.
845
+ - AlanFoster - Align the `bin/print` and `bin/sexp` APto support `bin/print` taking a filepath.
846
+ - AndrewRayCode, kddeisz - Support lambdas that don't break and are inline.
847
+ - AlanFoster - Switch over the numbers.rb test to minitest.
848
+ - AlanFoster - Switch over the kwargs.rb test to minitest.
849
+ - AlanFoster - Bail out early if the Ruby input is invalid.
850
+ - kddeisz - Support `__END__` content.
851
+ - AlanFoster - Fix up issue with whitespace being added within regexp that are multiline.
852
+ - AlanFoster - Better support for destructuring within multi assignment.
853
+ - kddeisz - Switch `next` test over to minitest.
854
+ - kddeisz - Handle multiple arguments to `next` with a space between.
855
+ - AndrewRayCode, kddeisz - Handle multi-line conditional predicate (should align with keyword).
856
+ - aaronjensen, kddeisz - Properly support adding trailing commas with and without blocks.
857
+ - AlanFoster, kddeisz - Fix regression of handling comments within arrays on array literals.
858
+ - AlanFoster - Support multiple arguments to `undef`.
845
859
 
846
860
  ## [0.6.3] - 2019-02-18
847
861
 
848
862
  ### Changed
849
863
 
850
- - [@kddeisz] - Switch over `binary` fixture to minitest.
851
- - [@kddeisz] - Reconfigure parser into multiple layer modules so that it's easier to understand and manage.
852
- - [@kddeisz] - Handle comments from within `begin`, `rescue`, `ensure`, `while`, and `until` nodes.
853
- - [@kddeisz] - Properly indent heredocs without taking into account current indentation level.
864
+ - kddeisz - Switch over `binary` fixture to minitest.
865
+ - kddeisz - Reconfigure parser into multiple layer modules so that it's easier to understand and manage.
866
+ - kddeisz - Handle comments from within `begin`, `rescue`, `ensure`, `while`, and `until` nodes.
867
+ - kddeisz - Properly indent heredocs without taking into account current indentation level.
854
868
 
855
869
  ## [0.6.2] - 2019-02-17
856
870
 
857
871
  ### Changed
858
872
 
859
- - [@AlanFoster] - Handle regexp suffixes.
860
- - [@kddeisz] - Add support for testing the test fixtures with minitest.
861
- - [@kddeisz] - Switch over `alias` and `regexp` tests to minitest.
862
- - [@aaronjensen], [@kddeisz] - Break up method args to split into multiple lines.
863
- - [@christoomey], [@kddeisz] - Handle blocks args when trailing commas are on.
873
+ - AlanFoster - Handle regexp suffixes.
874
+ - kddeisz - Add support for testing the test fixtures with minitest.
875
+ - kddeisz - Switch over `alias` and `regexp` tests to minitest.
876
+ - aaronjensen, kddeisz - Break up method args to split into multiple lines.
877
+ - christoomey, kddeisz - Handle blocks args when trailing commas are on.
864
878
 
865
879
  ## [0.6.1] - 2019-02-15
866
880
 
867
881
  ### Changed
868
882
 
869
- - [@meleyal], [@kddeisz] - Fix Ruby 2.5 inline comments on `args_add_block` nodes.
870
- - [@meleyal], [@kddeisz] - Support passing `super()` explicitly with no arguments.
883
+ - meleyal, kddeisz - Fix Ruby 2.5 inline comments on `args_add_block` nodes.
884
+ - meleyal, kddeisz - Support passing `super()` explicitly with no arguments.
871
885
 
872
886
  ## [0.6.0] - 2019-02-14
873
887
 
874
888
  ### Added
875
889
 
876
- - [@kddeisz] - Handle non UTF-8 comments.
877
- - [@kddeisz] - Handle non UTF-8 identifiers.
878
- - [@kddeisz] - Handle non UTF-8 strings.
879
- - [@kddeisz] - Handle empty parens.
880
- - [@kddeisz] - Handle rescue with splats preceeding the exception names.
890
+ - kddeisz - Handle non UTF-8 comments.
891
+ - kddeisz - Handle non UTF-8 identifiers.
892
+ - kddeisz - Handle non UTF-8 strings.
893
+ - kddeisz - Handle empty parens.
894
+ - kddeisz - Handle rescue with splats preceeding the exception names.
881
895
 
882
896
  ### Changed
883
897
 
884
- - [@kddeisz] - Use `JSON::fast_generate` to get the s-expressions back from the parser.
885
- - [@NoahTheDuke], [@kddeisz] - Handle broken lambdas from within `command` and `command_call` nodes.
898
+ - kddeisz - Use `JSON::fast_generate` to get the s-expressions back from the parser.
899
+ - NoahTheDuke, kddeisz - Handle broken lambdas from within `command` and `command_call` nodes.
886
900
 
887
901
  ## [0.5.2] - 2019-02-13
888
902
 
889
903
  ### Changed
890
904
 
891
- - [@kddeisz] - Support embedded expressions within strings that contain only keywords, as in `"#{super}"`.
905
+ - kddeisz - Support embedded expressions within strings that contain only keywords, as in `"#{super}"`.
892
906
 
893
907
  ## [0.5.1] - 2019-02-13
894
908
 
895
909
  ### Changed
896
910
 
897
- - [@yuki24], [@kddeisz] - Force `do` blocks that we know have to be `do` blocks to break.
898
- - [@kmcq], [@kddeisz] - Handle `command` and `command_call` nodes `do` blocks by forcing them to break.
899
- - [@ashfurrow], [@kddeisz] - Attach comments to full hash association nodes, not just the value.
911
+ - yuki24, kddeisz - Force `do` blocks that we know have to be `do` blocks to break.
912
+ - kmcq, kddeisz - Handle `command` and `command_call` nodes `do` blocks by forcing them to break.
913
+ - ashfurrow, kddeisz - Attach comments to full hash association nodes, not just the value.
900
914
 
901
915
  ## [0.5.0] - 2019-02-13
902
916
 
903
917
  ### Added
904
918
 
905
- - [@kddeisz] - Automatically convert arrays of all string literals to %w arrays.
906
- - [@kddeisz] - Automatically convert arrays of all symbol literals to %i arrays.
919
+ - kddeisz - Automatically convert arrays of all string literals to %w arrays.
920
+ - kddeisz - Automatically convert arrays of all symbol literals to %i arrays.
907
921
 
908
922
  ### Changed
909
923
 
910
- - [@kddeisz] - Move the `args_add` and `args_new` handling into the parser.
911
- - [@uri], [@kddeisz] - Change `command_call` nodes to properly indent when broken and to not add a trailing comma.
912
- - [@kddeisz] - Rename the `trailingComma` option to `addTrailingCommas` to not conflict with the JS option.
924
+ - kddeisz - Move the `args_add` and `args_new` handling into the parser.
925
+ - uri, kddeisz - Change `command_call` nodes to properly indent when broken and to not add a trailing comma.
926
+ - kddeisz - Rename the `trailingComma` option to `addTrailingCommas` to not conflict with the JS option.
913
927
 
914
928
  ## [0.4.1] - 2019-02-12
915
929
 
916
930
  ### Changed
917
931
 
918
- - [@kddeisz] - Provide the `makeList` utility for the nodes that are lists from within ripper.
919
- - [@awinograd], [@kddeisz] - Again, this time for real, properly escape strings.
920
- - [@kddeisz] - Fix up trailing commas on command calls.
932
+ - kddeisz - Provide the `makeList` utility for the nodes that are lists from within ripper.
933
+ - awinograd, kddeisz - Again, this time for real, properly escape strings.
934
+ - kddeisz - Fix up trailing commas on command calls.
921
935
 
922
936
  ## [0.4.0] - 2019-02-12
923
937
 
924
938
  ### Added
925
939
 
926
- - [@Overload119], [@kddeisz] - Support the `trailingComma` configuration option (defaults to `false`).
940
+ - Overload119, kddeisz - Support the `trailingComma` configuration option (defaults to `false`).
927
941
 
928
942
  ### Changed
929
943
 
930
- - [@NoahTheDuke], [@kddeisz] - Pass the code to be formatted over `stdin`.
944
+ - NoahTheDuke, kddeisz - Pass the code to be formatted over `stdin`.
931
945
 
932
946
  ## [0.3.7] - 2019-02-11
933
947
 
934
948
  ### Changed
935
949
 
936
- - [@kddeisz] - Split up statements even if they started on the same line with `;`s unless they are within an embedded expression.
937
- - [@kddeisz] - Properly handle escaped quotes within strings.
950
+ - kddeisz - Split up statements even if they started on the same line with `;`s unless they are within an embedded expression.
951
+ - kddeisz - Properly handle escaped quotes within strings.
938
952
 
939
953
  ## [0.3.6] - 2019-02-10
940
954
 
941
955
  ### Changed
942
956
 
943
- - [@AlanFoster], [@kddeisz] - Support the `not` operator properly.
944
- - [@AlanFoster], [@kddeisz] - Handle comments properly inside `if`, `unless`, and `when` nodes.
957
+ - AlanFoster, kddeisz - Support the `not` operator properly.
958
+ - AlanFoster, kddeisz - Handle comments properly inside `if`, `unless`, and `when` nodes.
945
959
 
946
960
  ## [0.3.5] - 2019-02-09
947
961
 
948
962
  ### Changed
949
963
 
950
- - [@kddeisz] - Handle lonely operators in Ruby `2.5`.
964
+ - kddeisz - Handle lonely operators in Ruby `2.5`.
951
965
 
952
966
  ## [0.3.4] - 2019-02-09
953
967
 
954
968
  ### Changed
955
969
 
956
- - [@kddeisz] - Comments are now properly attached inside `defs` nodes.
957
- - [@kddeisz] - Support multiple inline comments on nodes.
958
- - [@kddeisz] - Support inline comments from within the `EXPR_END|EXPR_LABEL` lexer state.
959
- - [@cbothner] - Stop transforming multistatement blocks with `to_proc`.
960
- - [@kddeisz] - `do` blocks necessarily need to break their parent nodes.
961
- - [@eins78], [@kddeisz] - Handle `next` node edge case with `args_add` as the body.
970
+ - kddeisz - Comments are now properly attached inside `defs` nodes.
971
+ - kddeisz - Support multiple inline comments on nodes.
972
+ - kddeisz - Support inline comments from within the `EXPR_END|EXPR_LABEL` lexer state.
973
+ - cbothner - Stop transforming multistatement blocks with `to_proc`.
974
+ - kddeisz - `do` blocks necessarily need to break their parent nodes.
975
+ - eins78, kddeisz - Handle `next` node edge case with `args_add` as the body.
962
976
 
963
977
  ## [0.3.3] - 2019-02-09
964
978
 
965
979
  ### Changed
966
980
 
967
- - [@bugthing], [@kddeisz] - Command nodes within conditionals now break parents to disallow them from being turned into ternary expressions.
968
- - [@awinograd], [@kddeisz] - Properly escape double quotes when using `preferSingleQuotes: false`.
981
+ - bugthing, kddeisz - Command nodes within conditionals now break parents to disallow them from being turned into ternary expressions.
982
+ - awinograd, kddeisz - Properly escape double quotes when using `preferSingleQuotes: false`.
969
983
 
970
984
  ## [0.3.2] - 2019-02-09
971
985
 
972
986
  ### Changed
973
987
 
974
- - [@kddeisz] - Don't define duplicated methods in the parser.
975
- - [@kddeisz] - Let prettier know about `.rb` and `.rake` files so you don't have to specify the parser when running.
976
- - [@kddeisz] - Renamed the package to @prettier/plugin-ruby.
988
+ - kddeisz - Don't define duplicated methods in the parser.
989
+ - kddeisz - Let prettier know about `.rb` and `.rake` files so you don't have to specify the parser when running.
990
+ - kddeisz - Renamed the package to @prettier/plugin-ruby.
977
991
 
978
992
  ## [0.3.1] - 2019-02-07
979
993
 
980
994
  ### Changed
981
995
 
982
- - [@kddeisz] - Automatically add parens to method declarations.
983
- - [@kddeisz] - Handle comments on bare hash assocs.
984
- - [@kddeisz] - Handle `method_add_block` nodes where the statements may be nested one more level.
985
- - [@kddeisz] - Handle heredocs nested no matter how many levels deep.
996
+ - kddeisz - Automatically add parens to method declarations.
997
+ - kddeisz - Handle comments on bare hash assocs.
998
+ - kddeisz - Handle `method_add_block` nodes where the statements may be nested one more level.
999
+ - kddeisz - Handle heredocs nested no matter how many levels deep.
986
1000
 
987
1001
  ## [0.3.0] - 2019-02-07
988
1002
 
989
1003
  ### Added
990
1004
 
991
- - [@kddeisz] - Support squiggly heredocs.
992
- - [@kddeisz] - Support straight heredocs.
1005
+ - kddeisz - Support squiggly heredocs.
1006
+ - kddeisz - Support straight heredocs.
993
1007
 
994
1008
  ### Changed
995
1009
 
996
- - [@kddeisz] - Ignore current indentation when creating embdocs so that `=begin` is always at the beginning of the line.
997
- - [@kddeisz] - Move `regexp_add` and `regexp_new` handling into the parser.
998
- - [@kddeisz] - Move `xstring_add` and `xstring_new` handling into the parser.
999
- - [@kddeisz] - Move `string_add` and `string_content` handling into the parser.
1000
- - [@kddeisz] - Move `mrhs_add` and `mrhs_new` handling into the parser.
1001
- - [@kddeisz] - Move `mlhs_add` and `mlhs_new` handling into the parser.
1010
+ - kddeisz - Ignore current indentation when creating embdocs so that `=begin` is always at the beginning of the line.
1011
+ - kddeisz - Move `regexp_add` and `regexp_new` handling into the parser.
1012
+ - kddeisz - Move `xstring_add` and `xstring_new` handling into the parser.
1013
+ - kddeisz - Move `string_add` and `string_content` handling into the parser.
1014
+ - kddeisz - Move `mrhs_add` and `mrhs_new` handling into the parser.
1015
+ - kddeisz - Move `mlhs_add` and `mlhs_new` handling into the parser.
1002
1016
 
1003
1017
  ## [0.2.1] - 2019-02-06
1004
1018
 
1005
1019
  ### Changed
1006
1020
 
1007
- - [@kddeisz] - Handle brace blocks on commands properly.
1008
- - [@kddeisz] - Break parent and return `do` blocks when called from a `command` node.
1009
- - [@kddeisz] - Handle edge cases with `if` statements where there is no body of the if (so it can't be converted to a ternary).
1021
+ - kddeisz - Handle brace blocks on commands properly.
1022
+ - kddeisz - Break parent and return `do` blocks when called from a `command` node.
1023
+ - kddeisz - Handle edge cases with `if` statements where there is no body of the if (so it can't be converted to a ternary).
1010
1024
 
1011
1025
  ## [0.2.0] - 2019-02-06
1012
1026
 
1013
1027
  ### Added
1014
1028
 
1015
- - [@kddeisz] - Handle `methref` nodes from Ruby `2.7`.
1016
- - [@kddeisz] - Allow `module` nodes to shorten using `;` when the block is empty.
1029
+ - kddeisz - Handle `methref` nodes from Ruby `2.7`.
1030
+ - kddeisz - Allow `module` nodes to shorten using `;` when the block is empty.
1017
1031
 
1018
1032
  ### Changed
1019
1033
 
1020
- - [@kddeisz] - Handle splat within an array, as in `[1, 2, *foo]`.
1021
- - [@kddeisz] - Disallow comments from being attached to intermediary regex nodes.
1022
- - [@kddeisz] - Fix `to_proc` transforms to reference the method called as opposed to the parameter name.
1023
- - [@kddeisz] - Change statement lists to be generated within the parser instead of the printer, thereby allowing finer control over comments.
1024
- - [@kddeisz] - Completely revamp comment parsing by switching off the internal lexer state from `ripper`. This should drastically increase accuracy of comment parsing in general, and set us up for success in the future.
1025
- - [@kddeisz] - Allow comments to be attached to `CHAR` nodes.
1026
- - [@kddeisz] - Disallow comments from being attached to `args_new` nodes.
1027
- - [@kddeisz] - Track start and end lines so we can better insert block comments.
1028
- - [@kddeisz] - Handle intermediary array nodes in the parse for better comment handling.
1034
+ - kddeisz - Handle splat within an array, as in `[1, 2, *foo]`.
1035
+ - kddeisz - Disallow comments from being attached to intermediary regex nodes.
1036
+ - kddeisz - Fix `to_proc` transforms to reference the method called as opposed to the parameter name.
1037
+ - kddeisz - Change statement lists to be generated within the parser instead of the printer, thereby allowing finer control over comments.
1038
+ - kddeisz - Completely revamp comment parsing by switching off the internal lexer state from `ripper`. This should drastically increase accuracy of comment parsing in general, and set us up for success in the future.
1039
+ - kddeisz - Allow comments to be attached to `CHAR` nodes.
1040
+ - kddeisz - Disallow comments from being attached to `args_new` nodes.
1041
+ - kddeisz - Track start and end lines so we can better insert block comments.
1042
+ - kddeisz - Handle intermediary array nodes in the parse for better comment handling.
1029
1043
 
1030
1044
  ## [0.1.2] - 2019-02-05
1031
1045
 
1032
1046
  ### Changed
1033
1047
 
1034
- - [@kddeisz] - Handle guard clauses that return with no parens.
1048
+ - kddeisz - Handle guard clauses that return with no parens.
1035
1049
 
1036
1050
  ## [0.1.1] - 2019-02-05
1037
1051
 
1038
1052
  ### Changed
1039
1053
 
1040
- - [@kddeisz] - Handle class method calls with the `::` operator.
1041
- - [@kddeisz] - Handle strings with apostrophes when using `preferSingleQuote`.
1042
- - [@kddeisz] - Have travis run multiple ruby versions.
1043
- - [@kddeisz] - Explicitly fail if ruby version is < `2.5`.
1044
- - [@kddeisz] - Disallow comments from being attached to intermediary string nodes.
1054
+ - kddeisz - Handle class method calls with the `::` operator.
1055
+ - kddeisz - Handle strings with apostrophes when using `preferSingleQuote`.
1056
+ - kddeisz - Have travis run multiple ruby versions.
1057
+ - kddeisz - Explicitly fail if ruby version is < `2.5`.
1058
+ - kddeisz - Disallow comments from being attached to intermediary string nodes.
1045
1059
 
1046
1060
  ## [0.1.0] - 2019-02-04
1047
1061
 
@@ -1110,76 +1124,3 @@ would previously result in `array[]`, but now prints properly.
1110
1124
  [0.1.2]: https://github.com/prettier/plugin-ruby/compare/v0.1.1...v0.1.2
1111
1125
  [0.1.1]: https://github.com/prettier/plugin-ruby/compare/v0.1.0...v0.1.1
1112
1126
  [0.1.0]: https://github.com/prettier/plugin-ruby/compare/61f675...v0.1.0
1113
- [@aaronjensen]: https://github.com/aaronjensen
1114
- [@acrewdson]: https://github.com/acrewdson
1115
- [@alanfoster]: https://github.com/AlanFoster
1116
- [@alse]: https://github.com/alse
1117
- [@andrewraycode]: https://github.com/AndrewRayCode
1118
- [@andyw8]: https://github.com/andyw8
1119
- [@ashfurrow]: https://github.com/ashfurrow
1120
- [@awinograd]: https://github.com/awinograd
1121
- [@blampe]: https://github.com/blampe
1122
- [@bugthing]: https://github.com/bugthing
1123
- [@cbothner]: https://github.com/cbothner
1124
- [@christoomey]: https://github.com/christoomey
1125
- [@clarkdave]: https://github.com/clarkdave
1126
- [@cldevs]: https://github.com/cldevs
1127
- [@codingitwrong]: https://github.com/CodingItWrong
1128
- [@coiti]: https://github.com/coiti
1129
- [@cvoege]: https://github.com/cvoege
1130
- [@deecewan]: https://github.com/deecewan
1131
- [@dudeofawesome]: https://github.com/dudeofawesome
1132
- [@eins78]: https://github.com/eins78
1133
- [@flyerhzm]: https://github.com/flyerhzm
1134
- [@fruetel]: https://github.com/Fruetel
1135
- [@ftes]: https://github.com/ftes
1136
- [@gin0606]: https://github.com/gin0606
1137
- [@github0013]: https://github.com/github0013
1138
- [@glejeune]: https://github.com/glejeune
1139
- [@hafley66]: https://github.com/hafley66
1140
- [@ianks]: https://github.com/ianks
1141
- [@jakeprime]: https://github.com/jakeprime
1142
- [@jamescostian]: https://github.com/jamescostian
1143
- [@janklimo]: https://github.com/janklimo
1144
- [@jbielick]: https://github.com/jbielick
1145
- [@jeffcarbs]: https://github.com/jeffcarbs
1146
- [@joeyjoejoejr]: https://github.com/joeyjoejoejr
1147
- [@johannesluedke]: https://github.com/johannesluedke
1148
- [@johncsnyder]: https://github.com/johncsnyder
1149
- [@johnschoeman]: https://github.com/johnschoeman
1150
- [@joshuakgoldberg]: https://github.com/JoshuaKGoldberg
1151
- [@jpickwell]: https://github.com/jpickwell
1152
- [@jrdioko]: https://github.com/jrdioko
1153
- [@jviney]: https://github.com/jviney
1154
- [@karanmandal]: https://github.com/karanmandal
1155
- [@kddeisz]: https://github.com/kddeisz
1156
- [@kmcq]: https://github.com/kmcq
1157
- [@krachtstefan]: https://github.com/krachtstefan
1158
- [@localhostdotdev]: https://github.com/localhostdotdev
1159
- [@lukyth]: https://github.com/lukyth
1160
- [@marcmaniez]: https://github.com/MarcManiez
1161
- [@masqita]: https://github.com/masqita
1162
- [@matt-wratt]: https://github.com/matt-wratt
1163
- [@meleyal]: https://github.com/meleyal
1164
- [@mmainz]: https://github.com/mmainz
1165
- [@mmcnl]: https://github.com/mmcnl
1166
- [@nathan-beam]: https://github.com/nathan-beam
1167
- [@noahtheduke]: https://github.com/NoahTheDuke
1168
- [@nruth]: https://github.com/nruth
1169
- [@overload119]: https://github.com/Overload119
1170
- [@petevk]: https://github.com/petevk
1171
- [@pje]: https://github.com/pje
1172
- [@rafbm]: https://github.com/rafbm
1173
- [@rindek]: https://github.com/rindek
1174
- [@rosskinsella]: https://github.com/RossKinsella
1175
- [@rsullivan00]: https://github.com/Rsullivan00
1176
- [@ryan-hunter-pc]: https://github.com/ryan-hunter-pc
1177
- [@shaydavidson]: https://github.com/ShayDavidson
1178
- [@steobrien]: https://github.com/steobrien
1179
- [@sviccari]: https://github.com/SViccari
1180
- [@tobyndockerill]: https://github.com/tobyndockerill
1181
- [@uri]: https://github.com/uri
1182
- [@valscion]: https://github.com/valscion
1183
- [@xipgroc]: https://github.com/xipgroc
1184
- [@ykpythemind]: https://github.com/ykpythemind
1185
- [@yuki24]: https://github.com/yuki24