Permalink
Browse files

initial by http://github.com/grosser/project_template

  • Loading branch information...
0 parents commit b1e64600551ae4b5d5a92b9eea7ed75b1e276397 @grosser committed Dec 13, 2011
Showing with 105 additions and 0 deletions.
  1. +5 −0 .travis.yml
  2. +7 −0 Gemfile
  3. +26 −0 Gemfile.lock
  4. +19 −0 Rakefile
  5. +21 −0 Readme.md
  6. +2 −0 lib/vendorer.rb
  7. +3 −0 lib/vendorer/version.rb
  8. +3 −0 spec/spec_helper.rb
  9. +7 −0 spec/vendorer_spec.rb
  10. +12 −0 vendorer.gemspec
@@ -0,0 +1,5 @@
+script: "bundle exec rake"
+rvm:
+ - ree
+ - 1.9.2
+ - 1.9.3
@@ -0,0 +1,7 @@
+source :rubygems
+gemspec
+
+group :development do
+ gem 'rake'
+ gem 'rspec', '~>2'
+end
@@ -0,0 +1,26 @@
+PATH
+ remote: .
+ specs:
+ vendorer (0.0.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ diff-lcs (1.1.3)
+ rake (0.9.2)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ rake
+ rspec (~> 2)
+ vendorer!
@@ -0,0 +1,19 @@
+require "bundler"
+Bundler::GemHelper.install_tasks
+
+task :default do
+ sh "rspec spec/"
+end
+
+rule /^version:bump:.*/ do |t|
+ file = 'lib/vendorer/version.rb'
+ sh "git status | grep 'nothing to commit'" # ensure we are not dirty
+ index = ['major', 'minor','patch'].index(t.name.split(':').last)
+ version_file = File.read(file)
+ old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
+ version_parts[index] = version_parts[index].to_i + 1
+ new_version = version_parts * '.'
+ File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
+
+ sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
+end
@@ -0,0 +1,21 @@
+Keep your vendor files up to date
+
+Install
+=======
+ sudo gem install vendorer
+Or
+
+ rails plugin install git://github.com/grosser/vendorer.git
+
+
+Usage
+=====
+ CODE EXAMPLE
+
+Author
+======
+[Michael Grosser](http://grosser.it)<br/>
+michael@grosser.it<br/>
+License: MIT<br/>
+[![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=grosser&url=https://github.com/grosser/vendorer&title=vendorer&language=en_US&tags=github&category=software)
+[![Build Status](https://secure.travis-ci.org/grosser/vendorer.png)](http://travis-ci.org/grosser/vendorer)
@@ -0,0 +1,2 @@
+module Vendorer
+end
@@ -0,0 +1,3 @@
+module Vendorer
+ VERSION = '0.0.0'
+end
@@ -0,0 +1,3 @@
+$LOAD_PATH.unshift 'lib'
+require 'vendorer'
+require 'vendorer/version'
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe Vendorer do
+ it "has a VERSION" do
+ Vendorer::VERSION.should =~ /^[\.\da-z]+$/
+ end
+end
@@ -0,0 +1,12 @@
+$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
+name = "vendorer"
+require "#{name}/version"
+
+Gem::Specification.new name, Vendorer::VERSION do |s|
+ s.summary = "Keep your vendor files up to date"
+ s.authors = ["Michael Grosser"]
+ s.email = "michael@grosser.it"
+ s.homepage = "http://github.com/grosser/#{name}"
+ s.files = `git ls-files`.split("\n")
+ s.license = 'MIT'
+end

0 comments on commit b1e6460

Please sign in to comment.