ssssh 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ssssh +5 -2
  3. data/lib/ssssh/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d289746c11d4c244840984e0d928bf137009dba2
4
- data.tar.gz: 99f96f098dcbf53c438e5eac1ff9dfbc286e7844
3
+ metadata.gz: d86f0f69324dccca1a583a02dce9a236a0857495
4
+ data.tar.gz: a6b7586228ab38c9982cc4d3774ba5d63467f1f8
5
5
  SHA512:
6
- metadata.gz: ff72a54fd7a523d7d734d2ac4107690fe11dc3a2968970036a6f25f60a24c1f35ce9941d952780a5c4ab57a20353b4065a284c79d6fc5d4ec9e84cb1748edca4
7
- data.tar.gz: ae1c54af71fef0d2ca3de0c387a4503b133cb232c84608392fc9836a209e4fd5fb4ff273ccea6cb6a4a385aaa8aca939cc5a8913b7e868203d8c097b62dfda83
6
+ metadata.gz: c2286d07099cfb4bb4381f357a4e133e0ff44f9b26df2aebd35e54619a958d1e6ead2e281413a90323886b204226b90e8ed2aaa92eebfc15abce41255bc249c0
7
+ data.tar.gz: 509a0b681b545bfdcb97490c2d2b4dac10da1bc7d19d82aaa5ff4da8143f934872921dd9e8701f75f475b1f7bc4e17a157d4be8b87f322c67ac3adede5a8442c
data/bin/ssssh CHANGED
@@ -31,11 +31,15 @@ Clamp do
31
31
 
32
32
  subcommand "encrypt", "Encrypt STDIN" do
33
33
 
34
+ option "--[no-]wrap", :flag, "wrap encrypted data", :default => true
35
+
34
36
  parameter "KEY_ID", "KMS key-id"
35
37
  parameter "[PLAINTEXT]", "plaintext", :default => "STDIN"
36
38
 
37
39
  def execute
38
- puts Base64.encode64(encrypt(plaintext, key_id))
40
+ result = Base64.encode64(encrypt(plaintext, key_id))
41
+ result.gsub!("\n", "") unless wrap?
42
+ puts result
39
43
  end
40
44
 
41
45
  private
@@ -75,7 +79,6 @@ Clamp do
75
79
  end
76
80
 
77
81
  def aws_config
78
- # signal_error "No --region specified" unless region
79
82
  {
80
83
  :access_key_id => access_key_id,
81
84
  :secret_access_key => secret_access_key,
@@ -1,3 +1,3 @@
1
1
  module Ssssh
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-02 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core