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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc794d4bcd84e7b52c04316d31c1bb107ac738c7b1f4d74cbd04882a5d7fb035
4
- data.tar.gz: e9e4e1e41c4a2f8f6769305809f162cbc410ddbe52b9513b677f706d3c25bfee
3
+ metadata.gz: d872e5ceca0413e4e0afb31333247e04eae8601830772f3c520310cdac7ab321
4
+ data.tar.gz: 1ec64935618a28310249234304d30cc8a8c330575aa77b8fd5487429f5b646d9
5
5
  SHA512:
6
- metadata.gz: dd76b3f173c4e061d069074137edf6beed8538e8b1b637e24c0e9c8712c06021a473c52ecf031247225deb935ee8aa39da7cd310cac997b4cb24684906570c2b
7
- data.tar.gz: d5f47d13ccf6794648ba446551f769389e16682ca927de35cc60b6a35ff17ae6904dea5e01ef2eed60179ff42b7db7742d56d4ef9c39ccb69686a1684f227125
6
+ metadata.gz: 39c3115b779b49294bf9baef6ab8eaa5965a90865974f831a4dc36c5208c8472f3b15945978832b2918394b96c8b84021024e79730a1de85a2bdfe8e42d0a972
7
+ data.tar.gz: d8ecd252eec495b523997b2373585c59e6a7eddfc724abc391bc8b2dad15031f497c07090906f8d1bbb62dc08bbaadafac989433bdf793d115725d29ce0c62c4
@@ -1,4 +1,4 @@
1
1
  module LibRubyParser
2
2
  # Version of the lib-ruby-parser
3
- VERSION = '4.0.3.0'
3
+ VERSION = '4.0.3.1'
4
4
  end
@@ -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
- ruby_version = Gem::Version.new(RUBY_VERSION).segments.first(2).join('.')
306
-
307
- native_dylib_path =
310
+ triplet =
308
311
  if is_darwin && is_x86_64
309
- 'x86_64-apple-darwin/lib_ruby_parser'
312
+ 'x86_64-apple-darwin'
310
313
  elsif is_darwin && is_arm64
311
- 'aarch64-apple-darwin/lib_ruby_parser'
314
+ 'aarch64-apple-darwin'
312
315
  elsif is_linux && is_x86_64
313
- 'x86_64-unknown-linux-gnu/lib_ruby_parser'
314
- elsif is_windows && is_x86_64 && ['3.2', '3.1', '3.0'].include?(ruby_version)
315
- "x86_64-pc-windows-gnu/#{ruby_version}/lib_ruby_parser"
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/ruby-version combination '#{os}'/'#{cpu}'/'#{ruby_version}'"
320
+ raise "[lib-ruby-parser] Unsupported os/cpu combination '#{os}'/'#{cpu}'"
318
321
  end
319
322
 
320
- require_relative "./lib-ruby-parser/native/#{native_dylib_path}"
323
+ require_relative "./lib-ruby-parser/native/#{triplet}/#{ruby_version}/lib_ruby_parser"
@@ -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.0
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-19 00:00:00.000000000 Z
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