rufo 0.15.0 → 0.15.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/rufo/formatter.rb +8 -5
- data/lib/rufo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd22e372dba08b9779d73ceafaae522433e848e1283ef487baf5e366aaa58986
|
|
4
|
+
data.tar.gz: 8729947df2863f8f36ad539879750dd53c9f33c0c2885c2985984e0d07862ddc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45f6c8259e2c20db8cd2e53778d0d8b7d3cfd57686eff05c650b61073338c9d5e89f3ed2e29a35f2e867a1b0a4ae50a7e205ce611b863b215751ffaf2522890a
|
|
7
|
+
data.tar.gz: 7d1d00b02060d5b4dcf01e91c1ee41cb955917b1bac5fd149f3e1d217e95aeeeb3e25920c321bed22b5635c2168d1d962fa2b0149efa68138680d45229121632
|
data/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
12
12
|
|
|
13
13
|
### Added
|
|
14
14
|
|
|
15
|
+
## [0.15.1] - 2023-02-08
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix Bug: raises error while formatting anonymous block argument forwarding
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
15
25
|
## [0.15.0] - 2023-02-08
|
|
16
26
|
|
|
17
27
|
### Fixed
|
data/lib/rufo/formatter.rb
CHANGED
|
@@ -1485,7 +1485,11 @@ class Rufo::Formatter
|
|
|
1485
1485
|
visit_comma_separated_list args
|
|
1486
1486
|
end
|
|
1487
1487
|
|
|
1488
|
-
|
|
1488
|
+
# block_arg will be...
|
|
1489
|
+
# - named => node
|
|
1490
|
+
# - anonymous => nil
|
|
1491
|
+
# - no arg => false
|
|
1492
|
+
if block_arg || block_arg.nil?
|
|
1489
1493
|
skip_space_or_newline
|
|
1490
1494
|
|
|
1491
1495
|
if comma?
|
|
@@ -1496,10 +1500,9 @@ class Rufo::Formatter
|
|
|
1496
1500
|
|
|
1497
1501
|
consume_op "&"
|
|
1498
1502
|
skip_space_or_newline
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
skip_space_or_newline
|
|
1503
|
+
if block_arg
|
|
1504
|
+
visit block_arg
|
|
1505
|
+
end
|
|
1503
1506
|
end
|
|
1504
1507
|
end
|
|
1505
1508
|
|
data/lib/rufo/version.rb
CHANGED
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.15.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ary Borenszweig
|
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
210
210
|
- !ruby/object:Gem::Version
|
|
211
211
|
version: '0'
|
|
212
212
|
requirements: []
|
|
213
|
-
rubygems_version: 3.
|
|
213
|
+
rubygems_version: 3.3.7
|
|
214
214
|
signing_key:
|
|
215
215
|
specification_version: 4
|
|
216
216
|
summary: Ruby code formatter
|