itamae-secrets 0.2.2 → 0.2.3

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: 8656276685eea20659eb314a27fdff79da195862
4
- data.tar.gz: a07f579da8ef8d9c0207043b764c0647f02acd9a
3
+ metadata.gz: 2103cd270acd4e93ec26ea0f62294996520632ad
4
+ data.tar.gz: f199bbdcfbd063ccbe4b6819ebb0dc2784e666b6
5
5
  SHA512:
6
- metadata.gz: b4fb7bba48ce206c596d3b70246286b3c9db2d10279f8216edf0933af5745bb0deb8c16bd09cc0275462bcac3fbfec81902774df23e5d21e2cd9f0988d10bef4
7
- data.tar.gz: 102cb18d866a671fd348a4398fa9da2f8d94d19ec6ec5b06d443b22c793ddf35e150c4f31b60d964cdc3a039469b52b3823a9dc1f7be83ecffa3e18fc7365c9f
6
+ metadata.gz: 2a04b6956b92f9ca9525e7ccb796167024906757e586b31194403184e76e1193a5591753f0a1376273565fd8507f917e1dc4375698995a9d3652ecb80d9c381f
7
+ data.tar.gz: 1b88fd8cf7cb0cd7afc2415bc805f46af495735dd00251e9472485a8bb8e0ea62fbf9d49be02554efc09994f88630fb31e5d1fde1fa5c7b12a02cadc08a55850
@@ -24,7 +24,7 @@ module Itamae
24
24
  when 'aes-random'
25
25
  AesKey.generate_random(name)
26
26
  when 'aes-passphrase'
27
- passphrase = ask_noecho('Passphrase:', true)
27
+ passphrase = ask_noecho('Passphrase:', $stdin.tty?)
28
28
  AesKey.generate_pkcs5(name, passphrase)
29
29
  else
30
30
  raise ArgumentError, "Unknown method: #{options[:method] || config['generate_method']}"
@@ -1,5 +1,5 @@
1
1
  module Itamae
2
2
  module Secrets
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itamae-secrets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shota Fukumori (sora_h)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor