secrets_cli 1.3.0 → 1.3.1

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: 00951547d2dda6d4f3a1a61dbba83237e7826606
4
- data.tar.gz: f2fb5b10a25cff6f3c776eef273bf3a710a70a11
3
+ metadata.gz: c91a4c268a6cc654690897b563f08c7ffa241952
4
+ data.tar.gz: 9ae33aced23a9d4e4fe880a6731155518dd64f13
5
5
  SHA512:
6
- metadata.gz: 8b6db4938bb4ee28d7326946cf477c828ffd0d8e64fc53f2e7d94c7be454758ab24924c1b54a99311495c38ccbf87bc35fe2aeebfb6bee6a8a22f72815f10cf4
7
- data.tar.gz: 36ab553edb6ff52920d530d7c9dc669047a0a0d436bb807d11418031a205b8339fd736e419322ab4e35906b7e324d1e0a208e9152e2e699d35167a8111355a10
6
+ metadata.gz: 2ee3f823782e72b631a53b3bffdad7c801d720bc068c568eddc157d498c91b00501e6bec62987a06e2b8884a9126bc73d746b0373b35475e7ed29496ef0cbe60
7
+ data.tar.gz: e0aa601168a7efe0be0ce8c4392912dd8195212c29c3d2119a72f5ebae95a89da31881359d331079f04060449aa82910049bf2fcebf71e52c393f664c6cc3dbc
data/lib/secrets_cli.rb CHANGED
@@ -20,6 +20,6 @@ require 'secrets_cli/version'
20
20
  # require 'pry'
21
21
 
22
22
  module SecretsCli
23
- SECRETS_CONFIG_FILE = '.secrets'
23
+ SECRETS_CONFIG_FILE = '.secrets'.freeze
24
24
  SECRETS_FIELD = :secrets
25
25
  end
@@ -19,11 +19,11 @@ module SecretsCli
19
19
  def command
20
20
  case auth_method
21
21
  when 'github'
22
- ::Vault.auth.github(auth_token).auth[:policies]
22
+ ::Vault.auth.github(auth_token).auth.policies
23
23
  when 'token'
24
- ::Vault.auth.token(auth_token).auth[:policies]
24
+ ::Vault.auth.token(auth_token).auth.policies
25
25
  when 'app_id'
26
- ::Vault.auth.app_id(auth_app_id, auth_user_id).auth[:policies]
26
+ ::Vault.auth.app_id(auth_app_id, auth_user_id).auth.policies
27
27
  else
28
28
  error! "Unknown auth method #{auth_method}"
29
29
  end
@@ -12,6 +12,7 @@ module SecretsCli
12
12
  def call
13
13
  options.verbose ? prompt.ok(command) : command
14
14
  rescue => exception
15
+ binding.pry
15
16
  error!(exception.message)
16
17
  end
17
18
 
@@ -1,3 +1,3 @@
1
1
  module SecretsCli
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
data/secrets_cli.gemspec CHANGED
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_runtime_dependency 'commander'
35
35
  spec.add_runtime_dependency 'tty-prompt', '~> 0.4.0'
36
- spec.add_runtime_dependency 'vault'
36
+ spec.add_runtime_dependency 'vault', '~> 0.5.0'
37
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secrets_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-06 00:00:00.000000000 Z
11
+ date: 2016-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: vault
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 0.5.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 0.5.0
111
111
  description:
112
112
  email:
113
113
  - d4be4st@gmail.com