pipe2me-client 0.2.6 → 0.2.7

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: 71cfcc29f990f49ac4d582ac7e5a0fec29609b4b
4
- data.tar.gz: 5206e3d47daab2b837f269c6805ef53507d8da96
3
+ metadata.gz: c23b048f9b8593b9ab933de3f2e7923e0d181a82
4
+ data.tar.gz: 9077ed28e74e074a9ad0aa35dfaeb829e31811b4
5
5
  SHA512:
6
- metadata.gz: 9555f2ed3fcba140155952c61cae0f8e2d350c9a8d37a92bc4ee1547f30b84ef5c7507eb96788842a6f7629540ba13fbf71f473a1ea2800c2aef0ebb56a62298
7
- data.tar.gz: ba20d81d7fee9e96198d7f46a3c82960a2cba40b965b9ec6584a167451e9f902fe517b8ccc9fc6546ae42a7b602c798328bc65bc8bd178b42a0805aafd644437
6
+ metadata.gz: ea57ec0fc6732574a3f6343dddfabd67f8e64604882e42fb836ae66cef4035a8c990fe3f718ea9ca676435dc98f3817c19c2fb55ca1dded9393f6123d161627d
7
+ data.tar.gz: 063210c0cacdbd5cc2bf0c7b278ca4bcea9134fbfe067ae7913056781028e541f9fac8496bd3c5d768b71e6818d13acdcc48260b5bbc471d58933899c05e5f20
data/bin/pipe2me CHANGED
@@ -13,8 +13,8 @@ end
13
13
 
14
14
  begin
15
15
  Pipe2me::CLI.start ARGV
16
- rescue
17
- if UI.verbosity >= 2
16
+ rescue StandardError
17
+ if UI.verbosity >= 3
18
18
  UI.error $!.message
19
19
  raise
20
20
  elsif UI.verbosity >= 0
@@ -35,9 +35,15 @@ module Pipe2me::Tunnel::Commands
35
35
  end
36
36
 
37
37
  private
38
+
39
+ def which!(cmd)
40
+ path = `which #{cmd}`.chomp
41
+ raise "Cannot find #{cmd} in your $PATH. Is it installed?"
42
+ path
43
+ end
38
44
 
39
45
  def port_tunnel_command(tunnel_uri, protocol, remote_port, local_port)
40
- autossh = `which autossh`.chomp
46
+ which! :autossh
41
47
 
42
48
  cmd = <<-SHELL
43
49
  env AUTOSSH_GATETIME=0 # comments work here..
@@ -1,4 +1,4 @@
1
1
  module Pipe2me
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  BANNER = "pipe2me command line client V#{Pipe2me::VERSION}; (c) The kink team, 2013, 2014."
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipe2me-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-22 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: pipe2me command line client V0.2.6; (c) The kink team, 2013, 2014.
69
+ description: pipe2me command line client V0.2.7; (c) The kink team, 2013, 2014.
70
70
  email: contact@kinko.me
71
71
  executables:
72
72
  - pipe2me
@@ -131,5 +131,5 @@ rubyforge_project:
131
131
  rubygems_version: 2.2.1
132
132
  signing_key:
133
133
  specification_version: 4
134
- summary: pipe2me command line client V0.2.6; (c) The kink team, 2013, 2014.
134
+ summary: pipe2me command line client V0.2.7; (c) The kink team, 2013, 2014.
135
135
  test_files: []