Created
August 23, 2011 18:05
-
-
Save erochest/1166018 to your computer and use it in GitHub Desktop.
A .janus.rake file to pull in a rspec2 compiler from tooky/vim-ruby and suppress Windows errors.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rbconfig' | |
require 'fileutils' | |
RSPEC2 = 'https://github.com/tooky/vim-ruby/blob/6f7656892806a2a95fb98a562f6531e27e7398c4/compiler/rspec2.vim' | |
directory 'compiler' | |
vim_plugin_task 'rspec2' do | |
if !File.directory?('compiler') | |
Dir.mkdir('compiler') | |
end | |
sh "curl -o compiler/rspec2.vim #{RSPEC2}" | |
end | |
if ! (Config::CONFIG['host_os'] =~ /mswin|mingw/).nil? | |
skip_vim_plugin 'command_t' | |
module FileUtils | |
def ln_s(src, dest, options={}) | |
FileUtils.cp(src, dest) | |
end | |
end | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd | |
git clone https://github.com/carlhuda/janus.git .vim | |
curl -L https://gist.github.com/raw/1166018/.janus.rake > ~/.janus.rake | |
cd .vim | |
rake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd | |
git clone https://github.com/carlhuda/janus.git vimfiles | |
curl -L https://gist.github.com/raw/1166018/.janus.rake > .janus.rake | |
cd vimfiles | |
rake | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment