yggdrasil-engine 0.0.5.beta.11-x86_64-darwin → 0.0.5.beta.13-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: be0a1c4db0d1265b8015ba45a5c4b5ce50074a4f5c8e20c345001a3e486ea280
4
- data.tar.gz: 924ce29ca6ae37913ee6f17fb4b0040597815f4f6f8f955813c85e56f4d28d75
3
+ metadata.gz: c0972b7e2207c03e9d3aa276cf19f1977fa82739928f1222e6f98313cb4e48f7
4
+ data.tar.gz: 51dfe095ce6f3f222dbe34e55bb349817aac37b1017abb0f8b5a549a73737d8b
5
5
  SHA512:
6
- metadata.gz: 54bdffd9d04414cc8726f457a64466ca4b1fca5c595dab1f3a9d7036dad3631a1ff67697ae34b08c6cf5db95cf3710d08428d411754359e599cbe609c4616818
7
- data.tar.gz: f0e8616c0bf4425d6797e0a88ff9497509cddb9f5181e537ef5224477b89b1365efa67cfe43676a4f868e4f1c6bbe2a3456535ee63b658bfa5e515d9565c652b
6
+ metadata.gz: 52507a88787a38322ac128364f58aa166dee52c8acfa73adc880e7c9e3d3740da41595d031988a7b1c0717f48b5d649b6fb34c33735aa9736f1734f75b843cd3
7
+ data.tar.gz: 5ade2220759ca6cd0439df0162eef6013e7e64d35e956cdce24ec96a7a1ff1399fa4a72113fb6dbc12717f9d51a1d8059f431a7f03cdca02ad69cab544c35d79
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: x86_64-darwin
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.dylib
35
+ - lib/libyggdrasilffi_x86_64.dylib
36
36
  - lib/yggdrasil_engine.rb
37
37
  - spec/custom_strategy_spec.rb
38
38
  - spec/yggdrasil_engine_spec.rb
Binary file