synvert-core 1.35.1 → 1.35.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 +3 -3
- data/lib/synvert/core/utils.rb +2 -2
- 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: 51a30c5d53520076a6b19d8b37b3e731c8ac8c6b37f1ccea72a2290710d8dedb
|
4
|
+
data.tar.gz: 544b1b22736424d6383c9213e9aa1cea20738bf3c099977a9ad18c91fdbb0a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c92691509ab9373752de66a4461499f19217ae9eac07a8f655b67b433679719623cdd56febfc90a310c9fcee4b3914a513811e0115e46133a194980a7fb3cf04
|
7
|
+
data.tar.gz: bda965c4cc14f93c2e1fe87c36b3390512fad4827d9c7f6ea80ace198e2f0f72826a66950ab743737d610b461d9cb24eaccf47db2961498a79d56e008d81e232
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
synvert-core (1.35.
|
4
|
+
synvert-core (1.35.2)
|
5
5
|
activesupport (< 7.0.0)
|
6
|
-
node_mutation (>= 1.24.
|
6
|
+
node_mutation (>= 1.24.4)
|
7
7
|
node_query (>= 1.15.2)
|
8
8
|
parallel
|
9
9
|
parser
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
method_source (1.0.0)
|
53
53
|
minitest (5.22.3)
|
54
54
|
nenv (0.3.0)
|
55
|
-
node_mutation (1.24.
|
55
|
+
node_mutation (1.24.4)
|
56
56
|
node_query (1.15.2)
|
57
57
|
notiffany (0.1.3)
|
58
58
|
nenv (~> 0.1)
|
data/lib/synvert/core/utils.rb
CHANGED
@@ -19,10 +19,10 @@ module Synvert::Core
|
|
19
19
|
|
20
20
|
raise Errors::SnippetNotFound.new("#{snippet_name} not found")
|
21
21
|
elsif is_valid_file?(snippet_name)
|
22
|
-
return File.read(snippet_name)
|
22
|
+
return File.read(snippet_name, encoding: 'UTF-8')
|
23
23
|
else
|
24
24
|
snippet_path = snippet_expand_path(snippet_name)
|
25
|
-
return File.read(snippet_path) if File.exist?(snippet_path)
|
25
|
+
return File.read(snippet_path, encoding: 'UTF-8') if File.exist?(snippet_path)
|
26
26
|
|
27
27
|
snippet_uri = URI.parse(format_url(remote_snippet_url(snippet_name)))
|
28
28
|
return snippet_uri.open.read if remote_snippet_exists?(snippet_uri)
|
data/lib/synvert/core/version.rb
CHANGED
data/synvert-core-ruby.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "activesupport", "< 7.0.0"
|
23
23
|
spec.add_runtime_dependency "node_query", ">= 1.15.2"
|
24
|
-
spec.add_runtime_dependency "node_mutation", ">= 1.24.
|
24
|
+
spec.add_runtime_dependency "node_mutation", ">= 1.24.4"
|
25
25
|
spec.add_runtime_dependency "parser"
|
26
26
|
spec.add_runtime_dependency "parser_node_ext", ">= 1.3.0"
|
27
27
|
spec.add_runtime_dependency "syntax_tree"
|
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: 1.35.
|
4
|
+
version: 1.35.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-04-
|
11
|
+
date: 2024-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.24.
|
47
|
+
version: 1.24.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.24.
|
54
|
+
version: 1.24.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: parser
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|