runssh 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runssh (0.5.1)
4
+ runssh (0.5.2)
5
5
  highline (~> 1.6.1)
6
6
  trollop (~> 1.16.2)
7
7
 
data/README.rdoc CHANGED
@@ -150,6 +150,9 @@ and there's no going back ...)
150
150
  === 0.5.1
151
151
  * Added example to the documentation.
152
152
 
153
+ === 0.5.2
154
+ * Zsh completion now completes the local target.
155
+
153
156
  == TODO for 1.0
154
157
  * Merge configurations.
155
158
 
data/completions/_runssh CHANGED
@@ -47,13 +47,19 @@ _runssh_subcmd_shell() {
47
47
 
48
48
  (( $+functions[_runssh_subcmd_scp] )) ||
49
49
  _runssh_subcmd_scp() {
50
- _arguments \
51
- '(-L --login)'{-L,--login}'+[Override login]: :' \
52
- '(-n --host-name)'{-n,--host-name}'+[host to connect to]: :' \
53
- {\*-o,\*--option}'+[Ssh option]: :' \
54
- '(-r --recurssive)'{-r,--recurssive}'[copy directories recurssively]' \
55
- '(-l --limit)'{-l,--limit}'+[limit bandwidth in kbit/s]: :' \
56
- '*: :_runssh_path_completions'
50
+ if [[ $words =~ " -- " ]]; then
51
+ if [[ ! $words[$CURRENT] =~ ^: ]]; then # currently we only offer completions for local files
52
+ _files
53
+ fi
54
+ else
55
+ _arguments \
56
+ '(-L --login)'{-L,--login}'+[Override login]: :' \
57
+ '(-n --host-name)'{-n,--host-name}'+[host to connect to]: :' \
58
+ {\*-o,\*--option}'+[Ssh option]: :' \
59
+ '(-r --recurssive)'{-r,--recurssive}'[copy directories recurssively]' \
60
+ '(-l --limit)'{-l,--limit}'+[limit bandwidth in kbit/s]: :' \
61
+ '*: :_runssh_path_completions'
62
+ fi
57
63
  }
58
64
 
59
65
  (( $+functions[_runssh_subcmd_cpid] )) ||
@@ -20,7 +20,7 @@ module RunSSHLib
20
20
  module Version
21
21
  MAJOR = 0
22
22
  MINOR = 5
23
- BUILD = 1
23
+ BUILD = 2
24
24
 
25
25
  STRING = [MAJOR, MINOR, BUILD].compact.join('.')
26
26
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runssh
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Haim Ashkenazi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-22 00:00:00 +03:00
18
+ date: 2011-05-23 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency