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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4b4d94b7a468dff6d9a4d67bd45cef5414c764bc6b600dc9721f41195826d4f9
4
- data.tar.gz: 201884db7550acfda6b6c3d29fa64b1e19109b65cc2efda03f10c2505a489a89
3
+ metadata.gz: 666eb48f4d58bd41854a7f48e9aadf201321023f546b5682abe21e56ed80a204
4
+ data.tar.gz: b6a555693e36b13806d156761a7003e06a6be8104c6102fd11ac5e920a687dd2
5
5
  SHA512:
6
- metadata.gz: 675fdcfbc851c74fa5e4e3b93aefeabe2d762c88fc70a1871e270b1dc18950388f19a80b1674145d34cdd96516e49aa67a265ccf7145d734002a2c58c7a26710
7
- data.tar.gz: c0075e8fa2c2fa313b22a0db9021d4ea7cb31794beb9a5d913be9161eff9e120e7a8b76d33dbf68afbad4c00c6f564e1613d5e820069b5d0ae71ec8997c174c0
6
+ metadata.gz: 24b42ba9dd6ba2e16fc4218fbae4f333d8ac193fa4c58de8781836f4b3c7189a342a15088364071b52edf955365f0920bc4773d62f7d36e88c69b50e03f6df60
7
+ data.tar.gz: '081411c60033db6c980fe7204e0e7dde12c7110a5839c545bb59943e3da3e881a0f505cc521284f6753e8f34d47319a9e1bc582126ea27cf82e4b696b170ce3f'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.2 (2024-05-30)
4
+
5
+ * Do not raise error for prism
6
+ * Update `node_query` to 1.15.3
7
+
3
8
  ## 2.0.1 (2024-05-04)
4
9
 
5
10
  * Rescue Prism and SyntaxTree parser error
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert-core (2.0.1)
4
+ synvert-core (2.0.2)
5
5
  activesupport
6
6
  node_mutation (>= 1.24.4)
7
- node_query (>= 1.15.2)
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.2)
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.7)
32
+ bigdecimal (3.1.8)
33
33
  coderay (1.1.3)
34
- concurrent-ruby (1.2.3)
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.4)
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.22.3)
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.2)
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.28.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.7.3)
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
- return result.value.statements if result.errors.empty?
541
-
542
- raise result.errors.last
540
+ result.value.statements
543
541
  end
544
542
  end
545
543
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Synvert
4
4
  module Core
5
- VERSION = '2.0.1'
5
+ VERSION = '2.0.2'
6
6
  end
7
7
  end
@@ -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.2"
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.1
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-04 00:00:00.000000000 Z
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.2
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.2
40
+ version: 1.15.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: node_mutation
43
43
  requirement: !ruby/object:Gem::Requirement