vault-key 0.0.2 → 0.0.7

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
- SHA1:
3
- metadata.gz: a996571d84fab119d80cca2b23367950d440d89d
4
- data.tar.gz: 2ab68af47cd1d62fb0b94999272894401228178a
2
+ SHA256:
3
+ metadata.gz: 98c466e8068c8975e1f157266874149f36595be9e16d6627f1a755b09f8a7e19
4
+ data.tar.gz: 7fe57a0311f9046bb100046a917dda47b016b46a4b4e31fe5b2e1c5069bf91cc
5
5
  SHA512:
6
- metadata.gz: 994e4fcbb27bc99cca1932c3c93e27b8a8519ffdbee46d8055bdfbb9c28c772d69eb9bf262c26d73073a2e2f8de4585809212e4cec311f010f254858efa24b57
7
- data.tar.gz: 67f6159c66e381abe71fc892818de8d0d3abac328f2e0bc25aa123a4aadabb6c6a76266563fc02c498077b6e090d93ca533d1b706e9625617398a395fae403c6
6
+ metadata.gz: 951024d882d4027aa13a328f69e8c01c0e96174811078ba3714439de2a89ee5eac03abfad8696a1d141064051b88ee41bf9cc7be41dc4824f73e0ce1a3282ca5
7
+ data.tar.gz: bb7d92636788b0e5c6d4b921e2cdea55837d592c84cf3daf06e8dc87dbfb58025d63d518145ed8e6be2b2c036fff45d4a97d705bde71b089e524500e0bc3708b
File without changes
Binary file
@@ -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;
Binary file
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,57 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vault-key
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.7
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: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.11.1
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.11.1
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: os
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.1
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.1
40
+ version: '1.0'
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.linux.h
49
- - lib/vault-key.rb
50
- 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: ''
51
53
  licenses:
52
54
  - MIT
53
55
  metadata: {}
54
- post_install_message:
56
+ post_install_message:
55
57
  rdoc_options: []
56
58
  require_paths:
57
59
  - lib
@@ -66,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
68
  - !ruby/object:Gem::Version
67
69
  version: '0'
68
70
  requirements: []
69
- rubyforge_project:
70
- rubygems_version: 2.5.2.3
71
- signing_key:
71
+ rubygems_version: 3.0.3
72
+ signing_key:
72
73
  specification_version: 4
73
74
  summary: Vault with GCP auth
74
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