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

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: 4b26d640a3738421d39b9d0f31e5f9fa5d95aa0e6943023ddce2e8382105061d
4
- data.tar.gz: 7d2e329deea68a358c13b5d2418fcff33e4efc658cb8c70c145e1928986eb6c2
3
+ metadata.gz: 15b106684493a6ca3930bdf64cedc3bb784f6cfbd69c19db2b88e76f65bb6542
4
+ data.tar.gz: c00e12659a9efb229e72f4c6ee79511477b6fea254f0c266185e48a309d99b68
5
5
  SHA512:
6
- metadata.gz: 3e3ce2459d272206dfb1c7b7d1c974be09c514e3f7ed46e3aaac49c6ee8db0d0abfd57783ae20f45d4f2b962f5d1dc64d6071b7900395baf071cbc542ae5449c
7
- data.tar.gz: 2b84f407813f6d10b329c7ede7d9816f5a3afd59291eb0bc3719d23f60032043384a9418a59dfbf2b0991e8a8309a51208df7c05a9e31bd2fbb1829a43dfc235
6
+ metadata.gz: 1fd5434df9aa8388557642d0089b262ab90e09476792c2334c36bb56708c3fa675ba6bc0b7cba8bd5d390be394ea323ddf1562d6aca31c24ac6a8ce14aaaf121
7
+ data.tar.gz: 6ebe535ff4d3589a5a81e9a9f1fc0487bab9fe9e189448431c44e6c89d73ebb9ccca9db5934e7e9aec48931c3503b07beeb31da3ff13c5afe951a397efcf05e9
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-11
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