asherah 0.4.1-aarch64-linux → 0.4.2-aarch64-linux
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 +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/ext/asherah/checksums.yml +5 -5
- data/lib/asherah/native/libasherah-arm64.so +0 -0
- data/lib/asherah/version.rb +1 -1
- data/lib/asherah.rb +17 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1394b4a7e3dddc4a0f518283a19364ac706045ffcee1872ebd1e47f47a921472
|
4
|
+
data.tar.gz: 44fed2544902d4bc4d9d9e3f284aad02c9b217436757f6543a48d83ce1f4fe50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e9100c955801c81104dde71482a0e08b8fa4398a25a66a68e7cf9733743d2b17b5da2df6874c37fd01acb981bfba885be57537e9d25a13fc308f16ab75f95e5
|
7
|
+
data.tar.gz: 8e1a80f83649ae975a7fb0bdd2dd6a46477b69b5adaadc7d16778f06b7df1ad8d26912dd0db71f09899ed02a4be3e7f70bd235b3bb701df1c1c2ae27698be24f
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/ext/asherah/checksums.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
version: v0.4.
|
2
|
-
libasherah-arm64.so:
|
3
|
-
libasherah-x64.so:
|
4
|
-
libasherah-arm64.dylib:
|
5
|
-
libasherah-x64.dylib:
|
1
|
+
version: v0.4.15
|
2
|
+
libasherah-arm64.so: 43122390d0f851ac67bb197d688dd040832292e79675e4a9c9268d4ef5d3aef7
|
3
|
+
libasherah-x64.so: 3d29f32f6560858c54dc3cc87fa59347f2981a0e206849f0f3ab9a905de02242
|
4
|
+
libasherah-arm64.dylib: e7d64c2857c120b065c1761445d797f6fd5f6696c26676857ce327a772d6c025
|
5
|
+
libasherah-x64.dylib: 331ea09b160de80a3e40aeeb737779da3c043e2476f7cbfe4b83cf55fccdf0c7
|
Binary file
|
data/lib/asherah/version.rb
CHANGED
data/lib/asherah.rb
CHANGED
@@ -11,6 +11,7 @@ module Asherah
|
|
11
11
|
|
12
12
|
LIB_ROOT_PATH = File.expand_path('asherah/native', __dir__)
|
13
13
|
load_library(LIB_ROOT_PATH, 'libasherah', [
|
14
|
+
[:SetEnv, [:pointer], :int32],
|
14
15
|
[:SetupJson, [:pointer], :int32],
|
15
16
|
[:EncryptToJson, [:pointer, :pointer, :pointer], :int32],
|
16
17
|
[:DecryptFromJson, [:pointer, :pointer, :pointer], :int32],
|
@@ -22,6 +23,22 @@ module Asherah
|
|
22
23
|
BASE64_OVERHEAD = 1.34
|
23
24
|
|
24
25
|
class << self
|
26
|
+
# Set environment variables needed by Asherah dependencies for when
|
27
|
+
# Go os.Getenv() doesn't see variables set by C.setenv().
|
28
|
+
# References:
|
29
|
+
# https://github.com/golang/go/wiki/cgo#environmental-variables
|
30
|
+
# https://github.com/golang/go/issues/44108
|
31
|
+
#
|
32
|
+
# @yield [Config]
|
33
|
+
# @param env [Hash], Key-value pairs to set Asherah ENV
|
34
|
+
# @return [void]
|
35
|
+
def set_env(env = {})
|
36
|
+
env_buffer = string_to_cbuffer(env.to_json)
|
37
|
+
|
38
|
+
result = SetEnv(env_buffer)
|
39
|
+
Error.check_result!(result, 'SetEnv failed')
|
40
|
+
end
|
41
|
+
|
25
42
|
# Configures Asherah
|
26
43
|
#
|
27
44
|
# @yield [Config]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asherah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- GoDaddy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cobhan
|