lastpass-ssh 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/lastpass-ssh +2 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fd57a79dd05753c809aa0cb49f6d69dcd785829
|
4
|
+
data.tar.gz: f7b99f723ace54b12a6077beb85061bff42b9f61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cd3d6842c5526c12dda3f9e2106870fe0ceb5270e9e2bda54cc7a049e36c02440bd3d43860f57d89078a3536312c575378b3234bad09133c1c1a832ff2a35f5
|
7
|
+
data.tar.gz: 3cac5f5f4e82fb1ac4077b77f77315a9f23e886ad411792b4a3f8b091ab631712ab704be393e8f9f8f1b5fb35b8339598f135d47792286d5161f67214ebdc852
|
data/bin/lastpass-ssh
CHANGED
@@ -12,13 +12,7 @@ require 'optparse'
|
|
12
12
|
|
13
13
|
fn_abs = File.absolute_path($0)
|
14
14
|
|
15
|
-
lpass_exists =
|
16
|
-
["/usr/bin", "/usr/local/bin"].each do |dir|
|
17
|
-
if File.executable?("#{dir}/lpass") then
|
18
|
-
lpass_exists = true
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
15
|
+
lpass_exists = system("command -v lpass 2>&1 > /dev/null")
|
22
16
|
if not lpass_exists then
|
23
17
|
print "You don't have LastPass CLI installed. Do:\n"
|
24
18
|
print "brew install lpass # on Mac\n"
|
@@ -64,7 +58,7 @@ if ENV["KEY_ID"] then
|
|
64
58
|
else
|
65
59
|
# Lines will be e.g.: 'Secure Notes\SSH/bitbucket [id: 5505843262]'
|
66
60
|
raw_lines = `lpass ls "Secure Notes\\SSH"`
|
67
|
-
lines = raw_lines.split("\n").select { |l| l if l =~ /^Secure/ }
|
61
|
+
lines = raw_lines.split("\n").select { |l| l if l =~ /^Secure/ }[1..-1]
|
68
62
|
|
69
63
|
label_printed = false
|
70
64
|
# Use key's name, make path out of it, attempt to add it by its ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lastpass-ssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wojciech Adam Koszek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: The lastpass-ssh lets you remember SSH passphrases in LastPass
|
14
14
|
email: wojciech@koszek.com
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.
|
41
|
+
rubygems_version: 2.6.8
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Use LastPass for SSH key passphrases
|