yggdrasil-engine 0.0.5.beta.12-x86_64-darwin → 0.0.5.beta.14-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: 797da92e784e46aa16a1e4630523841d7e6731ac244afb3532e0ec99f1983242
4
- data.tar.gz: 268789f2db53b00941b881a75f40307b7647b8801e96b78ab3fbe53cec9bfe0c
3
+ metadata.gz: 75513bb9327c0af736e5e47a95dc81eebc90f6695d138059b6f2f846ebd259af
4
+ data.tar.gz: 73cb51f7bd299ed33593f69e9490abdad55a088104be2d5e107fce15e68348e8
5
5
  SHA512:
6
- metadata.gz: 0f437c717a7468c0eb5fd4fa923f8a0f20602a6aba8ce81e547b4624ed284ea231bd1fa18d099cb03b004f19dd5402784f0d65ffe8144d40cf1b0d8681dc2758
7
- data.tar.gz: 0c658e46d91cd57744b82b82ed5f3174efb32ced0bb93f544c52eae34e586dd04542ae41072eef7acc58e1e854cf8d6cd98af5b295dd30a182ad50fa49a5a45a
6
+ metadata.gz: d383371857cf9bb10b4e5341b0998646c83c572a14bbffe7a4ac5e1596c7e56985e4c4f82d3637a9590a934455bbf3a32a75fd5341de9d2ac425f3371617c2f2
7
+ data.tar.gz: cdff4ee4abf152bfe93ad3ba619a9ea12ac6136208a7c1395f4735660d39a0cdb2d578840fb3d5b6469f0521ce8f478cd976384319b8ef7d73ce0a62c5db0588
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)
@@ -24,6 +38,7 @@ def to_variant(raw_variant)
24
38
  {
25
39
  name: raw_variant[:name],
26
40
  enabled: raw_variant[:enabled],
41
+ feature_enabled: raw_variant[:featureEnabled],
27
42
  payload: payload,
28
43
  }
29
44
  end
@@ -131,6 +131,7 @@ RSpec.describe 'Client Specification' do
131
131
  expect(result[:name]).to eq(expected_result[:name])
132
132
  expect(result[:payload]).to eq(expected_result[:payload])
133
133
  expect(result[:enabled]).to eq(expected_result[:enabled])
134
+ expect(result[:feature_enabled]).to eq(expected_result[:feature_enabled])
134
135
  end
135
136
  end
136
137
  end
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.14
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