File: relax-ruby-version-check

package info (click to toggle)
vim-command-t 5.0.2-5-g7147ba9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 744 kB
  • sloc: ruby: 3,394; ansic: 1,177; makefile: 27; sh: 26; xml: 11
file content (36 lines) | stat: -rw-r--r-- 1,361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Sam Morris <sam@robots.org.uk>
Date: Fri, 9 Dec 2016 23:33:08 +0000
Subject: Remove ruby version check

This way, the package will not have to be rebuilt every time libruby is
updated. Upstream is happy for us to remove this check.
---
 autoload/commandt.vim | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/autoload/commandt.vim b/autoload/commandt.vim
index 1c65748..5e1ca61 100644
--- a/autoload/commandt.vim
+++ b/autoload/commandt.vim
@@ -199,19 +199,8 @@ ruby << EOF
   # require Ruby files
   begin
     require 'command-t'
-
-    # Make sure we're running with the same version of Ruby that Command-T was
-    # compiled with.
-    patchlevel = defined?(RUBY_PATCHLEVEL) ? RUBY_PATCHLEVEL : nil
-    if CommandT::Metadata::UNKNOWN == true || (
-      CommandT::Metadata::EXPECTED_RUBY_VERSION == RUBY_VERSION &&
-      CommandT::Metadata::EXPECTED_RUBY_PATCHLEVEL == patchlevel
-    )
-      require 'command-t/ext' # eager load, to catch compilation problems early
-      $command_t = CommandT::Controller.new
-    else
-      $command_t = CommandT::Stub.new
-    end
+    require 'command-t/ext' # eager load, to catch compilation problems early
+    $command_t = CommandT::Controller.new
   rescue LoadError
     load_path_modified = false
     ::VIM::evaluate('&runtimepath').to_s.split(',').each do |path|