kbsecret 0.9.7 → 0.9.8

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: 9587a363f18b72642c5b4c800fbc2ca633aefc44
4
- data.tar.gz: fdc39608cbf8be25cd8820855d68d112bee90d60
3
+ metadata.gz: d72bbcad684c7ccd1d0d11b1e6062391c26057fb
4
+ data.tar.gz: 02df15f9ca2451eb178d0210bbfa32033961164d
5
5
  SHA512:
6
- metadata.gz: d4a0a453082f753c2dd081d08f33ad9f7146722dfadc5178fa41bd498a3e0121f26c6f7b535423e0f3ad239e776263397a6807cff937d1099ebb7c8d75fbec53
7
- data.tar.gz: 6255b78cdc2655a2be5cf43eacad88e34bb4454d2c9ae767016fec93b64df2cdd63355f494ac3d9fd6f30df2d39997db6b1c634e7a6500206fac973223ce91e3
6
+ metadata.gz: b02f37c319a8992d2e1f25e5f469ae69bfc62866987c21f077dccbe7d35a76f3e98663a7b9b3777e1cc33a4d11dcbd52cdb91ec40900c20826292b79e60814d4
7
+ data.tar.gz: e76940853bd57798c6db1f0af8c4245633cd5542d6b2586000d995641f7ab2e81a82534134dead362893c74a8343df29d33513a40ea93f969ae8ff857b68855f
@@ -31,6 +31,12 @@ module KBSecret
31
31
  def to_export
32
32
  "export #{to_assignment}"
33
33
  end
34
+
35
+ # Load this record's environment variable into the environment of the current process.
36
+ # @return [void]
37
+ def load!
38
+ ENV[variable] = value
39
+ end
34
40
  end
35
41
  end
36
42
  end
@@ -16,6 +16,13 @@ module KBSecret
16
16
  # @return [String] the fully-qualified path of the session
17
17
  attr_reader :path
18
18
 
19
+ # @param label [String, Symbol] the label of the session to initialize
20
+ # @return [Session]
21
+ # @see #initialize
22
+ def self.[](label)
23
+ new(label: label)
24
+ end
25
+
19
26
  # @param label [String, Symbol] the label of the session to initialize
20
27
  # @raise [Exceptions::SessionLoadError] if the session has no users or any invalid Keybase users
21
28
  # @note This does not *create* a new session, but loads one already
data/lib/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module KBSecret
4
4
  # kbsecret's current version
5
- VERSION = "0.9.7"
5
+ VERSION = "0.9.8"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kbsecret
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba