lastpass-ssh 1.0.0 → 1.0.2

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 +8 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbba1f6971c4b5a01812a7dc5beb53c50ca9a51a
4
- data.tar.gz: f95ba51fd48e9089037acc6caa9186453ff80eb7
3
+ metadata.gz: 0a68fccb780f3e4a90c4f50e100c14d83045bb83
4
+ data.tar.gz: 3aeb30a34ba2fee46696924eda2049c478637f37
5
5
  SHA512:
6
- metadata.gz: d228120fd725cc636f6b2a9badfa1f6c6c022401b9ade2ad09f4ed08cb9b33646a4c59f231a35570350b0ef087afb0fbc5f507333e205f0730319fad56952f96
7
- data.tar.gz: 2d3a8d13e12f480559ed9d6a2f2ca0aa971c63adc0e68063ff5a7fefea57e6f24aa7a60309a7d0ee94a023093967c2a6ffe8ef6c1f2c2c51649d0899dbdc24fe
6
+ metadata.gz: 3b0f5be5c43948f89d3b04b409da2230f5fa9a5d56ab7f432d7f738bae5836ae1d4661d3999d29fa3802e451d4ad03a86332016b541b335fccd6f4607a2780c2
7
+ data.tar.gz: 15b96ac899fb4d38ca637898c12d6ae6cb869808f465d31e1ee71fe72dc5e925f3b17b27d509366d816a04d120421dceaffc8d1a8b3b58d6231d62bd46bf98de
@@ -12,7 +12,14 @@ require 'optparse'
12
12
 
13
13
  fn_abs = File.absolute_path($0)
14
14
 
15
- if not `lpass --version` =~ /LastPass/ then
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
+
22
+ if not lpass_exists then
16
23
  print "You don't have LastPass CLI installed. Do:\n"
17
24
  print "brew install lpass # on Mac\n"
18
25
  print "apt-get install lpass # on Ubuntu\n"
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.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojciech A. Koszek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-09-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: lastpass-cli helps with storing SSH passphrases in LastPass
14
14
  email: wojciech@koszek.com
@@ -25,7 +25,7 @@ metadata: {}
25
25
  post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
- - lib
28
+ - .
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '>='