minke 1.5.4 → 1.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODUyOGRiMTkyZDQ5ZWM0OTE4MTI4NmJhZGZhNGZjZDlhZTVhYTJkYw==
4
+ NjcyMjlhZjBiMjVmYTRmZDQwMTRjMGM4Yjc1ODk4NDVjOGY2ZjBmZg==
5
5
  data.tar.gz: !binary |-
6
- YWU4OGM1YTE3NzY4NjE5YTczYTZmYjdjNGUyM2Q1NTBjNDVkMzI2Ng==
6
+ M2M3MjYyN2RkNWRiOTFmMzRlYzJlMzQ1YWIyNDBhNjM0OTEzNmE4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmE0ZGU4ZDI5NGE0ZjMzN2ZhYzllZTgyZmFiYzY0N2I0MzlkMTc0NTc0MWQ3
10
- MjkzZWEwZTk5YThkMzZhNGI5YWM1ODg2MjI4N2M0MzBkNzQzMzdhMWQxOWNl
11
- ZmQ3Y2I1ODc4NzkxNThkNmI0OTM5ODVkZmRlMDVlNWViMjczMTI=
9
+ NDE5ZDUzNTNhZmQyZDNmNzdmMzk3ZWYxMWUwZjJjMTU1M2FlNDI3N2Q1Njli
10
+ ODAwMThiNTllM2E0NzhmZWUzZjA3ZDA1ZDg4MTY1YzlkNDEwYmIxOGU2ZWI1
11
+ YTcyZWVmNWFjNjg2YmM4OTU4YjhlZjdmM2ZhZTliY2NjNTgzN2Y=
12
12
  data.tar.gz: !binary |-
13
- YzNkZDEzYjhkN2UyYTA5Y2U5ZGQ3MjFkZDk5MDZhOTU3MzI1NjFiY2YxMDc0
14
- ZjYwOTQyZmQxMTJmYzgwMzgxMGIxNDdlM2MyYmRlOGViNjhiOTc3OTc0ZTk2
15
- ZjljZGJmNGE0YzM1MmVhNWNjNmNiYzk2ODBmZmJhNDk2NGYzOTU=
13
+ MjNhMDg2NWUzYmE5YTc3ZTkyYjc5YTdlZWRjNDIwMmFjN2MyOWQ1YTMwNTI3
14
+ Nzk4ODA3YzYxMDljODU1OGNmODdlNjk3M2JiMDk2NDNjYjUxYTI1M2JlNjUy
15
+ NTk0MzM0ZmU5MDRlMzI4NTEzYThhODA0NjNhNTU5NmJhZTdhNDI=
@@ -91,15 +91,17 @@ module Minke
91
91
  end
92
92
 
93
93
  def read_secure hash
94
+ puts hash.inspect
94
95
  key_path = ENV['SSL_KEY_PATH'].to_s == '' ? "#{ENV['HOME']}/.ssh" : ENV['SSL_KEY_PATH']
95
96
 
96
-
97
97
  fingerprint = hash['secure']['fingerprint']
98
98
  value = hash['secure']['value']
99
99
 
100
100
  locator = Minke::Encryption::KeyLocator.new key_path
101
101
  key_path = locator.locate_key fingerprint
102
102
 
103
+ puts key_path
104
+
103
105
  encrypt = Minke::Encryption::Encryption.new key_path
104
106
  encrypt.decrypt_string value
105
107
  end
@@ -13,9 +13,11 @@ module Minke
13
13
 
14
14
  return full_path if key.fingerprint == fingerprint
15
15
  rescue
16
-
16
+
17
17
  end
18
18
  end
19
+
20
+ throw "Unable to find SSL key matching fingerprint if your SSL keys are not in ~/.ssh you can set the environment variable SSL_KEY_PATH to point to the correct directory."
19
21
  end
20
22
  end
21
23
  end
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.5.4"
2
+ VERSION = "1.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson