kitty_gen 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +24 -4
- data/lib/kitty_gen/cli.rb +12 -3
- data/lib/kitty_gen/version.rb +1 -1
- metadata +9 -9
data/README.textile
CHANGED
@@ -1,16 +1,36 @@
|
|
1
|
-
h1. Rails 3.1 Application Template
|
1
|
+
h1. KittyGen: Rails 3.1 Application Template Management System
|
2
2
|
|
3
|
-
Shave
|
3
|
+
Shave hours off your next project and amaze your client and friends. This productivity crazed "rails developer in london":http://www.jackkinsella.ie/rails-developer-london has put all his favourite configurations and gems into this Rails 3.1 app generator. How would you like:
|
4
|
+
|
5
|
+
# To have a unique RVM gemset setup automatically with an rvmrc file already trusted
|
6
|
+
# Have watchr running your unit and integrations tests on save, notifying you on Growl, working out of the box
|
7
|
+
# Have users and Facebook login working and included in the layout
|
8
|
+
# Have a simple RailsCast style layout (in sass) with homepage, about page and so on. With slim, which is like haml, but better.
|
9
|
+
# A one click heroku deploy
|
10
|
+
# Ruby debugger, wirble, looksee and more ready for debugging
|
11
|
+
# A sensible gitignore
|
12
|
+
# All those annoying files you never use removed
|
13
|
+
|
14
|
+
Unlike other application templates this one is *packaged in a gem* meaning you can call it from the command line as simply as this:
|
15
|
+
@kitty_new new MY_NEW_APP_NAME@
|
16
|
+
|
17
|
+
Not only that, but kitty_gen lets you *upgrade existing applications with its modules*. Want to setup "livereload"? Easy
|
18
|
+
|
19
|
+
@kitty_new list #list all your recipes@
|
20
|
+
@kitty_new add livereload@
|
4
21
|
|
5
22
|
h2. Design Decisions
|
6
23
|
|
7
24
|
# Each recipe is self-contained and so should include all the gems, bundling and generation it needs to do its thing. Yes the generator is slower this way, but the advantage is modularity.
|
8
25
|
# Gems are installed inline instead of in one big file.
|
9
|
-
# Rspec and
|
10
|
-
# A commit is made after every step
|
26
|
+
# Rspec and Cucumber are not included by default because this package is meant produtive developers who shiver at the thought of Cuucmber or Rspec's wordy syntax and added configuration load. See DHH.
|
27
|
+
# A commit is made after every step.
|
28
|
+
# Each recipe is in its own namespace meaning that variables you assign in one recipe do not carry over to others
|
11
29
|
|
12
30
|
h2. Features
|
13
31
|
|
32
|
+
# Create
|
33
|
+
|
14
34
|
h4. Starts Up A Git Repo
|
15
35
|
|
16
36
|
initialize_git_repo
|
data/lib/kitty_gen/cli.rb
CHANGED
@@ -5,9 +5,9 @@ module KittyGen
|
|
5
5
|
case ARGV[0]
|
6
6
|
when "new"
|
7
7
|
new(ARGV[1])
|
8
|
-
when list
|
8
|
+
when "list"
|
9
9
|
list
|
10
|
-
when add
|
10
|
+
when "add"
|
11
11
|
add(ARGV[1])
|
12
12
|
else
|
13
13
|
%Q{Commands available:
|
@@ -25,7 +25,16 @@ module KittyGen
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def list
|
28
|
-
|
28
|
+
recipe_list = File.read(File.join(kitty_gen_dir, "base_recipes")).split("\n").reject {|r| r.match /^\s*#/}
|
29
|
+
puts <<-MESSAGE
|
30
|
+
|
31
|
+
## Listing all possible recipes you can add to your application ##
|
32
|
+
|
33
|
+
#{recipe_list}
|
34
|
+
|
35
|
+
USAGE: kitty_gen add recipe_name
|
36
|
+
|
37
|
+
MESSAGE
|
29
38
|
end
|
30
39
|
|
31
40
|
def add(recipe)
|
data/lib/kitty_gen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitty_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-24 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157551700 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157551700
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: colored
|
27
|
-
requirement: &
|
27
|
+
requirement: &2157551320 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2157551320
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &2157549680 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2157549680
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-debug19
|
49
|
-
requirement: &
|
49
|
+
requirement: &2157548180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2157548180
|
58
58
|
description: Save 5 hours starting your next project and use the latest and greatest
|
59
59
|
best practices.
|
60
60
|
email:
|