unparser 0.6.7 → 0.6.8

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: 43c55e0072230fba02c24266555e1599559396739677e4371b6c9bca4b2a29b1
4
- data.tar.gz: 4743b675c63ed3cf84ee3c784b70fd5078f8ed4e022e02bde27473a7bf44dbbe
3
+ metadata.gz: b8eb3401b1952a2440c918c3883832107ff77f670474d4db4ea0440e67dbe604
4
+ data.tar.gz: 12f91bb86c35a08d197a66f8d626250b9614207a5c69455aa442f4943c88b164
5
5
  SHA512:
6
- metadata.gz: 94bc33d333f3652cbdfa12169432d7a139b568cb72d4ae08994921760d2f7c8348a8d35f717053c059866ce7e640d08c9af6495a5e37132b2b667d1895b889da
7
- data.tar.gz: ee2ee8e37250de111c419566c74d7b5954b02137f9e6fcb88cf9ff26820583698faf2533e6d01ae5738481bab91797060e2773781e9c93cb8da26efce602c1b0
6
+ metadata.gz: 0f6f815767578d82d2090430881a331387b04d79b415fb26bd72774abc169c32c4acf5e261064c9dd47cdee7bb1fadd1fe803a8f401f575adcd94bc525fe5e83
7
+ data.tar.gz: 16a9c379a394627227aefa883fc2a3aa2714053d11c5c5c15c07f00a4ec2a74291694f240bbf460ac0f85fd7e181ae355f11fe6cd7d2befcf287fa2e6f96b75f
data/README.md CHANGED
@@ -16,7 +16,7 @@ Notable Users:
16
16
 
17
17
  * [mutant](https://github.com/mbj/mutant) - Code review engine via mutation testing.
18
18
  * [ruby-next](https://github.com/ruby-next/ruby-next) - Ruby Syntax Backports.
19
- * May other [reverse-dependencies](https://rubygems.org/gems/unparser/reverse_dependencies).
19
+ * Many other [reverse-dependencies](https://rubygems.org/gems/unparser/reverse_dependencies).
20
20
 
21
21
  (if you want your tool to be mentioned here please PR the addition with a TLDR of your use case).
22
22
 
@@ -30,8 +30,10 @@ module Unparser
30
30
 
31
31
  # Well rubocop you are static so you do not have a clue here ;)
32
32
  # rubocop:disable Style/RedundantInitialize
33
+ # rubocop:disable Style/MissingSuper
33
34
  def initialize; end
34
35
  # rubocop:enable Style/RedundantInitialize
36
+ # rubocop:enable Style/MissingSuper
35
37
 
36
38
  end.new
37
39
 
@@ -20,6 +20,7 @@ module Unparser
20
20
 
21
21
  def binary_syntax_allowed?
22
22
  selector_binary_operator? \
23
+ && n_send?(node) \
23
24
  && arguments.one? \
24
25
  && !n_splat?(arguments.first) \
25
26
  && !n_kwargs?(arguments.first)
@@ -17,6 +17,7 @@ module Unparser
17
17
  #
18
18
  # @api private
19
19
  #
20
+ # rubocop:disable Style/OperatorMethodCall
20
21
  def success?
21
22
  [
22
23
  original_source,
@@ -25,6 +26,7 @@ module Unparser
25
26
  generated_node
26
27
  ].all?(&:right?) && generated_node.from_right.==(original_node.from_right)
27
28
  end
29
+ # rubocop:enable Style/OperatorMethodCall
28
30
 
29
31
  # Return error report
30
32
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-08 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  - !ruby/object:Gem::Version
268
268
  version: '0'
269
269
  requirements: []
270
- rubygems_version: 3.3.26
270
+ rubygems_version: 3.4.10
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Generate equivalent source for parser gem AST nodes