yggdrasil-engine 0.0.5.beta.12-arm64-darwin → 0.0.5.beta.14-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: d4728f2a970eb932a99a033ef176b5167433ceae18a8dcf4bb2aad9902c98b0b
4
- data.tar.gz: e231c66aaf2ef3a66a71d6168981c58641d5eea0646e8808a11575c7b562e6a5
3
+ metadata.gz: c44750ce7aaceb7f971a1483823f0cc536a70a0aadc3ae9605b9a8c2cb253151
4
+ data.tar.gz: 61e0c6df20da0c1494f0b9956d264ff144ddbc1f9aa5d96bd9a3733e988521ce
5
5
  SHA512:
6
- metadata.gz: 7c31f155fdfcd8f2392ca5758f70e4fd7643c7d8761ff3c93227d9e951b0abc74e86e5b78a4606ee94290b00676513d5c99c281d4fb9af3670bfa2318e92ad6b
7
- data.tar.gz: b6e4ae3e11d5ce1a5b369031e6f9b7bd29578c72ed5c3763ef1001f8eeb0f4a98695d9598d1556a2e09d296dd867a8f269c55ec3976d650b2aec64953a7c9c2e
6
+ metadata.gz: 753d3fa4f7d284811d3f6259c80c0b4501ebb6190ec1806a171306b60cf8628ce900b075a3eb61684620fa412be90cb22fedd1c8d069ef158399e09f66e918dc
7
+ data.tar.gz: 2a00c03971552713719148e59f3ead78d071c2f2523abdac3e1c34dcbeb15cf2bfd97cdeea6b2f145f913fa1ca1df4e59f6fc60e22f117ec4fe62a990614b1b3
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: 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