Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fcdbc041f3
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (33 sloc) 1.354 kb

Vendorer

  • documented dependencies
  • automatic updates
  • no unwanted/accidental updates

Install

Install curl and git, then:

sudo gem install vendorer

Usage

Add a Vendorfile to your project root:

file 'public/javascripts/jquery.min.js', 'http://code.jquery.com/jquery-latest.min.js'
folder 'vendor/plugins/parallel_tests', 'https://github.com/grosser/parallel_tests.git'

# execute a block after updates
file 'public/javascripts/jquery.js', 'http://code.jquery.com/jquery.js' do |path|
  puts "Do something useful with #{path}"
end

# checkout a specific :ref/:tag/:branch
folder 'vendor/plugins/parallel_tests', 'https://github.com/grosser/parallel_tests.git', :tag => 'v0.6.10'

Call vendorer

If you added something new: vendorer

If you want to update all dependencies: vendorer update

If you want to update one dependencies: vendorer update public/javasctips/jquery.min.js

TODO

  • folder 'vendor' do which will remove everything that is not vendored via Vendorfile on vendorer update or vendorer update vendor
  • nice error message when no Vendorfile was found

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status

Jump to Line
Something went wrong with that request. Please try again.