kitty_gen 0.0.14 → 0.0.16
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 +8 -5
- data/lib/kitty_gen.rb +0 -2
- data/lib/kitty_gen/cli.rb +8 -8
- data/lib/kitty_gen/version.rb +1 -1
- metadata +9 -9
data/README.textile
CHANGED
@@ -4,23 +4,26 @@ Shave hours off your next project and amaze your client and friends. This produc
|
|
4
4
|
|
5
5
|
# To have a unique RVM gemset setup automatically with an rvmrc file already trusted
|
6
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
|
-
#
|
7
|
+
# Have users using Devise and omniauth Facebook login working already and included in the layout?
|
8
|
+
# Automatically update the css/html/js in the browser after saving _without needing to reload the page_ by using livereload?
|
9
|
+
# Have a simple RailsCast style layout (in sass) with homepage, about page and layout page written using slim, which is like haml, but faster and better.
|
9
10
|
# A one click heroku deploy
|
10
11
|
# Ruby debugger, wirble, looksee and more ready for debugging
|
11
12
|
# A sensible gitignore
|
12
13
|
# All those annoying files you never use removed
|
13
14
|
|
14
15
|
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
|
-
|
16
|
+
@$ kitty_new new MY_NEW_APP_NAME@
|
16
17
|
|
17
18
|
Not only that, but kitty_gen lets you *upgrade existing applications with its modules*. Want to setup "livereload"? Easy
|
18
19
|
|
19
|
-
|
20
|
-
|
20
|
+
@$ kitty_new list #list all your recipes@
|
21
|
+
|
22
|
+
@$ kitty_new add livereload@
|
21
23
|
|
22
24
|
h2. Design Decisions
|
23
25
|
|
26
|
+
# This is Mac only and will remain Mac only. Sorry.
|
24
27
|
# 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.
|
25
28
|
# Gems are installed inline instead of in one big file.
|
26
29
|
# 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.
|
data/lib/kitty_gen.rb
CHANGED
data/lib/kitty_gen/cli.rb
CHANGED
@@ -25,21 +25,21 @@ module KittyGen
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def list
|
28
|
-
recipe_list = File.read(File.join(kitty_gen_dir, "base_recipes")).split("\n").reject {|r| r.match /^\s*#/}
|
28
|
+
recipe_list = File.read(File.join(kitty_gen_dir, "base_recipes")).split("\n").reject {|r| r.match /^\s*#/}.join("\n ")
|
29
29
|
puts <<-MESSAGE
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
#{recipe_list}
|
30
|
+
## Kitty Gen ##
|
31
|
+
## Listing all possible recipes you can add to your application ##
|
34
32
|
|
35
|
-
|
33
|
+
#{" " + recipe_list}
|
36
34
|
|
37
|
-
|
35
|
+
USAGE: kitty_gen add recipe_name
|
36
|
+
MESSAGE
|
38
37
|
end
|
39
38
|
|
40
39
|
def add(recipe)
|
41
40
|
recipe_location = File.join(kitty_gen_dir, "recipes", (recipe + "_recipe.rb"))
|
42
|
-
|
41
|
+
puts recipe_location
|
42
|
+
exec "rake rails:template LOCATION=#{recipe_location}"
|
43
43
|
end
|
44
44
|
|
45
45
|
def master_template
|
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.16
|
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: &2153571480 !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: *2153571480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: colored
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153571100 !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: *2153571100
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153570440 !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: *2153570440
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-debug19
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153569920 !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: *2153569920
|
58
58
|
description: Save 5 hours starting your next project and use the latest and greatest
|
59
59
|
best practices.
|
60
60
|
email:
|