yggdrasil-engine 0.0.5.beta.11-arm64-darwin → 0.0.5.beta.13-arm64-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: 70bd0ff7b0f301c7f41b878d26515939a67a6f608f803369f11722ab370a0651
4
- data.tar.gz: e077b7f0064f714835ba2ea4e05254ff7906fe0f28f7d819c79661941701c476
3
+ metadata.gz: c2cc7dadcb0a6ffe20c484386cd36c8a3c5872185b16e862f0afbf7e40f664b3
4
+ data.tar.gz: 63059c8543972e871887ee9f2613ee4c871a544f8e642ca1b617ce971c3c72f5
5
5
  SHA512:
6
- metadata.gz: e7a948a9f26ac6ca804eef6582176ae70bd0e9b395afd36696377053160f0f8edde0c826c635f82cf98909b539103dade008f1cc5d9493b2247f3a384af07a96
7
- data.tar.gz: a3b7d9e6de536830ec4f9c9692bccfb1be6cef4034c69e82c1b4f40cfb8c3c93770f6f5c6e20d5919019450df4ed35becd511a7b74aa985911fcc2bdcf0713fe
6
+ metadata.gz: 1cac8be804d41103b967ab20d0b28e456c12e188c0ff7b35cef5ac7fec6f731816273078658e780644177cbe95c71009910f2b9ed6b1f3d89a36d98c98b15f37
7
+ data.tar.gz: 2f216b60ab4c1c9470aaabee91151670578eea3d0e1ee15086a3f357e2e70646242b966c20199844363713046be9fc8e7b15e8cbe436a7ee883907c02724f346
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: arm64-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_arm64.dylib
36
36
  - lib/yggdrasil_engine.rb
37
37
  - spec/custom_strategy_spec.rb
38
38
  - spec/yggdrasil_engine_spec.rb
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.5.18
58
+ rubygems_version: 3.5.19
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Unleash engine for evaluating feature toggles
Binary file