| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,28 +1,29 @@ | |||
| 1 | 1 | GEM | |
| 2 | 2 | remote: http://rubygems.org/ | |
| 3 | 3 | specs: | |
| 4 | - diff-lcs (1.3) | ||
| 5 | - rspec (3.5.0) | ||
| 6 | - rspec-core (~> 3.5.0) | ||
| 7 | - rspec-expectations (~> 3.5.0) | ||
| 8 | - rspec-mocks (~> 3.5.0) | ||
| 9 | - rspec-core (3.5.4) | ||
| 10 | - rspec-support (~> 3.5.0) | ||
| 11 | - rspec-expectations (3.5.0) | ||
| 4 | + diff-lcs (1.5.1) | ||
| 5 | + rspec (3.13.0) | ||
| 6 | + rspec-core (~> 3.13.0) | ||
| 7 | + rspec-expectations (~> 3.13.0) | ||
| 8 | + rspec-mocks (~> 3.13.0) | ||
| 9 | + rspec-core (3.13.2) | ||
| 10 | + rspec-support (~> 3.13.0) | ||
| 11 | + rspec-expectations (3.13.3) | ||
| 12 | 12 | diff-lcs (>= 1.2.0, < 2.0) | |
| 13 | - rspec-support (~> 3.5.0) | ||
| 14 | - rspec-mocks (3.5.0) | ||
| 13 | + rspec-support (~> 3.13.0) | ||
| 14 | + rspec-mocks (3.13.2) | ||
| 15 | 15 | diff-lcs (>= 1.2.0, < 2.0) | |
| 16 | - rspec-support (~> 3.5.0) | ||
| 17 | - rspec-support (3.5.0) | ||
| 18 | - vimrunner (0.3.0) | ||
| 16 | + rspec-support (~> 3.13.0) | ||
| 17 | + rspec-support (3.13.2) | ||
| 18 | + vimrunner (0.3.5) | ||
| 19 | 19 | ||
| 20 | 20 | PLATFORMS | |
| 21 | 21 | ruby | |
| 22 | + x86_64-linux | ||
| 22 | 23 | ||
| 23 | 24 | DEPENDENCIES | |
| 24 | 25 | rspec | |
| 25 | 26 | vimrunner | |
| 26 | 27 | ||
| 27 | 28 | BUNDLED WITH | |
| 28 | - 1.13.7 | ||
| 29 | + 2.5.17 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ With pathogen.vim | |||
| 9 | 9 | Install [pathogen.vim](https://github.com/tpope/vim-pathogen), | |
| 10 | 10 | then copy and paste: | |
| 11 | 11 | ||
| 12 | - git clone git://github.com/vim-ruby/vim-ruby.git ~/.vim/bundle/vim-ruby | ||
| 12 | + git clone https://github.com/vim-ruby/vim-ruby.git ~/.vim/bundle/vim-ruby | ||
| 13 | 13 | ||
| 14 | 14 | With Vundle | |
| 15 | 15 | ----------- | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: Ruby | |
| 3 | 3 | " Maintainer: Mark Guzman <segfault@hasno.info> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | " ---------------------------------------------------------------------------- | |
| 7 | 6 | " | |
| 8 | 7 | " Ruby IRB/Complete author: Keiju ISHITSUKA(keiju@ishitsuka.com) | |
@@ -489,7 +488,7 @@ class VimRubyCompletion | |||
| 489 | 488 | trail = "%s%s" % [ dir, sub ] | |
| 490 | 489 | tcfg = "%sconfig" % trail | |
| 491 | 490 | ||
| 492 | - if File.exists?( tcfg ) | ||
| 491 | + if File.exist?( tcfg ) | ||
| 493 | 492 | rails_base = trail | |
| 494 | 493 | break | |
| 495 | 494 | end | |
@@ -502,7 +501,7 @@ class VimRubyCompletion | |||
| 502 | 501 | ||
| 503 | 502 | bootfile = rails_base + "config/boot.rb" | |
| 504 | 503 | envfile = rails_base + "config/environment.rb" | |
| 505 | - if File.exists?( bootfile ) && File.exists?( envfile ) | ||
| 504 | + if File.exist?( bootfile ) && File.exist?( envfile ) | ||
| 506 | 505 | begin | |
| 507 | 506 | require bootfile | |
| 508 | 507 | require envfile | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: eRuby | |
| 3 | 3 | " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | if exists("current_compiler") | |
| 8 | 7 | finish | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: Rake | |
| 3 | 3 | " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | if exists("current_compiler") | |
| 8 | 7 | finish | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: RSpec | |
| 3 | 3 | " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | if exists("current_compiler") | |
| 8 | 7 | finish | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,6 @@ | |||
| 3 | 3 | " Function: Syntax check and/or error reporting | |
| 4 | 4 | " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
| 5 | 5 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 6 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 7 | 6 | ||
| 8 | 7 | if exists("current_compiler") | |
| 9 | 8 | finish | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: Test::Unit - Ruby Unit Testing Framework | |
| 3 | 3 | " Maintainer: Doug Kearns <dougkearns@gmail.com> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | if exists("current_compiler") | |
| 8 | 7 | finish | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: eRuby | |
| 3 | 3 | " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | " Only do this when not done yet for this buffer | |
| 8 | 7 | if exists("b:did_ftplugin") | |
@@ -85,8 +84,12 @@ runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim | |||
| 85 | 84 | let b:did_ftplugin = 1 | |
| 86 | 85 | ||
| 87 | 86 | " Combine the new set of values with those previously included. | |
| 88 | - if exists("b:undo_ftplugin") | ||
| 89 | - let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin | ||
| 87 | + if !exists('b:undo_ftplugin') | ||
| 88 | + " No-op | ||
| 89 | + let b:undo_ftplugin = 'exe' | ||
| 90 | + endif | ||
| 91 | + if !empty(s:undo_ftplugin) | ||
| 92 | + let b:undo_ftplugin .= '|' . s:undo_ftplugin | ||
| 90 | 93 | endif | |
| 91 | 94 | if exists ("b:browsefilter") | |
| 92 | 95 | let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter | |
@@ -118,7 +121,7 @@ endif | |||
| 118 | 121 | setlocal commentstring=<%#%s%> | |
| 119 | 122 | ||
| 120 | 123 | let b:undo_ftplugin = "setl cms< " . | |
| 121 | - \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin | ||
| 124 | + \ " | unlet! b:browsefilter b:match_words | " . b:undo_ftplugin | ||
| 122 | 125 | ||
| 123 | 126 | let &cpo = s:save_cpo | |
| 124 | 127 | unlet s:save_cpo | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,6 @@ | |||
| 2 | 2 | " Language: Ruby | |
| 3 | 3 | " Maintainer: Tim Pope <vimNOSPAM@tpope.org> | |
| 4 | 4 | " URL: https://github.com/vim-ruby/vim-ruby | |
| 5 | - " Release Coordinator: Doug Kearns <dougkearns@gmail.com> | ||
| 6 | 5 | ||
| 7 | 6 | if (exists("b:did_ftplugin")) | |
| 8 | 7 | finish | |
@@ -52,31 +51,45 @@ endif | |||
| 52 | 51 | " TODO: | |
| 53 | 52 | "setlocal define=^\\s*def | |
| 54 | 53 | ||
| 55 | - setlocal comments=:# | ||
| 54 | + setlocal comments=b:# | ||
| 56 | 55 | setlocal commentstring=#\ %s | |
| 57 | 56 | ||
| 58 | 57 | if !exists('g:ruby_version_paths') | |
| 59 | 58 | let g:ruby_version_paths = {} | |
| 60 | 59 | endif | |
| 61 | 60 | ||
| 61 | + let s:path_split = has('win32') ? ';' : ':' | ||
| 62 | + | ||
| 62 | 63 | function! s:query_path(root) abort | |
| 63 | - let code = "print $:.join %q{,}" | ||
| 64 | - if &shell =~# 'sh' && empty(&shellxquote) | ||
| 65 | - let prefix = 'env PATH='.shellescape($PATH).' ' | ||
| 66 | - else | ||
| 67 | - let prefix = '' | ||
| 64 | + " Disabled by default for security reasons. | ||
| 65 | + if !get(g:, 'ruby_exec', get(g:, 'plugin_exec', 0)) || empty(a:root) | ||
| 66 | + return map(split($RUBYLIB, s:path_split), 'v:val ==# "." ? "" : v:val') | ||
| 68 | 67 | endif | |
| 68 | + let code = "print $:.join %q{,}" | ||
| 69 | 69 | if &shellxquote == "'" | |
| 70 | - let path_check = prefix.'ruby --disable-gems -e "' . code . '"' | ||
| 70 | + let args = ' --disable-gems -e "' . code . '"' | ||
| 71 | 71 | else | |
| 72 | - let path_check = prefix."ruby --disable-gems -e '" . code . "'" | ||
| 72 | + let args = " --disable-gems -e '" . code . "'" | ||
| 73 | 73 | endif | |
| 74 | 74 | ||
| 75 | - let cd = haslocaldir() ? 'lcd' : 'cd' | ||
| 75 | + let cd = haslocaldir() ? 'lcd' : exists(':tcd') && haslocaldir(-1) ? 'tcd' : 'cd' | ||
| 76 | 76 | let cwd = fnameescape(getcwd()) | |
| 77 | 77 | try | |
| 78 | 78 | exe cd fnameescape(a:root) | |
| 79 | - let path = split(system(path_check),',') | ||
| 79 | + for dir in split($PATH, s:path_split) | ||
| 80 | + if dir !=# '.' && executable(dir . '/ruby') == 1 | ||
| 81 | + let exepath = dir . '/ruby' | ||
| 82 | + break | ||
| 83 | + endif | ||
| 84 | + endfor | ||
| 85 | + if exists('l:exepath') | ||
| 86 | + let path = split(system(exepath . args),',') | ||
| 87 | + if v:shell_error | ||
| 88 | + let path = [] | ||
| 89 | + endif | ||
| 90 | + else | ||
| 91 | + let path = [] | ||
| 92 | + endif | ||
| 80 | 93 | exe cd cwd | |
| 81 | 94 | return path | |
| 82 | 95 | finally | |
@@ -117,10 +130,8 @@ else | |||
| 117 | 130 | if !exists('g:ruby_default_path') | |
| 118 | 131 | if has("ruby") && has("win32") | |
| 119 | 132 | ruby ::VIM::command( 'let g:ruby_default_path = split("%s",",")' % $:.join(%q{,}) ) | |
| 120 | - elseif executable('ruby') && !empty($HOME) | ||
| 121 | - let g:ruby_default_path = s:query_path($HOME) | ||
| 122 | 133 | else | |
| 123 | - let g:ruby_default_path = map(split($RUBYLIB,':'), 'v:val ==# "." ? "" : v:val') | ||
| 134 | + let g:ruby_default_path = s:query_path($HOME) | ||
| 124 | 135 | endif | |
| 125 | 136 | endif | |
| 126 | 137 | let s:ruby_paths = g:ruby_default_path | |
| Back | FazBrowse Home | New Git URL |
0 commit comments