rufo 0.0.21 → 0.0.22

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: c8ea364388703323772b0c25eafeb7bd9c5de665
4
- data.tar.gz: b502a49f92eededb4eaba9cea8fd8acd16b6d5a5
3
+ metadata.gz: f4bd80b45163ec985e39e5755663d53b0931911e
4
+ data.tar.gz: 97891fb7b41a5ecfad21e2de5a3b2e173225f23e
5
5
  SHA512:
6
- metadata.gz: 1c9f13c1604467276a1e59fb05f8b1de3cb80986aa94df270c5cd40b994b1aa33a78ac045801ba7788f5edcded56f55fad201bd26d2000f983c9a6cdf036d198
7
- data.tar.gz: 7764a8b0d8502712a0d484bf43fbf1f4c7413bd8749093c6c789a9f7e04ddea4cf4153bd26f9ff8e556e4100354ed498d72de228ffa2fcfb6c928d415defd4a2
6
+ metadata.gz: aa93f77d18292af45a8bc6778c15a61aca17abaf90e512e5226a683f2c91d6d06f02073f16eabf95f10b073b649685b02358ae448c76c5b63a899701ee12ee2f
7
+ data.tar.gz: 5ca62d116346c59054241b98f1f944b4fb6e9a7a252d10b19d8960894adb8db1d940f98d3a2d5889dac5c9760a0f4e217a6d00537547706ba7f5ab1bb74b1cb5
@@ -278,10 +278,12 @@ class Rufo::Formatter
278
278
  when :args_add_star
279
279
  visit_args_add_star(node)
280
280
  when :bare_assoc_hash
281
- # **x, **y, ...
282
- #
283
281
  # [:bare_assoc_hash, exps]
284
- visit_comma_separated_list node[1]
282
+
283
+ # Align hash elements to the first key
284
+ indent(@column) do
285
+ visit_comma_separated_list node[1]
286
+ end
285
287
  when :method_add_arg
286
288
  visit_call_without_receiver(node)
287
289
  when :method_add_block
data/lib/rufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rufo
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ary Borenszweig