vault-key 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/native/vault-key.darwin.h +1 -5
- data/lib/vault-key.rb +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a996571d84fab119d80cca2b23367950d440d89d
|
4
|
+
data.tar.gz: 2ab68af47cd1d62fb0b94999272894401228178a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 994e4fcbb27bc99cca1932c3c93e27b8a8519ffdbee46d8055bdfbb9c28c772d69eb9bf262c26d73073a2e2f8de4585809212e4cec311f010f254858efa24b57
|
7
|
+
data.tar.gz: 67f6159c66e381abe71fc892818de8d0d3abac328f2e0bc25aa123a4aadabb6c6a76266563fc02c498077b6e090d93ca533d1b706e9625617398a395fae403c6
|
@@ -3,16 +3,14 @@
|
|
3
3
|
/* package command-line-arguments */
|
4
4
|
|
5
5
|
|
6
|
-
#line 1 "cgo-builtin-
|
6
|
+
#line 1 "cgo-builtin-prolog"
|
7
7
|
|
8
8
|
#include <stddef.h> /* for ptrdiff_t below */
|
9
9
|
|
10
10
|
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
11
11
|
#define GO_CGO_EXPORT_PROLOGUE_H
|
12
12
|
|
13
|
-
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
14
13
|
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
15
|
-
#endif
|
16
14
|
|
17
15
|
#endif
|
18
16
|
|
@@ -52,9 +50,7 @@ typedef double _Complex GoComplex128;
|
|
52
50
|
*/
|
53
51
|
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
|
54
52
|
|
55
|
-
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
56
53
|
typedef _GoString_ GoString;
|
57
|
-
#endif
|
58
54
|
typedef void *GoMap;
|
59
55
|
typedef void *GoChan;
|
60
56
|
typedef struct { void *t; void *v; } GoInterface;
|
data/lib/vault-key.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
require 'ffi'
|
2
|
-
require 'json'
|
3
|
-
require 'OS'
|
1
|
+
require 'ffi'
|
2
|
+
require 'json'
|
3
|
+
require 'OS'
|
4
4
|
|
5
|
-
module VaultNative
|
6
|
-
extend FFI::Library
|
5
|
+
module VaultNative
|
6
|
+
extend FFI::Library
|
7
7
|
|
8
|
-
sharedObjectPath = OS.linux? ? "./native/vault-key.linux.so" : "./native/vault-key.darwin.so"
|
8
|
+
sharedObjectPath = OS.linux? ? "./native/vault-key.linux.so" : "./native/vault-key.darwin.so"
|
9
9
|
|
10
|
-
ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
|
11
|
-
attach_function :GetSecrets, [:string], :string
|
12
|
-
end
|
10
|
+
ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
|
11
|
+
attach_function :GetSecrets, [:string], :string
|
12
|
+
end
|
13
13
|
|
14
|
-
class VaultKey
|
15
|
-
def self.getSecrets(secrets)
|
16
|
-
secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
|
17
|
-
JSON.parse(secretsData)
|
18
|
-
end
|
14
|
+
class VaultKey
|
15
|
+
def self.getSecrets(secrets)
|
16
|
+
secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
|
17
|
+
JSON.parse(secretsData)
|
18
|
+
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TeamSnap SREs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|