yggdrasil-engine 0.0.5.beta.12-universal-java-1.8 → 0.0.5.beta.14-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: 3128ab5dd7a9f2d62bfb52eea63b20eab436b4ab7e519243c377854b7f225ba7
4
- data.tar.gz: 46451c33b79255e18ea8b0648d8b61316a7feef90689d746f916a18b37cf187e
3
+ metadata.gz: 8aebbbd26821d4c35ba674c332c60ea2bfe5135dce60b270ff2c83a944bb475b
4
+ data.tar.gz: efee68697a06b5d587532528d5a414b0060ab486687f9c9310d8787daaed0eb1
5
5
  SHA512:
6
- metadata.gz: 5fb7f3f8f69a56dd908e4b17c021f8a63f7c43edc012f9e1070762ac7ba10b102f284cb70ebf8b51a2d2ca418dc4b94d7c6e2edd639c97205ab047dd574c86aa
7
- data.tar.gz: '058bccace3d705418a3f1c6a2b1a8fd7b746c97c8765f73a3fb34a5b7134f0114532005ad6eecaf78e439fbdfac3af1db1f00bcf78b2641397f585560692bbfd'
6
+ metadata.gz: 40d3726164281f303d1bc13ff2f4c7743c190e9cb5e88e5023006230038d51444a78a68fe1f0d8728a3f45f757989f047d17c2d6051da4e549d236ddf5116c2f
7
+ data.tar.gz: b9125796c1a796aed78ca92cab0b2b5611eb4d7f92c19b26618b45cd27965513bfc5f85ff71a31bce68fe283af3a4c7b18bfeee1fc4d3340c790a583c755fa81
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-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