decode 0.23.4 → 0.23.5

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: 6d918d6104a7b51fdf463bc40d3c5108dcfbae329064cb25395a988cb45c6aba
4
- data.tar.gz: 7d303793cff2638b2b6c5a0527ab3cb0cfa3a33a0c4c1340436e03f0d7804602
3
+ metadata.gz: 11a86571ec0cc705f2d0250c768572373ae0717a991a50f57b78cd148a0cd021
4
+ data.tar.gz: aa180f6bb19db4c6f75c372a3eb43a44067ff7b9a964aa332424fc19b2d85273
5
5
  SHA512:
6
- metadata.gz: 4fa8f8c71fb84a01414399a3f214d0870ee220225d2059ddb4416cb00bd7e4425ddf4c81c6c5a02ade8d53d9462f0be1544b4dd514b3b57d9dd3e052225fe269
7
- data.tar.gz: 81174c0ff895f8ade0f80ad31216bcfeb13080173728c186fba4d37843ca45c551438a5401d865d32bef97e8416b5ab4bebaa5983949f43b8e22d56591d139ce
6
+ metadata.gz: 8c78fd76970e57222c42100d8e910eedd71e1eeb3de399d06ef5e4c24e74a1acd2027a67bc9a6178bb93b19917fd2595d513ee1ee8729cfb8f6c0ca0b6458156
7
+ data.tar.gz: afb977b32a85cf2e44e59b437a54cb88b9ef454db994f595bb97ba3ca23ca24415bcdb8bb12a584378c05ec71e35bf1424f15eb7fa8e7b67e8460c00ceea3518
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- f��nu|$>�9mT<6��X��a��VlCS�bҘc��!)�TFJ4��9�I��4TB����61�ae �<��z<߇YE�F��Z�,���1��b�ҽ.���b9
2
- �[����?|��8�gLZs�=�/я&�O��S��
1
+ G�#����o0����g&}������>�������EL���v��-�srESXN��q9���M��,Q���_I9�bʄ>m/�P��?�}�+Z�3�>(��-���DY�� S��hNQ�֯!3v��8������Ɨ)
2
+ �6ȐiY �I*���;P(�q5x��X)������ ��]p8�>��+F'<�@Y+�Nu�u�ta� � o�sާ ��qІ������
@@ -12,7 +12,17 @@ module Decode
12
12
  class Call < Definition
13
13
  # A block can sometimes be a container for other definitions.
14
14
  def container?
15
- @node&.block && @node.block.opening == "do"
15
+ case block = @node&.block
16
+ when nil
17
+ false
18
+ when Prism::BlockArgumentNode
19
+ false
20
+ when Prism::BlockNode
21
+ # Technically, all block nodes are containers, but we prefer to be opinionated about when we consider them containers:
22
+ block.opening == "do"
23
+ else
24
+ false
25
+ end
16
26
  end
17
27
 
18
28
  # The short form of the class.
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2020-2025, by Samuel Williams.
5
5
 
6
6
  module Decode
7
- VERSION = "0.23.4"
7
+ VERSION = "0.23.5"
8
8
  end
data/readme.md CHANGED
@@ -22,6 +22,10 @@ Please see the [project documentation](https://ioquatix.github.io/decode/) for m
22
22
 
23
23
  Please see the [project releases](https://ioquatix.github.io/decode/releases/index) for all releases.
24
24
 
25
+ ### v0.23.5
26
+
27
+ - Fix handling of `&block` arguments in call nodes.
28
+
25
29
  ### v0.23.4
26
30
 
27
31
  - Fix handling of definitions nested within `if`/`unless`/`elsif`/`else` blocks.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.23.5
4
+
5
+ - Fix handling of `&block` arguments in call nodes.
6
+
3
7
  ## v0.23.4
4
8
 
5
9
  - Fix handling of definitions nested within `if`/`unless`/`elsif`/`else` blocks.
data.tar.gz.sig CHANGED
@@ -1,4 +1,2 @@
1
- Pg����^�+�u���<
2
- �&�Z��0�;�*�݀�Zd6u �(X��`P�TX��!�w���j� ��n���Œ�ܰ� njX�Vvׇ�D��� ��P� �\�D�AP�5f����@��S1��_���@��w�s�$A3�!��,����3&M\h9q� ex��-W�+N�=��
3
- |��'����1d�YǡQ�d�{ί�LW}7��A���;*Py9��q�ߣ:=���v#���x.���`Y�7��W�GM����Mi+|uG���2ivf
4
- �?{�Sj�1�lT��T@""�u?��T�u���@�
1
+ ���#���#r�p=!�hOx=�?�&aS�ҿ݁@����G��IP6�s�(TִS�R<���o�>)DȼʚS�l��T�W�0L� ����(��E�Zc�W1D��T�f o����Q��ǐ�>w�#���W������.�N�f�����X��_��y�d��iK�E-��<Ud~��b�"�����a@�D�!�_�!�,Q���s%��Ƃ����k\�y��WL?�h�2�Z�K��Xi��E���T�J
2
+ 4weyr5�𝨹�U?��e�Ưv��^<L�@ �A5p���� ����e���!��Uk��S5w3wv���.���Vxh���j�:�O4MbZ����#;�%;�:��q5�������
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.4
4
+ version: 0.23.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file