inquirer.rb 0.0.4 → 0.0.5

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: 2660e6433f7e913796819045ad9a22920a626bde
4
- data.tar.gz: 409454f61b1bbc915e5f8684f0cd0136c918a9c6
3
+ metadata.gz: 5c44e2fd3b578b73dd8b2e90646c06d01f7273ac
4
+ data.tar.gz: df311f6b2c00c57154933765a6cd3acdf22622a1
5
5
  SHA512:
6
- metadata.gz: b4c143a8915d1ff0ccc20d310fd5311ec448ee421e1f4f70e1f418273daef0eb887b4d0600a24ba4f06d67f6579d88653e2a56d31edaf149fe9deb06fa8a3663
7
- data.tar.gz: 0267f36718cacf9eb9e2272a40fcab8190377c27c4b5ec6f6df4c792d2829c2cfcf41f9ffde4be46af9c40b46537f99cab01e7e8b7cb4e341b3a6e84f0ffd49e
6
+ metadata.gz: 4170679a66b06b13cd41cf169424802a6e0285f018f3949c51d52e559bda6eab4b1a2b48937398a1b12058e10fb50e13443b003776ed201e86f79ed3f37bf361
7
+ data.tar.gz: 5e84ad5c8b9548729d521049510ef1f71ae00c7d62c7cb46572b2c3d387e09594e0e01ce9d9ee16f2f85df265c963be5a48d06e530b0b29ee4674cebd979b2f0
@@ -131,6 +131,10 @@ module CheckboxFilterable
131
131
  end
132
132
 
133
133
  check_no_match
134
+ when 'escape'
135
+ @filter = ''
136
+
137
+ filter_choices
134
138
  else
135
139
  @filter = @filter.insert(@filter.length - cursor_position, char)
136
140
 
@@ -103,6 +103,10 @@ module ListFilterable
103
103
  end
104
104
 
105
105
  check_no_match
106
+ when 'escape'
107
+ @filter = ''
108
+
109
+ filter_choices
106
110
  else
107
111
 
108
112
  if !['return'].include?(key)
@@ -1,3 +1,3 @@
1
1
  module Inquirer
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inquirer.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thorsten Eckel