pry-editline 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -33,7 +33,7 @@ already works. It stands for "open".
33
33
  > What about vi readline bindings?
34
34
 
35
35
  They're supported, too. In addition to `C-x C-e` and `C-o` in insert
36
- mode, you can use `o` in normal mode.
36
+ mode, you can use `o` or `v` in normal mode.
37
37
 
38
38
  > It's not working on OS X.
39
39
 
data/lib/pry-editline.rb CHANGED
@@ -16,8 +16,8 @@ module PryEditline
16
16
  ].compact.detect { |x| File.exist?(x) }
17
17
 
18
18
  require 'tempfile'
19
- file = Tempfile.new('inputrc')
20
- file.puts <<-EOF
19
+ @file = Tempfile.new('inputrc')
20
+ @file.puts <<-'EOF'
21
21
  set keymap vi-insert
22
22
  "\C-a": beginning-of-line
23
23
  "\C-b": backward-char
@@ -32,6 +32,7 @@ set keymap vi-insert
32
32
  "\C-o": "\C-e \C-a\t\C-k\C-x\C-l"
33
33
  set keymap vi-command
34
34
  "o": "A \C-a\t\C-k\C-x\C-l\e"
35
+ "v": "A \C-a\t\C-k\C-x\C-l\e"
35
36
  set keymap emacs
36
37
  "\C-x\C-l": redraw-current-line
37
38
  "\C-x\C-e": "\C-e \C-a\t\C-k\C-x\C-l"
@@ -40,9 +41,9 @@ $if mode=vi
40
41
  set keymap vi
41
42
  $endif
42
43
  EOF
43
- file.puts "$include #{inputrc}" if inputrc
44
- file.close
45
- ENV['INPUTRC'] = file.path
44
+ @file.puts "$include #{inputrc}" if inputrc
45
+ @file.close
46
+ ENV['INPUTRC'] = @file.path
46
47
  end
47
48
 
48
49
  def self.completion_proc
data/pry-editline.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'pry-editline'
6
- s.version = '1.1.0'
6
+ s.version = '1.1.1'
7
7
  s.authors = ['Tim Pope']
8
8
  s.email = ["ruby@tpop"+'e.org']
9
9
  s.homepage = 'https://github.com/tpope/pry-editline'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-editline
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-08 00:00:00.000000000Z
12
+ date: 2011-12-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &73396810 !ruby/object:Gem::Requirement
16
+ requirement: &70304880022060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *73396810
24
+ version_requirements: *70304880022060
25
25
  description:
26
26
  email:
27
27
  - ruby@tpope.org