mini_readline 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1802772587ebd4ad811fc26687ec351a4ad1fe87
4
- data.tar.gz: c2ebada28788a3bbdeab93b4a0cadf4119a19cad
3
+ metadata.gz: c611f51bc7e15eb0cf974f2935452c04c027add2
4
+ data.tar.gz: dfd3c818b90d578319b5adfdafba954ceba0c665
5
5
  SHA512:
6
- metadata.gz: f3ae4ac73eb8c08280dd36e43587ca9bf49ed1bde32431f59c859021959f2f7a1e179d1de19cbcdc567a260564e1fe2a6e4eefd1ed378af5177eb48e75e7be82
7
- data.tar.gz: 8265de2d7339933cdd9d6281199d01cbefc869949798f1e46a5c7f21541a3f1737463f53a27620edb63c65719d94eaf350580986592ced35619bae9752d777d4
6
+ metadata.gz: c23f184a7d689635265a4e0cb7b66af5368c28a5a74c020b0196717098cafb4f87c8f998ba7bc0698e5341a5ccf0efc32a04292e288e5f165f056ea3e88cc023
7
+ data.tar.gz: 249f58a08b70b9be7c546d12939b4db95e9acaec9f6e4f1c92610f05488660d08cd3ed413518aeebfbf47fd2922d667d4e7c62f09de019f6865a3bed06f7bc45
data/lib/mini_readline.rb CHANGED
@@ -29,6 +29,6 @@ module MiniReadline
29
29
  end
30
30
  end
31
31
 
32
- unless $no_alias_read_line_module
33
- Readline = MiniReadline
32
+ unless defined? $no_alias_read_line_module && $no_alias_read_line_module
33
+ Readline = MiniReadline
34
34
  end
@@ -15,7 +15,7 @@ module MiniReadline
15
15
  def rebuild(str)
16
16
  extract_root_pivot(str)
17
17
 
18
- list = (get_array.select {|str| str.start_with?(@pivot)}).sort
18
+ list = (get_array.select {|entry| entry.start_with?(@pivot)}).sort
19
19
 
20
20
  @cycler = list.empty? ? nil : list.cycle
21
21
  end
@@ -9,6 +9,7 @@ module MiniReadline
9
9
  #Create a new auto-complete manager.
10
10
  def initialize(&block)
11
11
  @_block = block
12
+ @active = nil
12
13
  end
13
14
 
14
15
  #Get the next buffer string
@@ -1,4 +1,4 @@
1
1
  module MiniReadline
2
2
  #The current version of the mini_readline gem.
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
data/sire.rb CHANGED
@@ -98,6 +98,7 @@ class SIRE
98
98
  unless $old
99
99
  MiniReadline::BASE_OPTIONS[:auto_complete] = true
100
100
  MiniReadline::BASE_OPTIONS[:eoi_detect] = true
101
+ MiniReadline::BASE_OPTIONS[:debug] = true
101
102
  end
102
103
 
103
104
  puts
@@ -15,11 +15,6 @@ class MiniReadlineTester < Minitest::Test
15
15
  assert_equal(Module, MiniReadline.class)
16
16
  assert_equal(String, MiniReadline::VERSION.class)
17
17
  assert_equal(Class, MiniReadline::Readline.class)
18
- assert_equal(Class, MiniReadline::History.class)
19
- assert_equal(Class, MiniReadline::NoHistory.class)
20
- assert_equal(Class, MiniReadline::Edit.class)
21
- assert_equal(Class, MiniReadline::EditWindow.class)
22
- assert_equal(Class, MiniReadline::Mapper.class)
23
18
  end
24
19
 
25
20
  def test_for_storage_of_options
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_readline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Camilleri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-20 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest