Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' into stasis

  • Loading branch information...
commit 5b13d8a5d90cbf58496fba48ade4e4fbacb20291 2 parents b482cda + 3530499
@winton authored
View
6 .travis.yml
@@ -0,0 +1,6 @@
+language: ruby
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+ - 2.0.0
View
2  README.md
@@ -15,7 +15,7 @@ A gem template for new projects.
###Create a new project
- gem_template <project_name> <branch>
+ gem_template [project_name] [ProjectName] [branch...]
###Available branches
View
6 Rakefile
@@ -1 +1,5 @@
-require 'bundler/gem_tasks'
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec)
+task :default => :spec
View
18 bin/gem_template
@@ -15,11 +15,23 @@ git fetch
echo -e "\nWriting .ruby-gemset..."
echo $1 > .ruby-gemset
-echo -e "\nInstalling gems..."
+echo -e "\nInstalling base gems..."
gem install bundler && bundle
-# echo "\ngem_template -> $1..."
-# cd $1 && stencil $1
+echo -e "\nGemTemplate -> $2..."
+namer gem_template:$1 GemTemplate:$2
+
+echo ""
+echo $'\e[1;31m'"To finish setting up your project:"
+echo $'\e[0m'
+echo " cd $1"
+
+for i in ${@:3}; do
+ echo " git merge origin/$i"
+done
+
+echo " bundle"
+echo ""
# -- replace
# #!/usr/bin/env ruby
View
1  gem_template.gemspec
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "stasis"
spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_dependency "namer"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "simplecov"
Please sign in to comment.
Something went wrong with that request. Please try again.