gem_template 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 688dee86c296e4f8a4fbf2aa41bc96b41d5d39ef
4
+ data.tar.gz: bab375069234a837d1e719c48271e38fef5baa55
5
+ SHA512:
6
+ metadata.gz: 55294b28f0418f35a3eb7dfb98fa24a24e284eddbb97f4f4181c954f07e7d0408e3d296ac8b2d104eaba22e7ff4daa86508e1a129760f9b129d0902df1b836fb
7
+ data.tar.gz: 67798a0b0cc9e2b15260c7486f8a5c710130f5b9ce04d7ce8fb86c883a5377acbd441fce41dc3eeb263d499ba1a0089b056a890cad770d9ff5b9f1f0ae1d875c
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .DS_Store
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ gem_template
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p247
data/.travis.yml ADDED
@@ -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
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,42 @@
1
+ ##GemTemplate
2
+
3
+ A gem template for new Ruby projects.
4
+
5
+ ###Goals
6
+
7
+ * Use widely accepted practices and libraries
8
+ * Automate the creation and renaming of projects
9
+ * Projects share git history for easy updates
10
+ * Add functionality through template [branches](https://github.com/winton/gem_template/branches)
11
+
12
+ ###Install
13
+
14
+ gem install gem_template
15
+
16
+ ###Create a new project
17
+
18
+ gem_template [project_name] [ProjectName] [branch...]
19
+
20
+ ###Available branches
21
+
22
+ * master
23
+ * active_wrapper
24
+ * rails
25
+ * sinatra
26
+ * sinatra-activerecord
27
+ * sinatra-activerecord-authlogic
28
+ * spec-activerecord
29
+ * spec-framework
30
+ * stasis
31
+
32
+ ### Contribute
33
+
34
+ [Create an issue](https://github.com/winton/gem_template/issues/new) to discuss template changes.
35
+
36
+ Pull requests for template changes and new branches are even better.
37
+
38
+ ### Stay up to date
39
+
40
+ [Star this project](https://github.com/winton/gem_template#) on Github.
41
+
42
+ [Follow Winton Welsh](http://twitter.com/intent/user?screen_name=wintonius) on Twitter.
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
data/bin/gem_template ADDED
@@ -0,0 +1,39 @@
1
+ #!/bin/bash
2
+
3
+ echo ""
4
+ git clone https://github.com/winton/gem_template.git $1
5
+
6
+ if [ $? -eq 0 ]; then
7
+ cd $1
8
+ else
9
+ exit 1
10
+ fi
11
+
12
+ echo -e "\nFetching..."
13
+ git fetch
14
+
15
+ echo -e "\nWriting .ruby-gemset..."
16
+ echo $1 > .ruby-gemset
17
+
18
+ echo -e "\nInstalling base gems..."
19
+ gem install bundler && bundle
20
+
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 ""
35
+
36
+ # -- replace
37
+ # #!/usr/bin/env ruby
38
+ #
39
+ # require File.expand_path("../../lib/gem_template", __FILE__)
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "gem_template"
7
+ spec.version = "0.0.1"
8
+ spec.authors = ["Winton Welsh"]
9
+ spec.email = ["mail@wintoni.us"]
10
+ spec.description = %q{Gem template for new Ruby projects}
11
+ spec.summary = %q{Gem template for new Ruby projects.}
12
+ spec.homepage = "https://github.com/winton/gem_template"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.3"
21
+ spec.add_development_dependency "namer"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "simplecov"
25
+ end
@@ -0,0 +1,4 @@
1
+ $:.unshift File.dirname(__FILE__)
2
+
3
+ module GemTemplate
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ describe GemTemplate do
4
+ end
@@ -0,0 +1,7 @@
1
+ unless ENV['CI']
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+ end
5
+
6
+ $root = File.expand_path('../../', __FILE__)
7
+ require "#{$root}/lib/gem_template"
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gem_template
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Winton Welsh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: namer
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Gem template for new Ruby projects
84
+ email:
85
+ - mail@wintoni.us
86
+ executables:
87
+ - gem_template
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - .gitignore
92
+ - .ruby-gemset
93
+ - .ruby-version
94
+ - .travis.yml
95
+ - Gemfile
96
+ - LICENSE
97
+ - README.md
98
+ - Rakefile
99
+ - bin/gem_template
100
+ - gem_template.gemspec
101
+ - lib/gem_template.rb
102
+ - spec/gem_template_spec.rb
103
+ - spec/spec_helper.rb
104
+ homepage: https://github.com/winton/gem_template
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.0.3
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Gem template for new Ruby projects.
128
+ test_files:
129
+ - spec/gem_template_spec.rb
130
+ - spec/spec_helper.rb