Skip to content

Commit 1ea3b6a

Browse files
committed
Bump to v2.3.1
1 parent e536c2a commit 1ea3b6a

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
## [2.3.1] - 2022-04-22
10+
11+
### Changed
12+
13+
- `SyntaxTree::If` nodes inside of `SyntaxTree::Command` arguments should include a space before if they are flat.
14+
915
## [2.3.0] - 2022-04-22
1016

1117
### Added

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
syntax_tree (2.3.0)
4+
syntax_tree (2.3.1)
55

66
GEM
77
remote: https://rubygems.org/

lib/syntax_tree/node.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2899,6 +2899,7 @@ def align(q, node, &block)
28992899
q.text(" ")
29002900
yield
29012901
in Args[parts: [IfOp]]
2902+
q.if_flat { q.text(" ") }
29022903
yield
29032904
in Args[parts: [Command => command]]
29042905
align(q, command, &block)

lib/syntax_tree/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SyntaxTree
4-
VERSION = "2.3.0"
4+
VERSION = "2.3.1"
55
end

test/fixtures/ifop.rb

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
else
99
baz
1010
end
11+
%
12+
foo bar ? 1 : 2

0 commit comments

Comments
 (0)