rcredstash 0.10.0 → 0.11.0

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
2
  SHA1:
3
- metadata.gz: d3b173bb81e817e187532b73b3334343a0c6b84e
4
- data.tar.gz: 723f0470d60d04c53618eadb567938c664409d59
3
+ metadata.gz: eeaae118cd72f983efdda60c597d703f92b543d1
4
+ data.tar.gz: dcb5230fb97ac4069813799f07d3ed46c4877f4a
5
5
  SHA512:
6
- metadata.gz: dfe9d523ceb7e2d33a43a3a0fd8b274ccf9fc184d28c2079363a1054ce9f40369ec54be15dcce1a07fc6ee40d17d89d061c66adc0fbba398dc8da6b7ab3c1645
7
- data.tar.gz: b8165568ef2d1d0e15059cb3420d31b4cee7973d5c57d5427eba18f21ff8091e8f27dfc1ff09f96efc6078c92b125251e4d57d4facc19da02a3365b2c5a3b866
6
+ metadata.gz: 410adb6020eec4fbc8da75758f66fd1a6edcf85ab217fefb833a98a9d9e5093149dccdeb610b6cf91e218b8a29aff414eddbf64258df6aa0c5eb2cb03d7ac321
7
+ data.tar.gz: 57547c750cad85fd6af72859ed103dcb3d8f3bf29a17388f4125d0e23dc83354a092f0a583904ad72f810d455ee7c44d6bda82be8577a0ee5c8d4fabfb6ced55
@@ -8,9 +8,11 @@ module CredStash
8
8
  end
9
9
 
10
10
  desc "put [key name]", "Put a value for key name"
11
+ option :kms_key_id , :desc => "the KMS key-id of the master key to use. Defaults to alias/credstash"
11
12
  def put(name)
12
13
  value = Readline.readline("secret value> ")
13
- CredStash.put(name, value)
14
+ kms_key_id = options[:kms_key_id] if options[:kms_key_id]
15
+ CredStash.put(name, value, kms_key_id: kms_key_id)
14
16
  puts "#{name} has stored."
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module CredStash
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcredstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - adorechic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-06 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.6.10
133
+ rubygems_version: 2.6.13
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A Ruby port of CredStash