vault-key 0.0.3 → 0.0.4

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
- SHA1:
3
- metadata.gz: 20d6b63439b0569d1e7ce99b41b593bbb6da8616
4
- data.tar.gz: 39e37f604aeda8867d1c7a956198a2c27511312c
2
+ SHA256:
3
+ metadata.gz: a411d09abcfb58eb44c7189c122597ef06bef755de9ac86bd3acbd3db057e9be
4
+ data.tar.gz: 3cffea918692d7cbab625661e6c7feeab50b6f951fdd8050566b5d0d445788a1
5
5
  SHA512:
6
- metadata.gz: b6a22a3ad6eb3612a2a10167cef5512f39ce083e5cf1c45e0a02945bf66d41802607d0d0e1234cead688c94014ee9f31bf4da095599870066b381cf08de0f220
7
- data.tar.gz: 222ef7a776f17ce496448f45ed4d17fa641a228004d5f996fad66d90e5693cabbf9507b21504d0cf6430fdf1e9fe9b33afb912b34d1175ffe6f18442b116e7b7
6
+ metadata.gz: 503d9ad6f6d76d07782a611bac824518d8bd11a88c661e940837dca5a0b60877eb84e0a312e004ed557163f56a426bb0e51cfbd5cf5bce803ccf81f3e0c1884e
7
+ data.tar.gz: cb889e335ce95fe88a78fec7d541a7d2ab3871f2d7b26f78ea7d803082c1c19b9596cd9c0da3975d391ed7b12853a37c2492e858635d53010ea6f02cfb830c7b
File without changes
@@ -3,14 +3,16 @@
3
3
  /* package command-line-arguments */
4
4
 
5
5
 
6
- #line 1 "cgo-builtin-prolog"
6
+ #line 1 "cgo-builtin-export-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
13
14
  typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
14
16
 
15
17
  #endif
16
18
 
@@ -50,7 +52,9 @@ typedef double _Complex GoComplex128;
50
52
  */
51
53
  typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
52
54
 
55
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
53
56
  typedef _GoString_ GoString;
57
+ #endif
54
58
  typedef void *GoMap;
55
59
  typedef void *GoChan;
56
60
  typedef struct { void *t; void *v; } GoInterface;
data/lib/vault.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'ffi'
2
+ require 'json'
3
+ require 'OS'
4
+
5
+ module VaultNative
6
+ extend FFI::Library
7
+
8
+ sharedObjectPath = OS.linux? ? "./native/vault.linux.so" : "./native/vault.darwin.so"
9
+
10
+ ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
11
+ attach_function :GetSecrets, [:string], :string
12
+ end
13
+
14
+ class Vault
15
+ def self.getSecrets(secrets)
16
+ secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
17
+ JSON.parse(secretsData)
18
+ end
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TeamSnap SREs
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-28 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -39,21 +39,21 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.1
41
41
  description: A gem to integrate Vault with GCP auth
42
- email: sre@teamsnap.com
42
+ email: ''
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - lib/native/vault-key.darwin.h
48
- - lib/native/vault-key.darwin.so
49
- - lib/native/vault-key.linux.h
50
- - lib/native/vault-key.linux.so
51
- - lib/vault-key.rb
52
- homepage: https://rubygems.org/gems/vault-key
47
+ - lib/native/vault.darwin.h
48
+ - lib/native/vault.darwin.so
49
+ - lib/native/vault.linux.h
50
+ - lib/native/vault.linux.so
51
+ - lib/vault.rb
52
+ homepage: ''
53
53
  licenses:
54
54
  - MIT
55
55
  metadata: {}
56
- post_install_message:
56
+ post_install_message:
57
57
  rdoc_options: []
58
58
  require_paths:
59
59
  - lib
@@ -68,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubyforge_project:
72
- rubygems_version: 2.5.2.3
73
- signing_key:
71
+ rubygems_version: 3.1.4
72
+ signing_key:
74
73
  specification_version: 4
75
74
  summary: Vault with GCP auth
76
75
  test_files: []
data/lib/vault-key.rb DELETED
@@ -1,19 +0,0 @@
1
- require 'ffi'
2
- require 'json'
3
- require 'OS'
4
-
5
- module VaultNative
6
- extend FFI::Library
7
-
8
- sharedObjectPath = OS.linux? ? "./native/vault-key.linux.so" : "./native/vault-key.darwin.so"
9
-
10
- ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
11
- attach_function :GetSecrets, [:string], :string
12
- end
13
-
14
- class VaultKey
15
- def self.getSecrets(secrets)
16
- secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
17
- JSON.parse(secretsData)
18
- end
19
- end