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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2de43bd28a6e3c3c22673a229fab0fca7d30475f856797d1bae402cb9979e257
4
- data.tar.gz: 6666296f2ceecd646ece9a0e3fee06a4f01d680ae4ddcd1634d656f9c176aa1f
3
+ metadata.gz: 51a30c5d53520076a6b19d8b37b3e731c8ac8c6b37f1ccea72a2290710d8dedb
4
+ data.tar.gz: 544b1b22736424d6383c9213e9aa1cea20738bf3c099977a9ad18c91fdbb0a70
5
5
  SHA512:
6
- metadata.gz: 0db1d458747646f318ab951ee980ed3a57f5b8eb806f85e6550e4280f027871f11d0e5638af5e6243cecda2d9a92668d506d77aec9627284e0027db3a44b85c2
7
- data.tar.gz: bdd9e8f287cbe634f50c3dcb35f1a3fba78282acc37f1335e42eec1298041099fd93a28cbf6dfd3a4916fb4db805718b1b592d63a0dd18ce5d261410bb6c0a77
6
+ metadata.gz: c92691509ab9373752de66a4461499f19217ae9eac07a8f655b67b433679719623cdd56febfc90a310c9fcee4b3914a513811e0115e46133a194980a7fb3cf04
7
+ data.tar.gz: bda965c4cc14f93c2e1fe87c36b3390512fad4827d9c7f6ea80ace198e2f0f72826a66950ab743737d610b461d9cb24eaccf47db2961498a79d56e008d81e232
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.35.2 (2024-04-16)
4
+
5
+ * Explicitly read file as UTF-8 encoding
6
+ * Update `node_mutation` to 1.24.4
7
+
3
8
  ## 1.35.1 (2024-04-15)
4
9
 
5
10
  * Fix `wrap` dsl comments
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert-core (1.35.1)
4
+ synvert-core (1.35.2)
5
5
  activesupport (< 7.0.0)
6
- node_mutation (>= 1.24.3)
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.3)
55
+ node_mutation (1.24.4)
56
56
  node_query (1.15.2)
57
57
  notiffany (0.1.3)
58
58
  nenv (~> 0.1)
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Synvert
4
4
  module Core
5
- VERSION = '1.35.1'
5
+ VERSION = '1.35.2'
6
6
  end
7
7
  end
@@ -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.3"
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.1
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-15 00:00:00.000000000 Z
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.3
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.3
54
+ version: 1.24.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: parser
57
57
  requirement: !ruby/object:Gem::Requirement