yggdrasil-engine 0.0.5.beta.12-x86_64-linux → 0.0.5.beta.13-x86_64-linux

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: 6406c31a05821c1a7d25ed7670f15bc39760eef1e065df5e4d6be113f9ff50e4
4
- data.tar.gz: f574aa296002e78378d32d0f6b977226a661973579d8ca5458325e59a08b8dbb
3
+ metadata.gz: d913e24fdc9400bf7f9c4a85a9f23e92530f3ad5fab94474e30d77cef5e0b12c
4
+ data.tar.gz: 5b8efd9f387dcafc84833d011d481725c3b66c3f8ac4fc0b20787e3673ca8bc8
5
5
  SHA512:
6
- metadata.gz: 0e459e323f1c48b5f81fa3ba79bda2943283b0435afc1ab664b4d8ccd5da1bcda16cebf6f636d35a75cfef6259e180505b1df30646716ad6acdd5afe45087c5a
7
- data.tar.gz: 37973461a655e4c83bafc73dc43c6ce6a99e9be4aab8f08a1887cbca28ce6a8f8955c00102086e633167dff15af2d408bdb2b5622c11b306a663b139ec16a0dc
6
+ metadata.gz: 52180792b5db66cf0e99e4735d98ed4b1146208f8f2df1222272b3f45603fb1a0f6d14f44a6bd3c54b616b16b546cc45c2ba7a6a7fa721847a2d2aa0e0df0f16
7
+ data.tar.gz: a16708fea68a20f56aa56223533d756ce02c0fb7a8bee81bb54cf38ed3017f592b2d5b1b0e4844822adf00a9f171c2c1410628174b549261cbc0dc080a9aa716
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.12
4
+ version: 0.0.5.beta.13
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Unleash
@@ -32,7 +32,7 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - README.md
34
34
  - lib/custom_strategy.rb
35
- - lib/libyggdrasilffi.so
35
+ - lib/libyggdrasilffi_x86_64.so
36
36
  - lib/yggdrasil_engine.rb
37
37
  - spec/custom_strategy_spec.rb
38
38
  - spec/yggdrasil_engine_spec.rb
Binary file