lib-ruby-parser 4.0.3.0-x86_64-darwin → 4.0.3.1-x86_64-darwin

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79470f85ecdcd9321fc94cba0f34a7a57cdb7f79d42594f14b796d7a20d76560
4
- data.tar.gz: cc4b933919bbf5c42195cc5e45fa16b16669831c9153613cee3dd316003720c9
3
+ metadata.gz: eafa415ee2a8729fa02c8abea8a960ef800711b9f1c6370c65f103f9278f52b4
4
+ data.tar.gz: 10b5531dfaa7cbed41c2a52d5088d24c4791d20d81b9b34754dbdb4d67113626
5
5
  SHA512:
6
- metadata.gz: 2126335ba04e1592c73a987dca0cbb055d025a5312942aa4a461dcc2e9c2bd491d3bcedfcf804b06f39251f76727ea1cf33ef1afb5976ec50a798d42c7d74813
7
- data.tar.gz: 1e1428d5dc5e733a6df3ef99ef77f8349fec359e467d28254aed93a80658c599aeb44675e0f92e08987e407736174b4ad9d7b6da98fffaf79af6cf2ebb423225
6
+ metadata.gz: c6a48de2d7460a5a9139ba2b217d7545a3309e6dfd37f73b1fb44dff1bc8e52178ce2bb762a98e3e07bc4dbe8f33c40a95acb9b3b40d57a694be1de52de3f135
7
+ data.tar.gz: 917f9b778d967c6ddf031a23153ee24e9f2325a425a31b1ce304411c82eb27d8a94fe36c904f77c9a7c2d667e62b444c015652fffbdb375f8f3432fa752dbfd9
@@ -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,22 +293,31 @@ require_relative './lib-ruby-parser/messages'
293
293
 
294
294
  require 'rbconfig'
295
295
 
296
- os = RbConfig::CONFIG['host_os']
297
296
  ruby_version = Gem::Version.new(RUBY_VERSION).segments.first(2).join('.')
298
-
299
- case ruby_version
300
- when '3.0', '2.7', '2.6'
301
- # ok
302
- else
303
- warn "[lib-ruby-parser] You are running on windows/mingw with Ruby #{ruby_version}."
304
- warn '[lib-ruby-parser] This version has not been tested, so it may crash.'
297
+ unless ['3.2', '3.1', '3.0'].include?(ruby_version)
298
+ raise "[lib-ruby-parser] Unsupported ruby-version #{ruby_version}"
305
299
  end
306
300
 
307
- case os
308
- when /mingw/
309
- require_relative "./lib-ruby-parser/native/#{ruby_version}/lib_ruby_parser"
310
- when /darwin/, /linux/
311
- require_relative './lib-ruby-parser/native/lib_ruby_parser'
312
- else
313
- raise "[lib-ruby-parser] Unsupported OS '#{os}'"
314
- end
301
+ os = RbConfig::CONFIG['host_os']
302
+ is_windows = !!(os =~ /mingw/)
303
+ is_darwin = !!(os =~ /darwin/)
304
+ is_linux = !!(os =~ /linux/)
305
+
306
+ cpu = RbConfig::CONFIG['host_cpu']
307
+ is_x86_64 = cpu == 'x86_64' || cpu == 'x64'
308
+ is_arm64 = ['arm64', 'aarch64'].include?(cpu)
309
+
310
+ triplet =
311
+ if is_darwin && is_x86_64
312
+ 'x86_64-apple-darwin'
313
+ elsif is_darwin && is_arm64
314
+ 'aarch64-apple-darwin'
315
+ elsif is_linux && is_x86_64
316
+ 'x86_64-unknown-linux-gnu'
317
+ elsif is_windows && is_x86_64
318
+ 'x86_64-pc-windows-gnu'
319
+ else
320
+ raise "[lib-ruby-parser] Unsupported os/cpu combination '#{os}'/'#{cpu}'"
321
+ end
322
+
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/lib_ruby_parser.bundle',
29
+ 'lib/lib-ruby-parser/native/x86_64-apple-darwin/3.2/lib_ruby_parser.bundle',
30
+ 'lib/lib-ruby-parser/native/x86_64-apple-darwin/3.1/lib_ruby_parser.bundle',
31
+ 'lib/lib-ruby-parser/native/x86_64-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: x86_64-darwin
6
6
  authors:
7
7
  - Ilya Bylich
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-21 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/lib_ruby_parser.bundle
24
+ - lib/lib-ruby-parser/native/x86_64-apple-darwin/3.0/lib_ruby_parser.bundle
25
+ - lib/lib-ruby-parser/native/x86_64-apple-darwin/3.1/lib_ruby_parser.bundle
26
+ - lib/lib-ruby-parser/native/x86_64-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
@@ -30,7 +32,7 @@ licenses:
30
32
  metadata:
31
33
  homepage_uri: https://github.com/lib-ruby-parser/ruby-bindings
32
34
  source_code_uri: https://github.com/lib-ruby-parser/ruby-bindings
33
- post_install_message:
35
+ post_install_message:
34
36
  rdoc_options: []
35
37
  require_paths:
36
38
  - lib
@@ -45,8 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
47
  - !ruby/object:Gem::Version
46
48
  version: '0'
47
49
  requirements: []
48
- rubygems_version: 3.3.7
49
- signing_key:
50
+ rubygems_version: 3.4.6
51
+ signing_key:
50
52
  specification_version: 4
51
53
  summary: Ruby parser written in Rust.
52
54
  test_files: []