lib-ruby-parser 1.0.0-x86_64-darwin → 4.0.3.1-x86_64-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: 35ef38befb727ac4a8290d2b4eb766baf1df38e41030b43b20bf15377f13caf8
4
- data.tar.gz: 6452fa43815e9bb254b98cac19e46a2e4ecc8c39f58de62e0ab3b4da74cac0bd
3
+ metadata.gz: eafa415ee2a8729fa02c8abea8a960ef800711b9f1c6370c65f103f9278f52b4
4
+ data.tar.gz: 10b5531dfaa7cbed41c2a52d5088d24c4791d20d81b9b34754dbdb4d67113626
5
5
  SHA512:
6
- metadata.gz: ca3b01fee7da66b0fe744b5953ddaa4c0999b08fc8a78fef20245752245cc4d92c66c0a1c567afae0f5535f17ecc81d0a071dd0b57e5f98d8a815945f559c7c7
7
- data.tar.gz: a9b8d5a7eb812be10dc686e0f1c47bd9a4a1c3f59df22f376bd497addf4a63b842e082ebb6aec00554bb428eb129efd4763e90ed8ece675525b536db8a8c477f
6
+ metadata.gz: c6a48de2d7460a5a9139ba2b217d7545a3309e6dfd37f73b1fb44dff1bc8e52178ce2bb762a98e3e07bc4dbe8f33c40a95acb9b3b40d57a694be1de52de3f135
7
+ data.tar.gz: 917f9b778d967c6ddf031a23153ee24e9f2325a425a31b1ce304411c82eb27d8a94fe36c904f77c9a7c2d667e62b444c015652fffbdb375f8f3432fa752dbfd9
@@ -1,4 +1,4 @@
1
1
  module LibRubyParser
2
- # Version of the lib-ruby-parser + monotonically increasing ".N"
3
- VERSION = '1.0.0'
2
+ # Version of the lib-ruby-parser
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: 1.0.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-05-07 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: []