synvert-core 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +10 -10
- data/lib/synvert/core/rewriter/instance.rb +1 -3
- data/lib/synvert/core/version.rb +1 -1
- data/synvert-core-ruby.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 666eb48f4d58bd41854a7f48e9aadf201321023f546b5682abe21e56ed80a204
|
4
|
+
data.tar.gz: b6a555693e36b13806d156761a7003e06a6be8104c6102fd11ac5e920a687dd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24b42ba9dd6ba2e16fc4218fbae4f333d8ac193fa4c58de8781836f4b3c7189a342a15088364071b52edf955365f0920bc4773d62f7d36e88c69b50e03f6df60
|
7
|
+
data.tar.gz: '081411c60033db6c980fe7204e0e7dde12c7110a5839c545bb59943e3da3e881a0f505cc521284f6753e8f34d47319a9e1bc582126ea27cf82e4b696b170ce3f'
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synvert-core (2.0.
|
4
|
+
synvert-core (2.0.2)
|
5
5
|
activesupport
|
6
6
|
node_mutation (>= 1.24.4)
|
7
|
-
node_query (>= 1.15.
|
7
|
+
node_query (>= 1.15.3)
|
8
8
|
node_visitor (>= 1.0.1)
|
9
9
|
parallel
|
10
10
|
parser
|
@@ -17,7 +17,7 @@ PATH
|
|
17
17
|
GEM
|
18
18
|
remote: https://rubygems.org/
|
19
19
|
specs:
|
20
|
-
activesupport (7.1.3.
|
20
|
+
activesupport (7.1.3.3)
|
21
21
|
base64
|
22
22
|
bigdecimal
|
23
23
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -29,9 +29,9 @@ GEM
|
|
29
29
|
tzinfo (~> 2.0)
|
30
30
|
ast (2.4.2)
|
31
31
|
base64 (0.2.0)
|
32
|
-
bigdecimal (3.1.
|
32
|
+
bigdecimal (3.1.8)
|
33
33
|
coderay (1.1.3)
|
34
|
-
concurrent-ruby (1.
|
34
|
+
concurrent-ruby (1.3.1)
|
35
35
|
connection_pool (2.4.1)
|
36
36
|
diff-lcs (1.5.1)
|
37
37
|
drb (2.2.1)
|
@@ -52,18 +52,18 @@ GEM
|
|
52
52
|
guard (~> 2.1)
|
53
53
|
guard-compat (~> 1.1)
|
54
54
|
rspec (>= 2.99.0, < 4.0)
|
55
|
-
i18n (1.14.
|
55
|
+
i18n (1.14.5)
|
56
56
|
concurrent-ruby (~> 1.0)
|
57
57
|
listen (3.9.0)
|
58
58
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
59
59
|
rb-inotify (~> 0.9, >= 0.9.10)
|
60
60
|
lumberjack (1.2.10)
|
61
61
|
method_source (1.1.0)
|
62
|
-
minitest (5.
|
62
|
+
minitest (5.23.1)
|
63
63
|
mutex_m (0.2.0)
|
64
64
|
nenv (0.3.0)
|
65
65
|
node_mutation (1.24.4)
|
66
|
-
node_query (1.15.
|
66
|
+
node_query (1.15.3)
|
67
67
|
node_visitor (1.0.1)
|
68
68
|
notiffany (0.1.3)
|
69
69
|
nenv (~> 0.1)
|
@@ -75,13 +75,13 @@ GEM
|
|
75
75
|
parser_node_ext (1.3.2)
|
76
76
|
parser
|
77
77
|
prettier_print (1.2.1)
|
78
|
-
prism (0.
|
78
|
+
prism (0.29.0)
|
79
79
|
prism_ext (0.3.2)
|
80
80
|
prism
|
81
81
|
pry (0.14.2)
|
82
82
|
coderay (~> 1.1)
|
83
83
|
method_source (~> 1.0)
|
84
|
-
racc (1.
|
84
|
+
racc (1.8.0)
|
85
85
|
rake (13.0.6)
|
86
86
|
rb-fsevent (0.11.2)
|
87
87
|
rb-inotify (0.10.1)
|
@@ -537,9 +537,7 @@ module Synvert::Core
|
|
537
537
|
# @return [Node] ast node for file
|
538
538
|
def parse_code_by_prism(_file_path, encoded_source)
|
539
539
|
result = Prism.parse(encoded_source)
|
540
|
-
|
541
|
-
|
542
|
-
raise result.errors.last
|
540
|
+
result.value.statements
|
543
541
|
end
|
544
542
|
end
|
545
543
|
end
|
data/lib/synvert/core/version.rb
CHANGED
data/synvert-core-ruby.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "activesupport"
|
23
|
-
spec.add_runtime_dependency "node_query", ">= 1.15.
|
23
|
+
spec.add_runtime_dependency "node_query", ">= 1.15.3"
|
24
24
|
spec.add_runtime_dependency "node_mutation", ">= 1.24.4"
|
25
25
|
spec.add_runtime_dependency "node_visitor", ">= 1.0.1"
|
26
26
|
spec.add_runtime_dependency "parser"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synvert-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 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: 1.15.
|
33
|
+
version: 1.15.3
|
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: 1.15.
|
40
|
+
version: 1.15.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: node_mutation
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|