Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' into active_wrapper

  • Loading branch information...
commit 1d3d5ea0e4de83a61456d3e981c620f70bba1a2d 2 parents 41219e3 + 3530499
Winton Welsh authored
6 .travis.yml
... ... @@ -0,0 +1,6 @@
  1 +language: ruby
  2 +rvm:
  3 + - 1.8.7
  4 + - 1.9.2
  5 + - 1.9.3
  6 + - 2.0.0
2  README.md
Source Rendered
@@ -15,7 +15,7 @@ A gem template for new projects.
15 15
16 16 ###Create a new project
17 17
18   - gem_template <project_name> <branch>
  18 + gem_template [project_name] [ProjectName] [branch...]
19 19
20 20 ###Available branches
21 21
6 Rakefile
... ... @@ -1 +1,5 @@
1   -require 'bundler/gem_tasks'
  1 +require 'bundler/gem_tasks'
  2 +require 'rspec/core/rake_task'
  3 +
  4 +RSpec::Core::RakeTask.new(:spec)
  5 +task :default => :spec
18 bin/gem_template
@@ -15,11 +15,23 @@ git fetch
15 15 echo -e "\nWriting .ruby-gemset..."
16 16 echo $1 > .ruby-gemset
17 17
18   -echo -e "\nInstalling gems..."
  18 +echo -e "\nInstalling base gems..."
19 19 gem install bundler && bundle
20 20
21   -# echo "\ngem_template -> $1..."
22   -# cd $1 && stencil $1
  21 +echo -e "\nGemTemplate -> $2..."
  22 +namer gem_template:$1 GemTemplate:$2
  23 +
  24 +echo ""
  25 +echo $'\e[1;31m'"To finish setting up your project:"
  26 +echo $'\e[0m'
  27 +echo " cd $1"
  28 +
  29 +for i in ${@:3}; do
  30 + echo " git merge origin/$i"
  31 +done
  32 +
  33 +echo " bundle"
  34 +echo ""
23 35
24 36 # -- replace
25 37 # #!/usr/bin/env ruby
1  gem_template.gemspec
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20 20 spec.add_dependency "active_wrapper"
21 21
22 22 spec.add_development_dependency "bundler", "~> 1.3"
  23 + spec.add_development_dependency "namer"
23 24 spec.add_development_dependency "rake"
24 25 spec.add_development_dependency "rspec"
25 26 spec.add_development_dependency "simplecov"

0 comments on commit 1d3d5ea

Please sign in to comment.
Something went wrong with that request. Please try again.