vendorer

Vendorer keeps your dependencies documented, cached and up to date

  • Owner: grosser/vendorer
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Vendorer

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

Install

Needs: Curl + Git + Ruby

then:

gem install vendorer

or standalone

curl https://rubinjam.herokuapp.com/pack/vendorer > vendorer && chmod +x vendorer
./vendorer -v

Usage

Add a Vendorfile (or Vendorfile.rb) 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

# Copy files & folders from repos (also works with private repos)
from 'https://github.com/grosser/parallel_tests.git' do, checkout_location, file 'Readme.md'
  file 'target-folder/file.rb', 'lib/parallel_tests.rb'
  folder 'spec'
  folder 'renamed-folder', 'spec'
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

Alternatives

  • Vendorificator more features/complexity, but similar interface/concept

TODO

  • nice error message when no Vendorfile was found

Author

Contributors

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

Main metrics

Overview
Name With Ownergrosser/vendorer
Primary LanguageRuby
Program languageRuby (Language Count: 1)
Platform
License:
所有者活动
Created At2011-12-13 05:52:00
Pushed At2020-03-31 22:31:12
Last Commit At2020-03-31 15:31:11
Release Count18
Last Release Namev0.2.0 (Posted on 2018-10-26 22:30:29)
First Release Namev0.1.0 (Posted on 2011-12-12 22:01:05)
用户参与
Stargazers Count185
Watchers Count6
Fork Count11
Commits Count108
Has Issues Enabled
Issues Count7
Issue Open Count2
Pull Requests Count11
Pull Requests Open Count0
Pull Requests Close Count5
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private