rb-readline 0.5.2 → 0.5.3

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: 11254ddea2920d62503f38b898462770748e2935
4
- data.tar.gz: 3c04d3fecac964af2bca22609127ec886fdc252e
3
+ metadata.gz: c4d13c41012b1013ec975862515264f6fd631054
4
+ data.tar.gz: 346bac63e5dbb35e44c9874f7709145dfc293072
5
5
  SHA512:
6
- metadata.gz: 204ae36c96008aee1c54b14f1e8dc1a62d8f5ae3e27f20cc8ed990e64e7d3260af9f8b8f2b6109b3641ec9f7818f82db10f4eb7d65d9798b840ea80b5aa609fc
7
- data.tar.gz: 74a9a8cb96c4ffc8c9f3919ec2911fa32f09254083c12c92413f4cf5219f16c161e30e4eda9f55fc1c70aee5c3d0fa28cdcc06b43f8f2898a976a503fd9b79a9
6
+ metadata.gz: b95940171a294f7380b325363a01dbb2489c5c701b5909cac3de86dc038fbb2263c3b1620209cf3ff86a01cf7821097d86833a1d72ed1c94153658bd62e44a48
7
+ data.tar.gz: f8717f77149f38446ba5947edf8578facad9e53685880237fdd9e02fa1899dc8b5441ac29ceb0494d37c1a290cfa25bfd91662ab671954005c029c21071e7cc6
@@ -466,6 +466,7 @@ module RbReadline
466
466
  "\ey" => :rl_yank_pop ,
467
467
  "\e~" => :rl_tilde_expand ,
468
468
  "\377" => :rl_backward_kill_word ,
469
+ "\e\x7F" => :rl_backward_kill_word,
469
470
 
470
471
  "\C-x\C-g" => :rl_abort ,
471
472
  "\C-x\C-r" => :rl_re_read_init_file ,
@@ -2362,6 +2363,8 @@ module RbReadline
2362
2363
  return :rl_rubout_or_delete
2363
2364
  when "kill-whole-line"
2364
2365
  return :rl_kill_full_line
2366
+ when "next-history"
2367
+ return :rl_get_next_history
2365
2368
  when "non-incremental-forward-search-history"
2366
2369
  return :rl_noninc_forward_search
2367
2370
  when "non-incremental-reverse-search-history"
@@ -2372,6 +2375,8 @@ module RbReadline
2372
2375
  return :rl_noninc_reverse_search_again
2373
2376
  when "redraw-current-line"
2374
2377
  return :rl_refresh_line
2378
+ when "previous-history"
2379
+ return :rl_get_previous_history
2375
2380
  when "self-insert"
2376
2381
  return :rl_insert
2377
2382
  when "undo"
@@ -2380,7 +2385,8 @@ module RbReadline
2380
2385
  return :rl_beg_of_line
2381
2386
  else
2382
2387
  if name =~ /^[-a-z]+$/
2383
- return ('rl_'+name.gsub('-','_')).to_sym
2388
+ method = ('rl_' + name.gsub('-', '_')).to_sym
2389
+ return method if respond_to?(method)
2384
2390
  end
2385
2391
  end
2386
2392
  nil
@@ -2416,7 +2422,8 @@ module RbReadline
2416
2422
 
2417
2423
  if string =~ /"(.*)"\s*:\s*(.*)$/
2418
2424
  key, funname = $1, $2
2419
- rl_bind_key(key, rl_named_function(funname))
2425
+ func = rl_named_function(funname)
2426
+ rl_bind_key(key, func) if func
2420
2427
  end
2421
2428
 
2422
2429
  0
@@ -8434,6 +8441,8 @@ module RbReadline
8434
8441
 
8435
8442
  if (@rl_filename_completion_desired)
8436
8443
  filename = File.expand_path(text)
8444
+ return temp_string_index unless File.exists? filename
8445
+
8437
8446
  s = (nontrivial_match && !@rl_completion_mark_symlink_dirs) ?
8438
8447
  File.lstat(filename) : File.stat(filename)
8439
8448
  if s.directory?
@@ -1,3 +1,3 @@
1
1
  module RbReadline
2
- RB_READLINE_VERSION = "0.5.2"
2
+ RB_READLINE_VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-readline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Park Heesob
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-12-29 00:00:00.000000000 Z
14
+ date: 2015-06-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -100,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: 1.3.5
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.4.2
103
+ rubygems_version: 2.2.2
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Pure-Ruby Readline Implementation
107
107
  test_files: []
108
- has_rdoc: