prism_ext 0.3.5 → 0.3.6

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: 22c5cafc0d1b394671c5c138db316fc00280db3410c4da297cfb9ba434ba0de9
4
- data.tar.gz: cf541f704ccebad9493680f2179fc605f198d208a91b4ffdc31b55e8e5ebc0e1
3
+ metadata.gz: 31a1629de1d522e1386ac118d889cc603de8ab381b53cd80d4b0b867d7a3eaf3
4
+ data.tar.gz: f15b3859b932611dc9d68e7a9d8afd130bfa10fe482632c5b5952d90b2aba05b
5
5
  SHA512:
6
- metadata.gz: 491695add007e46db00ab987e46591a717580082953e05c52a3189168416f854451ddaa50d82ff3da9a9932b9632ed20a032fe480a08053d96c4b4b1de4d383d
7
- data.tar.gz: b30c6172df61bf4118ae44537c5c341959b42ed8008681c048e7a86af81afe43b011c9d73a130f177ff82f81941c1c2b1ba78e6de5021d56ad0af8d196f593cf
6
+ metadata.gz: f328951405aee3ba268388b3154a163bcd565c2739a47cba45ad91bfa07b0774dd080b1b36a9db5bbf50f2748342e8d87fb7b4016020ba647379b2ae7c4b6a54
7
+ data.tar.gz: b49c81171e69e0891615d3df6d61f3ebb9cad37d9702e6c7a6a1d9b4731377deadfacaae925191418460a228ebfcf7849debd6db9f6d530876f85aa442edc247
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.3.6 (2024-07-03)
4
+
5
+ * Check `arguments` is an `ArgumetnsNode`
6
+
3
7
  ## 0.3.5 (2024-07-03)
4
8
 
5
9
  * Fix call node with heredoc argument `to_source`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prism_ext (0.3.5)
4
+ prism_ext (0.3.6)
5
5
  prism
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrismExt
4
- VERSION = "0.3.5"
4
+ VERSION = "0.3.6"
5
5
  end
data/lib/prism_ext.rb CHANGED
@@ -87,7 +87,7 @@ module Prism
87
87
  # node.slice doesn't work for InterpolatedStringNode
88
88
  if interpolated_string?
89
89
  range = opening_loc.start_offset...closing_loc.end_offset
90
- elsif type == :call_node && arguments && arguments.arguments.any?(&:interpolated_string?)
90
+ elsif is_a?(CallNode) && arguments.is_a?(ArgumentsNode) && arguments.arguments.any?(&:interpolated_string?)
91
91
  last_interpolated_string_argument = arguments.arguments.select(&:interpolated_string?).last
92
92
  range = location.start_offset...last_interpolated_string_argument.closing_loc.end_offset
93
93
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prism_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang