decode 0.23.1 → 0.23.2

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: 0ae94375f9288ad2aa541ed744d7fb51b86da0bb83d77a019e17c6c31ac9f2cf
4
- data.tar.gz: 74e3bfe6b181464eb8406ba684aee902b5519ae48d960f9e2bb6a79fffe1917d
3
+ metadata.gz: 41e2b61aff62ef79693166e78bd62423da119685e8659094c55414bd2a03d20d
4
+ data.tar.gz: 1b3397ebddab6614c3c4758e617dfe023a755e6c0b521e9c4e0b844299e45fa9
5
5
  SHA512:
6
- metadata.gz: '089969a2909633681778781ef8047e262cc4f4405f04a2adb72dbeb73f818fa8a6a4f177573fa4077eee1a9892b4995dc24cbff2dc46aacd0343422af5a16df8'
7
- data.tar.gz: 8d9133f1d02b98af77c6bbd3fbf26c93d01c9be4614eedefc6e4c731aa077103dda30a484a6ac0ddbbbc45b3fce76c3c5d49559a3563b09dfba29723fc38ace5
6
+ metadata.gz: 495739ab3daed57e82bc96273ab2c93456120300e2db3377d378373c3e251ba2417e5a14cc25c943e62675783fb69d0ece41eae149034c1feaea2eecf205c675
7
+ data.tar.gz: 0c56ee5638dcd61572c2fd45f52fd5194e6e2bb7c5649552a093f99e8f5179cd9164090518288c97b57509dfc03b7ba188471dba67363f762c1c8ed85b6f132f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -65,8 +65,8 @@ module Decode
65
65
  # Get the location of this definition.
66
66
  # @returns [Location | Nil] The location object if source is available.
67
67
  def location
68
- if @source
69
- Location.new(@source.path, @node.location.start_line)
68
+ if @source and location = @node&.location
69
+ Location.new(@source.path, location.start_line)
70
70
  end
71
71
  end
72
72
  end
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  module Decode
7
- VERSION = "0.23.1"
7
+ VERSION = "0.23.2"
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file