Permalink
Browse files

First commit

  • Loading branch information...
1 parent 5e2dd99 commit a0eaa25ab366c9e552bb48c659d2bf9857be8b53 @winton committed Nov 28, 2011
View
@@ -15,4 +15,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,36 +1,16 @@
-GemTemplate
-===========
+GitCycle
+========
-A gem template for new projects.
+Tame your development cycle.
Requirements
------------
<pre>
-gem install stencil
+gem install gitcycle
</pre>
-Setup the template
-------------------
+Get Started
+-----------
-You only have to do this once.
-
-<pre>
-git clone git@github.com:winton/gem_template.git
-cd gem_template
-stencil
-</pre>
-
-Setup a new project
--------------------
-
-Do this for every new project.
-
-<pre>
-mkdir my_project
-git init
-stencil gem_template
-rake rename
-</pre>
-
-The last command does a find-replace (gem\_template -> my\_project) on files and filenames.
+Visit [gitcycle.com](http://gitcycle.com) to get set up.
View
@@ -1,27 +1 @@
-require 'bundler/gem_tasks'
-
-# DELETE AFTER USING
-desc "Rename project"
-task :rename do
- name = ENV['NAME'] || File.basename(Dir.pwd)
- camelize = lambda do |str|
- str.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
- end
- dir = Dir['**/gem_template*']
- begin
- from = dir.pop
- if from
- to = from.split('/')
- to[-1].gsub!('gem_template', name)
- FileUtils.mv(from, to.join('/'))
- end
- end while dir.length > 0
- Dir["**/*"].each do |path|
- if File.file?(path)
- `sed -i '' 's/gem_template/#{name}/g' #{path}`
- `sed -i '' 's/GemTemplate/#{camelize.call(name)}/g' #{path}`
- no_space = File.read(path).gsub(/\s+\z/, '')
- File.open(path, 'w') { |f| f.write(no_space) }
- end
- end
-end
+require 'bundler/gem_tasks'
View
@@ -1,3 +0,0 @@
-#!/usr/bin/env ruby
-
-require File.expand_path("../../lib/gem_template", __FILE__)
View
@@ -0,0 +1,3 @@
+#!/usr/bin/env ruby
+
+require File.expand_path("../../lib/gitcycle", __FILE__)
@@ -5,7 +5,7 @@ lib = "#{root}/lib"
$:.unshift lib unless $:.include?(lib)
Gem::Specification.new do |s|
- s.name = "gem_template"
+ s.name = "gitcycle"
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.authors = []
@@ -1,4 +1,4 @@
$:.unshift File.dirname(__FILE__)
-module GemTemplate
+module Gitcycle
end
@@ -1,4 +0,0 @@
-require 'spec_helper'
-
-describe GemTemplate do
-end
View
@@ -0,0 +1,4 @@
+require 'spec_helper'
+
+describe Gitcycle do
+end
View
@@ -5,4 +5,4 @@
$root = File.expand_path('../../', __FILE__)
-require "#{$root}/lib/gem_template"
+require "#{$root}/lib/gitcycle"

0 comments on commit a0eaa25

Please sign in to comment.