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

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: 2e8d829ecd0ba2283fdcc08804fa8a38ba6d059ccd3160e466f067b2433fe261
4
- data.tar.gz: 04b0aa18905141c94a2eb707677e482252cb5c35782c3d170a5e99dfabe3fe3e
3
+ metadata.gz: a64d1a0f6b82e82363a3689952773ab8f07d6db02a5e2733bfa2745cb3f5a198
4
+ data.tar.gz: e490ba5eccf458b3aad307adfd3fe4517eb86502e95b54a3c08ff4706f9adef2
5
5
  SHA512:
6
- metadata.gz: cb4cee629e5053ab008065ef6d720b72672dae7806955493c51cd41663d46ce1adbd7d1e5e8bf9df8898bf29fc12f2546e848d744a430b3230c88fcec2d7ea98
7
- data.tar.gz: 24e5e7c3023d6c513e6f620ac1f9a0b1ec666bd51d8cb6efc6d5fea4a2f034bb74e85f9330c6781b28defeeac364735c7323d04001e66cfcc3eee7ecfd81e517
6
+ metadata.gz: 8700ac8da9e87c1b04a3383969f72017c665711134eaaf1a471c39788353af364c534279a5b1ad3b1294c1053f10d2dd8c73e33ed08a61280df26f7ecdd4bd48
7
+ data.tar.gz: 4ec339e0bb8a6f4d8015d6f0bb306610bf8f7a90d4fe7927e1defe941f0228f67df6376365db66411a2405d7e9503e54105a5e3a5d36e7a7934c7a56d633176c
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-1.8
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