kitty_gen 0.0.14 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- # Have a simple RailsCast style layout (in sass) with homepage, about page and so on. With slim, which is like haml, but better.
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
- @kitty_new new MY_NEW_APP_NAME@
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
- @kitty_new list #list all your recipes@
20
- @kitty_new add livereload@
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.
@@ -1,7 +1,5 @@
1
1
  module KittyGen
2
2
 
3
3
  require "kitty_gen/cli"
4
- require "devise"
5
- require "sass-rails"
6
4
 
7
5
  end
@@ -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
- ## Listing all possible recipes you can add to your application ##
32
-
33
- #{recipe_list}
30
+ ## Kitty Gen ##
31
+ ## Listing all possible recipes you can add to your application ##
34
32
 
35
- USAGE: kitty_gen add recipe_name
33
+ #{" " + recipe_list}
36
34
 
37
- MESSAGE
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
- exec "rake rails:template #{recipe_location}"
41
+ puts recipe_location
42
+ exec "rake rails:template LOCATION=#{recipe_location}"
43
43
  end
44
44
 
45
45
  def master_template
@@ -1,4 +1,4 @@
1
1
  module KittyGen
2
- VERSION = "0.0.14" #aka Beta
2
+ VERSION = "0.0.16" #aka Beta
3
3
  end
4
4
 
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.14
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: &2157551700 !ruby/object:Gem::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: *2157551700
24
+ version_requirements: *2153571480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: colored
27
- requirement: &2157551320 !ruby/object:Gem::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: *2157551320
35
+ version_requirements: *2153571100
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &2157549680 !ruby/object:Gem::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: *2157549680
46
+ version_requirements: *2153570440
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ruby-debug19
49
- requirement: &2157548180 !ruby/object:Gem::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: *2157548180
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: