vault-key 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: ec42e57b2ea6e4d7a5688a76dc33d2f343647a1b
4
- data.tar.gz: 3a1754b6a2a741b310ed3c06cba783df19246b14
3
+ metadata.gz: a996571d84fab119d80cca2b23367950d440d89d
4
+ data.tar.gz: 2ab68af47cd1d62fb0b94999272894401228178a
5
5
  SHA512:
6
- metadata.gz: 66cf9f39a67d00f4d875d18676a4fe724f1d09ee54ce297914ad48b42d3df33ce363afda5b894c591607df93bc8c2e80ce2b1f5184bdc72936206ce250c96854
7
- data.tar.gz: c6bc2a25024c487af8ed868f85e1834e528308b9c956410e2c177b7dadd3b3c960d3b2de7973cb44a397e2ad80c33e14953cfa531a4bc5b24df031fe53bf579b
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-export-prolog"
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2019-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi