rvc 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/rvc +2 -0
- data/lib/rvc/completion.rb +9 -7
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.2
|
data/bin/rvc
CHANGED
data/lib/rvc/completion.rb
CHANGED
@@ -21,15 +21,17 @@
|
|
21
21
|
require 'readline'
|
22
22
|
require 'rvc/ttl_cache'
|
23
23
|
|
24
|
-
|
25
|
-
require 'ffi'
|
24
|
+
if not defined? RbReadline
|
26
25
|
begin
|
27
|
-
require '
|
28
|
-
|
29
|
-
|
26
|
+
require 'ffi'
|
27
|
+
begin
|
28
|
+
require 'rvc/readline-ffi'
|
29
|
+
rescue Exception
|
30
|
+
$stderr.puts "Error loading readline-ffi: #{$!.message}. Tab completion will be limited."
|
31
|
+
end
|
32
|
+
rescue LoadError
|
33
|
+
$stderr.puts "Install the \"ffi\" gem for better tab completion."
|
30
34
|
end
|
31
|
-
rescue LoadError
|
32
|
-
$stderr.puts "Install the \"ffi\" gem for better tab completion."
|
33
35
|
end
|
34
36
|
|
35
37
|
module RVC
|