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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lastpass-ssh +2 -8
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d13dd4642739bcc639f93c14fad9cec43ba92d89
4
- data.tar.gz: 6184216563329b4f8411ab8d94c3fa260d77c4ec
3
+ metadata.gz: 0fd57a79dd05753c809aa0cb49f6d69dcd785829
4
+ data.tar.gz: f7b99f723ace54b12a6077beb85061bff42b9f61
5
5
  SHA512:
6
- metadata.gz: e963d8a0721eba4af485a28d22509819c99d289fdbfa6b8ec9f50d0ffc87aa24e3cf4cce5e56e064dbf1e2195cc66f21204a5aaa2fcb124de0b452e5a17879ef
7
- data.tar.gz: '039c4b1b96952cb0cabb03228cae0d54e476885a42da6484bb368d85ea516b2c19b66cbd6e90921bf26627cdf5bbfc310e79438f1c6fe3447cd9f4962f0e6587'
6
+ metadata.gz: 7cd3d6842c5526c12dda3f9e2106870fe0ceb5270e9e2bda54cc7a049e36c02440bd3d43860f57d89078a3536312c575378b3234bad09133c1c1a832ff2a35f5
7
+ data.tar.gz: 3cac5f5f4e82fb1ac4077b77f77315a9f23e886ad411792b4a3f8b091ab631712ab704be393e8f9f8f1b5fb35b8339598f135d47792286d5161f67214ebdc852
@@ -12,13 +12,7 @@ require 'optparse'
12
12
 
13
13
  fn_abs = File.absolute_path($0)
14
14
 
15
- lpass_exists = false
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.3
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-03-05 00:00:00.000000000 Z
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.5.1
41
+ rubygems_version: 2.6.8
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Use LastPass for SSH key passphrases