Skip to content
forked from grosser/vendorer

Vendorer keeps your dependencies documented and up to date

Notifications You must be signed in to change notification settings

divout/vendorer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vendorer

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

Install

Ensure you have:

  • Curl
  • Git v1.7+
  • Ruby v1.8.7 or v1.9.2+

then:

$ gem install vendorer

Or add vendorer to your Gemfile:

gem 'vendorer', :group => :development

Usage

Add a Vendorfile to your project root:

file 'vendor/assets/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 'vendor/assets/javascripts/jquery.js', 'http://code.jquery.com/jquery.js' do |path|
  puts "Do something useful with #{path}"
  rewrite(path) { |content| content.gsub(/\r\n/, \n).gsub /\t/, ' ' }
end

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

# DRY folders
folder 'vendor/assets/javascripts' do
  file 'jquery.js', 'http://code.jquery.com/jquery-latest.js'
end
  • Create a new Vendorfile: vendorer init
  • excute all installations: vendorer
  • Update all dependencies: vendorer update
  • update a single dependency: vendorer update vendor/assets/javascripts/jquery.min.js
  • update everything in a specific folder: vendorer update vendor/assets/javascripts

TODO

  • nice error message when no Vendorfile was found

Author

Michael Grosser
[email protected]
License: MIT
Build Status

About

Vendorer keeps your dependencies documented and up to date

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%