rufo 0.10.0 → 0.11.0

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: 19befa300eb72a2de7c9f70a5df89a9d81520ae565ec28260eb78ccb8c6259a4
4
- data.tar.gz: efa9c54a96d77df14c1ecdd9fd301942c73be0ec80ad1312b7a419007b7ad282
3
+ metadata.gz: 8880f0f88e4def3cc19a1fa8a54b7fe7f5393e6cdb93f47a19c1565a7564ed2f
4
+ data.tar.gz: 74f522f20caa7d57bc9607d3dc6100b1a48758cc72a18dcaf85c0ab5e1c66e9b
5
5
  SHA512:
6
- metadata.gz: c1c699f17a408b12d9e134869d9e9857c048a3d64c35daf06f3ab4ccd4880371c6940ca382aa90f92e91c86dc534e466cbc4ca7652e15f720c2d8ad13dcd985a
7
- data.tar.gz: b07894fcad0897b000cf84aa6e664a276fb2bcd7bf1e228ed7b3f1d3c43a3352cd9c12f03926236e15b932fe099f82c32af20aa04f0246c066d44ad9e8b67224
6
+ metadata.gz: c6de4f9c31d85b4bbcc39c8873c7fc677da69b07c1600620811253d44fa8e67e51a1ecdbd7156c81523f6b2285bccb038e5dbf99a3b09104a48ab253edf43da5
7
+ data.tar.gz: a7d27577fcedab3672924b89aeb15ddd117ed31802fda6e8b987c0bcaa8449adce45f573ce2c74c381ef39fba7c97d0d9efefc8de5f321d87d9cbeccdd245672
@@ -12,6 +12,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
12
12
 
13
13
  ### Added
14
14
 
15
+ ## [0.11.0] - 2020-02-09
16
+
17
+ ### Fixed
18
+ - Documentation for `trailing_commas`
19
+ - Handle empty string symbol for key in hash.
20
+
21
+ ### Added
22
+ - Support for escaped ERB template tags. For example `<%%%%= format :name %>`.
23
+
15
24
  ## [0.10.0] - 2020-01-16
16
25
 
17
26
  ### Fixed
@@ -116,8 +116,8 @@ With `:dynamic` it won't modify it.
116
116
 
117
117
  Use trailing commas in array and hash literals, and keyword arguments?
118
118
 
119
- - `:always`: (default) always put a trailing comma
120
- - `:never`: never put a trailing comma
119
+ - `true`: (default) always put a trailing comma
120
+ - `false`: never put a trailing comma
121
121
 
122
122
  Given this code:
123
123
 
@@ -153,7 +153,7 @@ foo(
153
153
  )
154
154
  ```
155
155
 
156
- With `:always`, the formatter will change it to:
156
+ With `true`, the formatter will change it to:
157
157
 
158
158
  ```ruby
159
159
  [
@@ -187,7 +187,7 @@ foo(
187
187
  )
188
188
  ```
189
189
 
190
- With `:never`, the formatter will change it to:
190
+ With `false`, the formatter will change it to:
191
191
 
192
192
  ```ruby
193
193
  [
@@ -8,7 +8,7 @@ class CustomScanner < ERB::Compiler::TrimScanner
8
8
  end
9
9
 
10
10
  def stags
11
- ["<%=="] + super
11
+ ["<%==", "<%+={0,2}"] + super
12
12
  end
13
13
 
14
14
  def etags
@@ -3860,6 +3860,7 @@ class Rufo::Formatter
3860
3860
  end
3861
3861
 
3862
3862
  def node_line(node, beginning: true)
3863
+ return if node.nil?
3863
3864
  # get line of node, it is only used in visit_hash right now,
3864
3865
  # so handling the following node types is enough.
3865
3866
  case node.first
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rufo
4
- VERSION = "0.10.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ary Borenszweig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-16 00:00:00.000000000 Z
11
+ date: 2020-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.1.2
169
+ rubygems_version: 3.0.3
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Ruby code formatter