syntax_tree 6.1.0 → 6.1.1

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
  SHA256:
3
- metadata.gz: 7515a827509d352259e6cae476930093fe382fcc35c248fba3ab716019e69ca9
4
- data.tar.gz: add2625387abe5616f90d28843f4fcebac5b68222f9a6258cbfb04fbd41b4772
3
+ metadata.gz: 31a164da5fc7e3de4ae0d009993bd0d7b81ca0fd6d99dffe97e932321e122beb
4
+ data.tar.gz: d345c0e73f3286e5e8ade42d6c39646b2537a7b184fb14d4af4fdb031c8a9f8b
5
5
  SHA512:
6
- metadata.gz: ea0a666bd65180facaab89acd7b7bd87d3f5208c69a0fe80b91d1d25d57cdc2c281ac301070da8d73c7d119574a7f7de30c0facb0d7131f895bbc8fa7fe582c5
7
- data.tar.gz: 4c9df489dcb876280a219a8e213a800f0544a0aaa02a303d8fc3ba948e07e195dbfb21da8f8f04825abc4bf61fb9ec92141d5a00cc7b3d53b1d6103d58d10be3
6
+ metadata.gz: fe70bcbd90253660d903278f23858a19fc9c644cb3f8b5fc1d8772be552f9cd594565445a3970dcec7374a27c3d087e3c772397d1ed9fb8bb86d616fa481ee06
7
+ data.tar.gz: 2d676538addd43745630e1721a4f059e3342d46902fbb25702b6daa16adae80c3f376444ddd67dd079569feeab8f0322ec9acef79a024789348372575263fbaf
@@ -51,4 +51,4 @@ jobs:
51
51
  steps:
52
52
  - name: Deploy to GitHub Pages
53
53
  id: deployment
54
- uses: actions/deploy-pages@v1
54
+ uses: actions/deploy-pages@v2
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- syntax_tree (6.1.0)
4
+ syntax_tree (6.1.1)
5
5
  prettier_print (>= 1.2.0)
6
6
 
7
7
  GEM
@@ -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.comments.any? &&
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SyntaxTree
4
- VERSION = "6.1.0"
4
+ VERSION = "6.1.1"
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2023-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prettier_print