masamune-ast 2.0.0 → 2.0.2

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: caf2d78e9516f9431e751db61028a2dd90354b2dce71eecc116a848b7b171344
4
- data.tar.gz: c556d620be50a699a6757981ce692929298baf92cd9ebbaa86256f7277e28d9e
3
+ metadata.gz: 5a219314a174623dc030d59985862865ef8fb957e9c8c1712a5575e4e2baed5c
4
+ data.tar.gz: 51ba23a068694f8f6bce90ec4fcf9b371356e89519ae84fb2d69187fee4ac25c
5
5
  SHA512:
6
- metadata.gz: 62015efa9a2e971af08db707acccf0df1761fc4a6b89fa14ca3ee830732d02ad3c06434c14c9b153006a938217f01e80370ec1dda11fa108f954ec8b47575b5a
7
- data.tar.gz: 125c5527076511907993aee66d47e66caee9c416c33d44f63585e31676c214cbe959f5bf35165a748199fca2c87d3fda181f0f55a51331edd45c382998796178
6
+ metadata.gz: b5cb612d6444c600c09e920240e0f1d975259d27689a28024908808185279746fd434e7cf01618c220fb6d738170abddb3f407a7030edfeef4fc8277309a0eca
7
+ data.tar.gz: 3b53a97766d360c6963a9e584ffa665e7e64266344cec9e350673434ed3d909356bade69a4bdbf54a10ff4f8202a4dfbf25d32c484d0f2c92ca55621c1196666
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [2.0.2] - 2023-10-19
4
+
5
+ - Get location information directly from comment object in #68
6
+
7
+ ## [2.0.1] - 2023-10-18
8
+
9
+ - Fix results for the call node visitor #64.
10
+
3
11
  ## [2.0.0] - 2023-10-13
4
12
 
5
13
  - Migrate to Prism by @gazayas in #60
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- masamune-ast (2.0.0)
4
+ masamune-ast (2.0.2)
5
5
  activesupport
6
- prism (>= 0.13.0)
6
+ prism (>= 0.14.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -19,7 +19,7 @@ GEM
19
19
  concurrent-ruby (~> 1.0)
20
20
  method_source (1.0.0)
21
21
  minitest (5.18.0)
22
- prism (0.13.0)
22
+ prism (0.14.0)
23
23
  pry (0.14.2)
24
24
  coderay (~> 1.1)
25
25
  method_source (~> 1.0)
@@ -78,5 +78,10 @@ module Prism
78
78
  def comment? = true
79
79
  def token_location = location
80
80
  def token_value = location.slice
81
+ def start_line = location.start_line
82
+ def start_column = location.start_column
83
+ def end_line = location.end_line
84
+ def end_column = location.end_column
85
+ def line_number = start_line
81
86
  end
82
87
  end
@@ -9,8 +9,9 @@ module Masamune
9
9
  end
10
10
 
11
11
  def visit_call_node(node)
12
+ # TODO: We should probably replace this with unless node.variable_call?
12
13
  if node.method_call?
13
- results << node if token_value.nil? || token_value == node.name
14
+ results << node if token_value.nil? || token_value == node.name.to_s
14
15
  end
15
16
  super
16
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Masamune
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masamune-ast
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Zayas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.13.0
33
+ version: 0.14.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.13.0
40
+ version: 0.14.0
41
41
  description: A layer of abstraction on top of Ripper for handling Abstract Syntax
42
42
  Trees in Ruby.
43
43
  email: