vmc 0.4.0.beta.52 → 0.4.0.beta.53
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc-ng/lib/vmc/cli.rb +2 -0
- data/vmc-ng/lib/vmc/cli/app.rb +1 -1
- data/vmc-ng/lib/vmc/cli/interactive.rb +6 -4
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +7 -7
data/vmc-ng/lib/vmc/cli.rb
CHANGED
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
@@ -50,12 +50,14 @@ module VMC
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
def handler(
|
53
|
+
def handler(event, state)
|
54
54
|
ans = state.answer
|
55
55
|
pos = state.position
|
56
56
|
|
57
|
+
exit if event == :eof
|
58
|
+
|
57
59
|
if state.default?
|
58
|
-
if
|
60
|
+
if event.is_a?(Array) and event[0] == :key
|
59
61
|
# initial non-movement keypress clears default answer
|
60
62
|
clear_input(state)
|
61
63
|
else
|
@@ -66,7 +68,7 @@ module VMC
|
|
66
68
|
state.clear_default!
|
67
69
|
|
68
70
|
# tab with a default accepts it and moves to the end
|
69
|
-
if
|
71
|
+
if event == :tab
|
70
72
|
state.goto(ans.size)
|
71
73
|
else
|
72
74
|
super
|
@@ -75,7 +77,7 @@ module VMC
|
|
75
77
|
super
|
76
78
|
end
|
77
79
|
|
78
|
-
print "\n" if
|
80
|
+
print "\n" if event == :enter
|
79
81
|
end
|
80
82
|
|
81
83
|
class CFState < ::Interactive::InputState
|
data/vmc-ng/lib/vmc/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3537657029
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.4.0.beta.
|
11
|
+
- 53
|
12
|
+
version: 0.4.0.beta.53
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- VMware
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-09-
|
20
|
+
date: 2012-09-17 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: json_pure
|
@@ -297,12 +297,12 @@ dependencies:
|
|
297
297
|
requirements:
|
298
298
|
- - ~>
|
299
299
|
- !ruby/object:Gem::Version
|
300
|
-
hash:
|
300
|
+
hash: 3
|
301
301
|
segments:
|
302
302
|
- 0
|
303
303
|
- 4
|
304
|
-
-
|
305
|
-
version: 0.4.
|
304
|
+
- 6
|
305
|
+
version: 0.4.6
|
306
306
|
type: :runtime
|
307
307
|
version_requirements: *id017
|
308
308
|
- !ruby/object:Gem::Dependency
|