yggdrasil-engine 0.0.5.beta.11-universal-java-17 → 0.0.5.beta.13-universal-java-17

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: 45a12d081a9a7b650544b6e177e703ca46f53331968b6cb094860d1664e82e27
4
- data.tar.gz: ffb3e9f7c4bc4cb779db7245be62dca7030bc820094bcbb1910802527ccbdf73
3
+ metadata.gz: 2cc6e9a9340809c2b4ac578ffaed6c1b10d307ef860665efc12a6d4a4fba45f3
4
+ data.tar.gz: b033e052b0aa88d2ead0fdaabb77803f99211ce353fe4765c6f5da8fc1ad4338
5
5
  SHA512:
6
- metadata.gz: 57e9536c2febe520bbaa32ccb556cd62ea4d91494c627115a0bdf43894a7f6263392a6c64b28c3191aa88a458520791e303d41a3ebad94d8a06db1a103e21be8
7
- data.tar.gz: 941c2e19e99a05987b89c00d67a4f97473a11a6ff9feb425a20f963cdfe4101f3c83c3710cf7ae91627290b6b2359bfa554c09435a4f7fdf721daa1a69e16094
6
+ metadata.gz: 55b08ac8695f5d49b161b714387f6476f9db892655f0a7967c210f7bda4332d3770a010c0c633b480206e0f333c8876538ea11c80e813720680f15d07fee894a
7
+ data.tar.gz: 11527add55c9ad41475bb2b89c9c964c43aa7d1b29e2f61c28792566af060c3e692318b58831d3cd5b6b49b3aac853be4bfa054880175db5a855fbe631adb733
Binary file
Binary file
Binary file
Binary file
@@ -7,16 +7,30 @@ ERROR_RESPONSE = 'Error'.freeze
7
7
  OK_RESPONSE = 'Ok'.freeze
8
8
 
9
9
  def platform_specific_lib
10
- case RbConfig::CONFIG['host_os']
10
+ os = RbConfig::CONFIG['host_os']
11
+ cpu = RbConfig::CONFIG['host_cpu']
12
+
13
+ extension = case os
11
14
  when /darwin|mac os/
12
- 'libyggdrasilffi.dylib'
15
+ 'dylib'
13
16
  when /linux/
14
- 'libyggdrasilffi.so'
17
+ 'so'
15
18
  when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
16
- 'libyggdrasilffi.dll'
19
+ 'dll'
17
20
  else
18
- raise "unsupported platform #{RbConfig::CONFIG['host_os']}"
21
+ raise "unsupported platform #{os}"
19
22
  end
23
+
24
+ arch_suffix = case cpu
25
+ when /x86_64/
26
+ 'x86_64'
27
+ when /arm|aarch64/
28
+ 'arm'
29
+ else
30
+ raise "unsupported architecture #{cpu}"
31
+ end
32
+
33
+ "libyggdrasilffi_#{arch_suffix}.#{extension}"
20
34
  end
21
35
 
22
36
  def to_variant(raw_variant)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yggdrasil-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.beta.11
4
+ version: 0.0.5.beta.13
5
5
  platform: universal-java-17
6
6
  authors:
7
7
  - Unleash
@@ -32,10 +32,11 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - README.md
34
34
  - lib/custom_strategy.rb
35
- - lib/libyggdrasilffi.dylib
36
- - lib/libyggdrasilffi.so
35
+ - lib/libyggdrasilffi_arm64.dylib
36
+ - lib/libyggdrasilffi_x86_64.dll
37
+ - lib/libyggdrasilffi_x86_64.dylib
38
+ - lib/libyggdrasilffi_x86_64.so
37
39
  - lib/yggdrasil_engine.rb
38
- - lib/yggdrasilffi.dll
39
40
  - spec/custom_strategy_spec.rb
40
41
  - spec/yggdrasil_engine_spec.rb
41
42
  homepage: http://github.com/username/my_gem
Binary file
Binary file
data/lib/yggdrasilffi.dll DELETED
Binary file