Skip to content

Instantly share code, notes, and snippets.

@pivotal-legacy
Created September 23, 2010 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pivotal-legacy/594121 to your computer and use it in GitHub Desktop.
Save pivotal-legacy/594121 to your computer and use it in GitHub Desktop.
Vendor Jasmine gem for Rails3
require 'fileutils'
FileUtils.mkdir_p('vendor/gems')
Dir.chdir('vendor/gems') do
%x[git clone git://github.com/pivotal/jasmine-gem.git jasmine]
Dir.chdir('jasmine') do
%x[git submodule update --init]
%x[git fetch origin rspec2-rails3]
%x[git checkout rspec2-rails3]
%x[ruby copy_examples.rb]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment