lib-ruby-parser 4.0.3.0-arm64-darwin → 4.0.3.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lib-ruby-parser/native/aarch64-apple-darwin/3.0/lib_ruby_parser.bundle +0 -0
- data/lib/lib-ruby-parser/native/aarch64-apple-darwin/{lib_ruby_parser.bundle → 3.1/lib_ruby_parser.bundle} +0 -0
- data/lib/lib-ruby-parser/native/aarch64-apple-darwin/3.2/lib_ruby_parser.bundle +0 -0
- data/lib/lib-ruby-parser/version.rb +1 -1
- data/lib/lib-ruby-parser.rb +13 -10
- data/lib-ruby-parser.gemspec +3 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d872e5ceca0413e4e0afb31333247e04eae8601830772f3c520310cdac7ab321
|
4
|
+
data.tar.gz: 1ec64935618a28310249234304d30cc8a8c330575aa77b8fd5487429f5b646d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39c3115b779b49294bf9baef6ab8eaa5965a90865974f831a4dc36c5208c8472f3b15945978832b2918394b96c8b84021024e79730a1de85a2bdfe8e42d0a972
|
7
|
+
data.tar.gz: d8ecd252eec495b523997b2373585c59e6a7eddfc724abc391bc8b2dad15031f497c07090906f8d1bbb62dc08bbaadafac989433bdf793d115725d29ce0c62c4
|
Binary file
|
data/lib/lib-ruby-parser.rb
CHANGED
@@ -293,6 +293,11 @@ require_relative './lib-ruby-parser/messages'
|
|
293
293
|
|
294
294
|
require 'rbconfig'
|
295
295
|
|
296
|
+
ruby_version = Gem::Version.new(RUBY_VERSION).segments.first(2).join('.')
|
297
|
+
unless ['3.2', '3.1', '3.0'].include?(ruby_version)
|
298
|
+
raise "[lib-ruby-parser] Unsupported ruby-version #{ruby_version}"
|
299
|
+
end
|
300
|
+
|
296
301
|
os = RbConfig::CONFIG['host_os']
|
297
302
|
is_windows = !!(os =~ /mingw/)
|
298
303
|
is_darwin = !!(os =~ /darwin/)
|
@@ -302,19 +307,17 @@ cpu = RbConfig::CONFIG['host_cpu']
|
|
302
307
|
is_x86_64 = cpu == 'x86_64' || cpu == 'x64'
|
303
308
|
is_arm64 = ['arm64', 'aarch64'].include?(cpu)
|
304
309
|
|
305
|
-
|
306
|
-
|
307
|
-
native_dylib_path =
|
310
|
+
triplet =
|
308
311
|
if is_darwin && is_x86_64
|
309
|
-
'x86_64-apple-darwin
|
312
|
+
'x86_64-apple-darwin'
|
310
313
|
elsif is_darwin && is_arm64
|
311
|
-
'aarch64-apple-darwin
|
314
|
+
'aarch64-apple-darwin'
|
312
315
|
elsif is_linux && is_x86_64
|
313
|
-
'x86_64-unknown-linux-gnu
|
314
|
-
elsif is_windows && is_x86_64
|
315
|
-
|
316
|
+
'x86_64-unknown-linux-gnu'
|
317
|
+
elsif is_windows && is_x86_64
|
318
|
+
'x86_64-pc-windows-gnu'
|
316
319
|
else
|
317
|
-
raise "[lib-ruby-parser] Unsupported os/cpu
|
320
|
+
raise "[lib-ruby-parser] Unsupported os/cpu combination '#{os}'/'#{cpu}'"
|
318
321
|
end
|
319
322
|
|
320
|
-
require_relative "./lib-ruby-parser/native/#{
|
323
|
+
require_relative "./lib-ruby-parser/native/#{triplet}/#{ruby_version}/lib_ruby_parser"
|
data/lib-ruby-parser.gemspec
CHANGED
@@ -26,7 +26,9 @@ Gem::Specification.new do |spec|
|
|
26
26
|
'lib/lib-ruby-parser/version.rb',
|
27
27
|
'lib/lib-ruby-parser/messages.rb',
|
28
28
|
'lib/lib-ruby-parser/nodes.rb',
|
29
|
-
'lib/lib-ruby-parser/native/aarch64-apple-darwin/lib_ruby_parser.bundle',
|
29
|
+
'lib/lib-ruby-parser/native/aarch64-apple-darwin/3.2/lib_ruby_parser.bundle',
|
30
|
+
'lib/lib-ruby-parser/native/aarch64-apple-darwin/3.1/lib_ruby_parser.bundle',
|
31
|
+
'lib/lib-ruby-parser/native/aarch64-apple-darwin/3.0/lib_ruby_parser.bundle',
|
30
32
|
]
|
31
33
|
spec.bindir = 'exe'
|
32
34
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lib-ruby-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.3.
|
4
|
+
version: 4.0.3.1
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Ilya Bylich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby bindings for lib-ruby-parser.
|
14
14
|
email:
|
@@ -21,7 +21,9 @@ files:
|
|
21
21
|
- lib-ruby-parser.gemspec
|
22
22
|
- lib/lib-ruby-parser.rb
|
23
23
|
- lib/lib-ruby-parser/messages.rb
|
24
|
-
- lib/lib-ruby-parser/native/aarch64-apple-darwin/lib_ruby_parser.bundle
|
24
|
+
- lib/lib-ruby-parser/native/aarch64-apple-darwin/3.0/lib_ruby_parser.bundle
|
25
|
+
- lib/lib-ruby-parser/native/aarch64-apple-darwin/3.1/lib_ruby_parser.bundle
|
26
|
+
- lib/lib-ruby-parser/native/aarch64-apple-darwin/3.2/lib_ruby_parser.bundle
|
25
27
|
- lib/lib-ruby-parser/nodes.rb
|
26
28
|
- lib/lib-ruby-parser/version.rb
|
27
29
|
homepage: https://github.com/lib-ruby-parser/ruby-bindings
|