prism_ext 0.3.7 → 0.3.8

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: 7df9da0b75b3d011611ad94a92d532045d97df11a5d5fd00e6e753b4e35a4a5b
4
- data.tar.gz: e9c72ce6abea12442381bdec345170c0ea7fea3796b547ae47bd6cae193f3e3c
3
+ metadata.gz: 672454712c3d3805e5ea2fce9bef997fc985bb722941d9fd03f3400476fbbca6
4
+ data.tar.gz: db0742913e99ac487e12b5a7dbf5eebd3f910d42358274fba6ddb6d2c691358c
5
5
  SHA512:
6
- metadata.gz: ab250d2c6f24ab15d30f56e28252ed3263c24f47f4cca9f15ba1759fda589053e5e21d6c61f88c6d484d9bb7c1703b1e25808b1cdf17b5222455dbc406183641
7
- data.tar.gz: 9aa4fd52106103ef276308793f1980fa2bc7426443b0cec77ad378d64411c610c7c73ae3e06ed365b73653df9a5a024b4f30f582eb0c0f8c5c7f2b2947b0d1e5
6
+ metadata.gz: 2bc0eaf084bb841984bff4b33518be0786a82298a67d16ad7743c915147905b48e95d1c2c384dea6f0239578effbde749892318a51837d8f9b22c4b5f41f0c8e
7
+ data.tar.gz: 693e770dc3a71a58a84db4c1f5e3f2f696ffd5f8cea5d19dee2009333d2374ab59e603d7d076816ba352600b87919d1a271d305dc7badc6cd3d6dee616cd5441
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.3.8 (2024-07-06)
4
+
5
+ * Fix `StringNode#opening` is nil
6
+
3
7
  ## 0.3.7 (2024-07-06)
4
8
 
5
9
  * Fix call node with block_argument_node `to_source`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prism_ext (0.3.7)
4
+ prism_ext (0.3.8)
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.7"
4
+ VERSION = "0.3.8"
5
5
  end
data/lib/prism_ext.rb CHANGED
@@ -86,7 +86,7 @@ module Prism
86
86
  def to_source
87
87
  case self
88
88
  when InterpolatedStringNode, StringNode
89
- if opening.start_with?('<<')
89
+ if opening&.start_with?('<<')
90
90
  range = opening_loc.start_character_offset...closing_loc.end_character_offset
91
91
  end
92
92
  when CallNode
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.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang