syntax_tree 6.1.0 → 6.1.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/.github/workflows/gh-pages.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/syntax_tree/node.rb +3 -3
- data/lib/syntax_tree/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: 31a164da5fc7e3de4ae0d009993bd0d7b81ca0fd6d99dffe97e932321e122beb
|
|
4
|
+
data.tar.gz: d345c0e73f3286e5e8ade42d6c39646b2537a7b184fb14d4af4fdb031c8a9f8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe70bcbd90253660d903278f23858a19fc9c644cb3f8b5fc1d8772be552f9cd594565445a3970dcec7374a27c3d087e3c772397d1ed9fb8bb86d616fa481ee06
|
|
7
|
+
data.tar.gz: 2d676538addd43745630e1721a4f059e3342d46902fbb25702b6daa16adae80c3f376444ddd67dd079569feeab8f0322ec9acef79a024789348372575263fbaf
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [6.1.1] - 2023-03-21
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Fixed a bug where the call chain formatter was incorrectly looking at call messages.
|
|
14
|
+
|
|
9
15
|
## [6.1.0] - 2023-03-20
|
|
10
16
|
|
|
11
17
|
### Added
|
data/Gemfile.lock
CHANGED
data/lib/syntax_tree/node.rb
CHANGED
|
@@ -2824,7 +2824,7 @@ module SyntaxTree
|
|
|
2824
2824
|
if (receiver = child.receiver).is_a?(CallNode) &&
|
|
2825
2825
|
(receiver.message != :call) &&
|
|
2826
2826
|
(receiver.message.value == "where") &&
|
|
2827
|
-
(message.value == "not")
|
|
2827
|
+
(child.message != :call && child.message.value == "not")
|
|
2828
2828
|
# This is very specialized behavior wherein we group
|
|
2829
2829
|
# .where.not calls together because it looks better. For more
|
|
2830
2830
|
# information, see
|
|
@@ -2848,8 +2848,8 @@ module SyntaxTree
|
|
|
2848
2848
|
# If the parent call node has a comment on the message then we need
|
|
2849
2849
|
# to print the operator trailing in order to keep it working.
|
|
2850
2850
|
last_child = children.last
|
|
2851
|
-
if last_child.is_a?(CallNode) && last_child.message
|
|
2852
|
-
last_child.operator
|
|
2851
|
+
if last_child.is_a?(CallNode) && last_child.message != :call &&
|
|
2852
|
+
last_child.message.comments.any? && last_child.operator
|
|
2853
2853
|
q.format(CallOperatorFormatter.new(last_child.operator))
|
|
2854
2854
|
skip_operator = true
|
|
2855
2855
|
else
|
data/lib/syntax_tree/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: syntax_tree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.1.
|
|
4
|
+
version: 6.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Newton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: prettier_print
|