interact 0.4 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rake'
2
+ require "bundler/gem_tasks"
2
3
 
3
4
  task :default => "spec"
4
5
 
@@ -21,7 +21,8 @@ module Interactive
21
21
  "[D" => :left, "K" => :left,
22
22
  "[3~" => :delete, "S" => :delete,
23
23
  "[H" => :home, "G" => :home,
24
- "[F" => :end, "O" => :end
24
+ "[F" => :end, "O" => :end,
25
+ "[Z" => :shift_tab
25
26
  }
26
27
 
27
28
  # Wrap around the input options, the current answer, and the current
@@ -458,7 +459,7 @@ module Interactive
458
459
 
459
460
  def set_input_state(input)
460
461
  return nil unless input.tty?
461
- before = Termio.getattr(input)
462
+ before = Termios.getattr(input)
462
463
 
463
464
  new = before.dup
464
465
  new.c_lflag &= ~(Termios::ECHO | Termios::ICANON)
@@ -76,7 +76,7 @@ module Interactive::Rewindable
76
76
  prompts = state.options[:prompts] || []
77
77
 
78
78
  case which
79
- when :up
79
+ when :up, :shift_tab
80
80
  if back = prompts.pop
81
81
  raise JumpToPrompt, back
82
82
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2011 Alex Suraci
2
2
 
3
3
  module Interact
4
- VERSION = 0.4
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interact
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- version: "0.4"
9
+ - 1
10
+ version: 0.4.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alex Suraci
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2012-02-01 00:00:00 -08:00
18
+ date: 2012-03-07 00:00:00 -08:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -61,8 +62,8 @@ files:
61
62
  - Rakefile
62
63
  - lib/interact/interactive.rb
63
64
  - lib/interact/rewindable.rb
65
+ - lib/interact/version.rb
64
66
  - lib/interact.rb
65
- - lib/version.rb
66
67
  has_rdoc: true
67
68
  homepage: http://github.com/vito/interact
68
69
  licenses: []