rufo 0.0.12 → 0.0.13

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
  SHA1:
3
- metadata.gz: 92a996284c6a41562ebcf92f8e5cad174b3de81b
4
- data.tar.gz: e5de4c074d193e6b5371e50f0cb1bb3f0ca2fd75
3
+ metadata.gz: c0aa53149a53b3f3ff74b0faac96f745fb8de3bc
4
+ data.tar.gz: df17be90c64c3bab54fd6fec7cc4cfa50e29308d
5
5
  SHA512:
6
- metadata.gz: 32ee25d527edff28604584a7712259c9ccaa084ea7f28224258ecf6afc040a0ae1193e5fbe60cb83f2788f44e5ee700165e97c4d3d206514f7b0c27d63fdec71
7
- data.tar.gz: '08efe97b12535850d9647d2d8599d27abea373a02c8c0fcc5a9653c814feae041e92ee50226fb2012941dc24da14affee64762298af6c6d2e44a1debbf171925'
6
+ metadata.gz: 01d29475450119316f571f6812d3137a8cd32d1e4dfc3b9ce66fdc808de906c65a6667fd997d6485c6ba067bf192dd5be527589a8c7b12751e0896b999b1da6c
7
+ data.tar.gz: 8d23542daf66eb90d1f2e0b6b05d150654a9e6c636c3993aa9c48bac995c91e7bdff1f2542d2dc98b15ce4c22f32d0814d12fee80156a06889cb0b17432f57bb
@@ -150,6 +150,8 @@ class Rufo::Formatter
150
150
  when :string_embexpr
151
151
  # String interpolation piece ( #{exp} )
152
152
  visit_string_interpolation node
153
+ when :string_dvar
154
+ visit_string_dvar(node)
153
155
  when :symbol_literal
154
156
  visit_symbol_literal(node)
155
157
  when :symbol
@@ -483,6 +485,12 @@ class Rufo::Formatter
483
485
  consume_token :on_embexpr_end
484
486
  end
485
487
 
488
+ def visit_string_dvar(node)
489
+ # [:string_dvar, [:var_ref, [:@ivar, "@foo", [1, 2]]]]
490
+ consume_token :on_embvar
491
+ visit node[1]
492
+ end
493
+
486
494
  def visit_symbol_literal(node)
487
495
  # :foo
488
496
  #
@@ -1,3 +1,3 @@
1
1
  module Rufo
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ary Borenszweig