rvc 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/rvc +2 -0
  3. data/lib/rvc/completion.rb +9 -7
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
data/bin/rvc CHANGED
@@ -37,6 +37,8 @@ Thread.abort_on_exception = true
37
37
  CMD = Module.new
38
38
  RVC::VERSION = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION'))
39
39
 
40
+ HighLine.use_color = ENV['TERM'] != nil
41
+
40
42
  $opts = Trollop.options do
41
43
  version RVC::VERSION
42
44
 
@@ -21,15 +21,17 @@
21
21
  require 'readline'
22
22
  require 'rvc/ttl_cache'
23
23
 
24
- begin
25
- require 'ffi'
24
+ if not defined? RbReadline
26
25
  begin
27
- require 'rvc/readline-ffi'
28
- rescue Exception
29
- $stderr.puts "Error loading readline-ffi: #{$!.message}. Tab completion will be limited."
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rvc
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.1
5
+ version: 1.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rich Lane