yggdrasil-engine 0.0.5.beta.12-universal-java-17 → 0.0.5.beta.14-universal-java-17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b156c2eed6a94b29f1ca91561722bade1af9c4ad48638f0fa9e819f7daca8daf
4
- data.tar.gz: 8ecd029b57324dfb93d9b30a3df7407524a8a8f99aa2cbfd5922a2fbede4898d
3
+ metadata.gz: 1e42ae605dc0b9c8ebe15974ea00d35fa2367724cf3cb011356ab0e46dd92d77
4
+ data.tar.gz: feb76bd62094eff1e26e4d6d24153785ede32ba913770af2d254d3d131831b0c
5
5
  SHA512:
6
- metadata.gz: 5dfa88924113053ec98f7d381ff23c96be5ddc8d3615d72d02211a522a4714799194209b4c56b9ed125df5cbaaa61ec93dec20cf6048190ba568c722dc7686ad
7
- data.tar.gz: 64bdd19b4e4740a5f201abb21f875377a1a9d6d6a1737e1833c1c763ce8daf397d245d57e6424078694b42c2578e972f995e996c620c8e55292f39a7a4a8e162
6
+ metadata.gz: 99ed433227ceb6dd6aa36a8d533ab055429bece805de4ab358aac4640664c728f0c874ddcd2206198139954d82e5164a7adff9d2871b8e3fc944e24f006da627
7
+ data.tar.gz: 108a11f8f92299c5056d344ca95b8083607c793506df20f4ad27ac2a33ac95e26b257a8be77cf06c391f20edae7dcc47c2f0bd6b7ee219786808f48a2e560825
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)
@@ -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: universal-java-17
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