very_nifty_generators 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/README +21 -1
  2. data/README.rdoc +20 -1
  3. data/TODO +1 -0
  4. data/bin/nifty_app +28 -0
  5. data/bin/nifty_auth +26 -0
  6. data/bin/nifty_config +26 -0
  7. data/bin/nifty_controller +28 -0
  8. data/bin/nifty_layout +26 -0
  9. data/bin/nifty_scaffold +28 -0
  10. data/lib/generators/nifty/app/USAGE +9 -0
  11. data/lib/generators/nifty/app/app_generator.rb +215 -0
  12. data/lib/generators/nifty/app/templates/Gemfile +28 -0
  13. data/lib/generators/nifty/app/templates/README +216 -0
  14. data/lib/generators/nifty/app/templates/Rakefile +10 -0
  15. data/lib/generators/nifty/app/templates/app/controllers/application_controller.rb +3 -0
  16. data/lib/generators/nifty/app/templates/app/helpers/application_helper.rb +2 -0
  17. data/lib/generators/nifty/app/templates/config/application.rb +37 -0
  18. data/lib/generators/nifty/app/templates/config/boot.rb +38 -0
  19. data/lib/generators/nifty/app/templates/config/environment.rb +5 -0
  20. data/lib/generators/nifty/app/templates/config/environments/development.rb.tt +19 -0
  21. data/lib/generators/nifty/app/templates/config/environments/production.rb.tt +33 -0
  22. data/lib/generators/nifty/app/templates/config/environments/test.rb.tt +29 -0
  23. data/lib/generators/nifty/app/templates/config/initializers/backtrace_silencers.rb +7 -0
  24. data/lib/generators/nifty/app/templates/config/initializers/cookie_verification_secret.rb.tt +7 -0
  25. data/lib/generators/nifty/app/templates/config/initializers/inflections.rb +10 -0
  26. data/lib/generators/nifty/app/templates/config/initializers/mime_types.rb +5 -0
  27. data/lib/generators/nifty/app/templates/config/initializers/session_store.rb.tt +15 -0
  28. data/lib/generators/nifty/app/templates/config/locales/en.yml +5 -0
  29. data/lib/generators/nifty/app/templates/config/routes.rb +58 -0
  30. data/lib/generators/nifty/app/templates/config.ru +4 -0
  31. data/lib/generators/nifty/app/templates/db/seeds.rb +7 -0
  32. data/lib/generators/nifty/app/templates/doc/README_FOR_APP +2 -0
  33. data/lib/generators/nifty/app/templates/gitignore +2 -0
  34. data/lib/generators/nifty/app/templates/public/404.html +26 -0
  35. data/lib/generators/nifty/app/templates/public/422.html +26 -0
  36. data/lib/generators/nifty/app/templates/public/500.html +26 -0
  37. data/lib/generators/nifty/app/templates/public/favicon.ico +0 -0
  38. data/lib/generators/nifty/app/templates/public/images/rails.png +0 -0
  39. data/lib/generators/nifty/app/templates/public/javascripts/application.js +2 -0
  40. data/lib/generators/nifty/app/templates/public/robots.txt +5 -0
  41. data/lib/generators/nifty/app/templates/script/about +3 -0
  42. data/lib/generators/nifty/app/templates/script/console.tt +5 -0
  43. data/lib/generators/nifty/app/templates/script/dbconsole.tt +5 -0
  44. data/lib/generators/nifty/app/templates/script/destroy +2 -0
  45. data/lib/generators/nifty/app/templates/script/generate +2 -0
  46. data/lib/generators/nifty/app/templates/script/performance/benchmarker +2 -0
  47. data/lib/generators/nifty/app/templates/script/performance/profiler +2 -0
  48. data/lib/generators/nifty/app/templates/script/plugin +2 -0
  49. data/lib/generators/nifty/app/templates/script/runner +3 -0
  50. data/lib/generators/nifty/app/templates/script/server.tt +5 -0
  51. data/lib/generators/nifty/app/templates/test/performance/browsing_test.rb +9 -0
  52. data/lib/generators/nifty/app/templates/test/test_helper.rb +13 -0
  53. data/lib/generators/nifty/authentication/USAGE +51 -0
  54. data/lib/generators/nifty/authentication/authentication_generator.rb +2 -1
  55. data/lib/generators/nifty/config/USAGE +24 -0
  56. data/lib/generators/nifty/config/config_generator.rb +2 -1
  57. data/lib/generators/nifty/controller/TODO +1 -0
  58. data/lib/generators/nifty/controller/USAGE +4 -0
  59. data/lib/generators/nifty/controller/controller_generator.rb +80 -0
  60. data/lib/generators/nifty/controller/templates/_controller.rb +4 -0
  61. data/lib/generators/nifty/controller/templates/actions/create.rb +4 -0
  62. data/lib/generators/nifty/controller/templates/actions/destroy.rb +4 -0
  63. data/lib/generators/nifty/controller/templates/actions/edit.rb +3 -0
  64. data/lib/generators/nifty/controller/templates/actions/index.rb +3 -0
  65. data/lib/generators/nifty/controller/templates/actions/new.rb +3 -0
  66. data/lib/generators/nifty/controller/templates/actions/show.rb +3 -0
  67. data/lib/generators/nifty/controller/templates/actions/update.rb +5 -0
  68. data/lib/generators/nifty/controller/templates/controller.rb +24 -0
  69. data/lib/generators/nifty/layout/USAGE +25 -0
  70. data/lib/generators/nifty/scaffold/USAGE +51 -0
  71. data/lib/generators/nifty/scaffold/scaffold_generator.rb +17 -5
  72. data/lib/generators/nifty/scaffold/templates/actions/new.rb +1 -1
  73. metadata +77 -5
@@ -0,0 +1,5 @@
1
+ require File.expand_path('../../config/boot', __FILE__)
2
+ require 'rails/commands/dbconsole'
3
+ require File.expand_path('../../config/application', __FILE__)
4
+
5
+ Rails::DBConsole.start(Rails::Application)
@@ -0,0 +1,2 @@
1
+ require File.expand_path('../../config/environment', __FILE__)
2
+ require 'rails/commands/destroy'
@@ -0,0 +1,2 @@
1
+ require File.expand_path('../../config/environment', __FILE__)
2
+ require 'rails/commands/generate'
@@ -0,0 +1,2 @@
1
+ require File.expand_path('../../../config/environment', __FILE__)
2
+ require 'rails/commands/performance/benchmarker'
@@ -0,0 +1,2 @@
1
+ require File.expand_path('../../../config/environment', __FILE__)
2
+ require 'rails/commands/performance/profiler'
@@ -0,0 +1,2 @@
1
+ require File.expand_path('../../config/application', __FILE__)
2
+ require 'rails/commands/plugin'
@@ -0,0 +1,3 @@
1
+ require File.expand_path('../../config/boot', __FILE__)
2
+ require 'rails/commands/runner'
3
+ require File.expand_path('../../config/environment', __FILE__)
@@ -0,0 +1,5 @@
1
+ require File.expand_path('../../config/boot', __FILE__)
2
+ require 'rails/commands/server'
3
+
4
+ Dir.chdir(File.expand_path('../..', __FILE__))
5
+ Rails::Server.start
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
@@ -0,0 +1,51 @@
1
+ Description:
2
+ Generates a user model, users controller, and sessions controller. The
3
+ users controller handles the registration and the sessions controller
4
+ handles authentication. This is similar to restful_authentication, but
5
+ simpler.
6
+
7
+ IMPORTANT: This generator uses the "title" helper method which is generated
8
+ by the nifty_layout generator. You may want to run that generator first.
9
+
10
+ Usage:
11
+ If you do not pass any arguments, the model name will default to "user", and
12
+ the authentication controller will default to "session". You can override
13
+ each of these respectively by passing one or two arguments. Either name can
14
+ be CamelCased or under_scored.
15
+
16
+ Make sure to setup the authlogic gem if you are using that option.
17
+
18
+ gem "authlogic"
19
+
20
+ Examples:
21
+ script/generate nifty:authentication
22
+
23
+ Creates user model, users_controller, and sessions_controller.
24
+
25
+ script/generate nifty:authentication account
26
+
27
+ Creates account model, accounts_controller, and sessions_controller.
28
+
29
+ script/generate nifty:authentication Account UserSession
30
+
31
+ Creates account model, accounts_controller, and user_sessions_controller.
32
+
33
+ Methods:
34
+ There are several methods generated which you can use in your application.
35
+ Here's a common example of what you might add to your layout.
36
+
37
+ <% if logged_in? %>
38
+ Welcome <%= current_user.username %>! Not you?
39
+ <%= link_to "Log out", logout_path %>
40
+ <% else %>
41
+ <%= link_to "Sign up", signup_path %> or
42
+ <%= link_to "log in", login_path %>.
43
+ <% end %>
44
+
45
+ You can also restrict unregistered users from accessing a controller using
46
+ a before filter. For example.
47
+
48
+ before_filter :login_required, :except => [:index, :show]
49
+
50
+ See the generated file lib/authentication.rb for details.
51
+
@@ -1,5 +1,6 @@
1
1
  require 'generators/nifty'
2
2
  require 'rails/generators/migration'
3
+ require 'active_record'
3
4
 
4
5
  module Nifty
5
6
  module Generators
@@ -140,7 +141,7 @@ module Nifty
140
141
  # FIXME: Should be proxied to ActiveRecord::Generators::Base
141
142
  # Implement the required interface for Rails::Generators::Migration.
142
143
  def next_migration_number(dirname) #:nodoc:
143
- if ActiveRecord::Base.timestamped_migrations
144
+ if ::ActiveRecord::Base.timestamped_migrations
144
145
  Time.now.utc.strftime("%Y%m%d%H%M%S")
145
146
  else
146
147
  "%.3d" % (current_migration_number(dirname) + 1)
@@ -0,0 +1,24 @@
1
+ Description:
2
+ The nifty:config generator creates YAML file in your config
3
+ directory and an initializer to load this config. The config has a
4
+ separate section for each environment. This is a great place to put
5
+ any config settings you don't want in your app.
6
+
7
+ The config is loaded into a constant called APP_CONFIG by default,
8
+ this changes depending on the name you choose to pass the generator.
9
+ Use this constant to access the config settings like this.
10
+
11
+ APP_CONFIG[:some_setting]
12
+
13
+
14
+ Examples:
15
+ script/generate nifty:config
16
+
17
+ Config: config/app_config.yml
18
+ Initializer: config/initializers/load_app_config.rb
19
+
20
+ script/generate nifty:config passwords
21
+
22
+ Config: config/passwords_config.yml
23
+ Initializer: config/initializers/load_passwords_config.rb
24
+
@@ -8,7 +8,8 @@ module Nifty
8
8
  def create_files
9
9
  initializer("load_#{file_name}_config.rb") do
10
10
  <<EOF
11
- raw_config = File.read(RAILS_ROOT + "/config/#{file_name}_config.yml")
11
+ path = File.expand_path('../../app_config.yml', __FILE__)
12
+ raw_config = File.read(path)
12
13
  #{constant_name}_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
13
14
  EOF
14
15
  end
@@ -0,0 +1 @@
1
+ See if we can use the same actions pattern used in the scaffold generator ;)
@@ -0,0 +1,4 @@
1
+ Examples:
2
+ script/generate nifty:scaffold post index create update
3
+
4
+ Will create a controller called "posts" it will contain the actions index, create and update which will all use the DRY rails 3 responder pattern.
@@ -0,0 +1,80 @@
1
+ require 'generators/nifty'
2
+
3
+ module Nifty
4
+ module Generators
5
+ class ControllerGenerator < Base
6
+ no_tasks { attr_accessor :model_name, :controller_actions }
7
+
8
+ argument :controller_name, :type => :string, :required => true, :banner => 'ControllerName'
9
+ argument :controller_actions, :type => :array, :default => [], :banner => 'controller_actions'
10
+ # check_class_collision :suffix => "Controller"
11
+
12
+ class_option :singleton, :type => :boolean, :desc => "Supply to create a singleton controller"
13
+
14
+ def initialize(*args, &block)
15
+ super
16
+
17
+ @controller_actions = []
18
+
19
+ controller_actions.each do |arg|
20
+ @controller_actions << arg
21
+ @controller_actions << 'create' if arg == 'new'
22
+ @controller_actions << 'update' if arg == 'edit'
23
+ end
24
+
25
+ @controller_actions.uniq!
26
+
27
+ if @controller_actions.empty?
28
+ @controller_actions = all_actions - @controller_actions
29
+ end
30
+ end
31
+
32
+ def create_controller
33
+ template '_controller.rb', "app/controllers/#{plural_name}_controller.rb"
34
+ end
35
+
36
+ no_tasks do
37
+ def all_actions
38
+ %w[index show new create edit update destroy]
39
+ end
40
+
41
+ def action?(name)
42
+ controller_actions.include? name.to_s
43
+ end
44
+
45
+ def actions?(*names)
46
+ names.all? { |name| action? name }
47
+ end
48
+
49
+ def singular_name
50
+ controller_name.underscore
51
+ end
52
+
53
+ def plural_name
54
+ controller_name.underscore.pluralize
55
+ end
56
+
57
+ def class_name
58
+ controller_name.camelize
59
+ end
60
+
61
+ def plural_class_name
62
+ controller_name.camelize
63
+ end
64
+
65
+ def controller_methods(dir_name)
66
+ controller_actions.map do |action|
67
+ read_template("#{dir_name}/#{action}.rb")
68
+ end.join(" \n").strip
69
+ end
70
+
71
+ def read_template(relative_path)
72
+ ERB.new(File.read(find_in_source_paths(relative_path)), nil, '-').result(binding)
73
+ end
74
+
75
+ end
76
+
77
+ hook_for :template_engine, :test_framework #, :helper
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,4 @@
1
+ class <%= plural_class_name %>Controller < ApplicationController::Base
2
+ respond_to :html, :xml, :json
3
+ <%= controller_methods :actions %>
4
+ end
@@ -0,0 +1,4 @@
1
+ def create
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.create(params[:<%= singular_name %>]))
3
+ end
4
+
@@ -0,0 +1,4 @@
1
+ def destroy
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
3
+ end
4
+
@@ -0,0 +1,3 @@
1
+ def edit
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
3
+ end
@@ -0,0 +1,3 @@
1
+ def index
2
+ respond_with(@<%= plural_name %> = <%= class_name %>.all)
3
+ end
@@ -0,0 +1,3 @@
1
+ def new
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.new)
3
+ end
@@ -0,0 +1,3 @@
1
+ def show
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
3
+ end
@@ -0,0 +1,5 @@
1
+ def update
2
+ @<%= singular_name %> = <%= class_name %>.find(params[:id])
3
+ @<%= singular_name %>.update_attributes(params[:<%= singular_name %>])
4
+ respond_with(@<%= singular_name %>)
5
+ end
@@ -0,0 +1,24 @@
1
+ class <%= plural_class_name %>Controller < ApplicationController::Base
2
+ respond_to :html, :xml, :json
3
+
4
+ <% for action in actions -%>
5
+ <% unless options[:singleton] && action == 'index '-%>
6
+ def <%= action %>
7
+ <% case action
8
+ when 'create' then -%>
9
+ respond_with(@<%= singular_name %> = <%= class_name %>.create(params[:<%= singular_name %>]))
10
+ <% when 'index' then -%>
11
+ respond_with(@<%= plural_name %> = <%= class_name %>.all)
12
+ <% when 'new' then -%>
13
+ respond_with(@<%= singular_name %> = <%= class_name %>.new)
14
+ <% when 'update' then -%>
15
+ @<%= singular_name %> = <%= class_name %>.find(params[:id])
16
+ @<%= singular_name %>.update_attributes(params[:<%= singular_name %>])
17
+ respond_with(@<%= singular_name %>)
18
+ <% else -%>
19
+ respond_with(@<%= singular_name %> = <%= class_name %>.find(params[:id]))
20
+ <% end -%>
21
+ end
22
+ <% end -%>
23
+ <% end -%>
24
+ end
@@ -0,0 +1,25 @@
1
+ Description:
2
+ The nifty_layout generator creates a basic layout, stylesheet and
3
+ helper which will give some structure to a starting Rails app.
4
+
5
+ The generator takes one argument which will be the name of the
6
+ layout and stylesheet files. If no argument is passed then it defaults
7
+ to "application".
8
+
9
+ The helper module includes some methods which can be called in any
10
+ template or partial to set variables to be used in the layout, such as
11
+ page title and javascript/stylesheet includes.
12
+
13
+ Examples:
14
+ script/generate nifty_layout
15
+
16
+ Layout: app/views/layouts/application.html.erb
17
+ Stylesheet: public/stylesheets/application.css
18
+ Helper: app/helpers/layout_helper.rb
19
+
20
+
21
+ script/generate nifty_layout admin
22
+
23
+ Layout: app/views/layouts/admin.html.erb
24
+ Stylesheet: public/stylesheets/admin.css
25
+ Helper: app/helpers/layout_helper.rb
@@ -0,0 +1,51 @@
1
+ Description:
2
+ Scaffolds an entire resource, from model and migration to controller and
3
+ views. The resource is ready to use as a starting point for your restful,
4
+ resource-oriented application. Tests or specs are also generated depending
5
+ on if you have a "spec" directory or not.
6
+
7
+ IMPORTANT: This generator uses the "title" helper method which is generated
8
+ by the nifty:layout generator. You may want to run that generator first.
9
+
10
+ Usage:
11
+ Pass the name of the model, either CamelCased or under_scored, as the first
12
+ argument, and an optional list of attribute pairs and controller actions.
13
+
14
+ If no controller actions are specified, they will default to index, show,
15
+ new, create, edit, update, and destroy.
16
+
17
+ IMPORTANT: If no attribute pairs are specified, no model will be generated.
18
+ It will try to determine the attributes from an existing model.
19
+
20
+ Attribute pairs are column_name:sql_type arguments specifying the
21
+ model's attributes. Timestamps are added by default, so you don't have to
22
+ specify them by hand as 'created_at:datetime updated_at:datetime'.
23
+
24
+ For example, `nifty:scaffold post name:string content:text hidden:boolean`
25
+ gives you a model with those three attributes, a controller that handles
26
+ the create/show/update/destroy, forms to create and edit your posts, and
27
+ an index that lists them all, as well as a map.resources :posts
28
+ declaration in config/routes.rb.
29
+
30
+ Adding an "!" in the mix of arguments will invert the passed controller
31
+ actions. This will include all 7 controller actitons except the ones
32
+ mentioned. This option doesn't effect model attributes.
33
+
34
+ Examples:
35
+ script/generate nifty:scaffold post
36
+
37
+ Will create a controller called "posts" it will contain all seven
38
+ CRUD actions along with the views. A model will NOT be created,
39
+ instead it will look for an existing model and use those attributes.
40
+
41
+ script/generate nifty:scaffold post name:string content:text index new edit
42
+
43
+ Will create a Post model and migration file with the name and content
44
+ attributes. It will also create a controller with index, new, create,
45
+ edit, and update actions. Notice the create and update actions are
46
+ added automatically with new and edit.
47
+
48
+ script/generate nifty:scaffold post ! show new
49
+
50
+ Creates a posts controller (no model) with index, edit, update, and
51
+ destroy actions.
@@ -24,15 +24,18 @@ module Nifty
24
24
  class_option :shoulda, :desc => 'Use shoulda for test files.', :group => 'Test framework',
25
25
  :type => :boolean
26
26
 
27
+
28
+
27
29
  def initialize(*args, &block)
28
30
  super
29
31
 
32
+ @my_options ||= {}
30
33
  @controller_actions = []
31
34
  @model_attributes = []
32
35
 
33
36
  args_for_c_m.each do |arg|
34
37
  if arg == '!'
35
- options[:invert] = true
38
+ @my_options[:invert] = true
36
39
  elsif arg.include?(':')
37
40
  @model_attributes << Rails::Generators::GeneratedAttribute.new(*arg.split(':'))
38
41
  else
@@ -45,12 +48,12 @@ module Nifty
45
48
  @controller_actions.uniq!
46
49
  @model_attributes.uniq!
47
50
 
48
- if options.invert? || @controller_actions.empty?
51
+ if options.do_invert? || @controller_actions.empty?
49
52
  @controller_actions = all_actions - @controller_actions
50
53
  end
51
54
 
52
55
  if @model_attributes.empty?
53
- options[:skip_model] = true # default to skipping model if no attributes passed
56
+ @my_options[:skip_model] = true # default to skipping model if no attributes passed
54
57
  if model_exists?
55
58
  model_columns_for_attributes.each do |column|
56
59
  @model_attributes << Rails::Generators::GeneratedAttribute.new(column.name.to_s, column.type.to_s)
@@ -61,8 +64,17 @@ module Nifty
61
64
  end
62
65
  end
63
66
 
67
+ def do_skip_model?
68
+ options.skip_model? || @my_options[:skip_model]
69
+ end
70
+
71
+ def do_invert?
72
+ options.invert? || @my_options[:invert]
73
+ end
74
+
75
+
64
76
  def create_model
65
- unless options.skip_model?
77
+ unless do_skip_model?
66
78
  template 'model.rb', "app/models/#{singular_name}.rb"
67
79
  if options.rspec?
68
80
  template "tests/rspec/model.rb", "spec/models/#{singular_name}_spec.rb"
@@ -75,7 +87,7 @@ module Nifty
75
87
  end
76
88
 
77
89
  def create_migration
78
- unless options.skip_model? || options.skip_migration?
90
+ unless do_skip_model? || options.skip_migration?
79
91
  migration_template 'migration.rb', "db/migrate/create_#{plural_name}.rb"
80
92
  end
81
93
  end
@@ -1,3 +1,3 @@
1
1
  def new
2
- respond_with(@<%= singular_name %> =<%= class_name %>.new)
2
+ respond_with(@<%= singular_name %> = <%= class_name %>.new)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: very_nifty_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Mandrup, dvyjones
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-28 00:00:00 +01:00
13
- default_executable:
12
+ date: 2010-01-29 00:00:00 +01:00
13
+ default_executable: nifty_scaffold
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -24,16 +24,72 @@ dependencies:
24
24
  version:
25
25
  description: Rails 3 nifty generators, based on efforts by ryanb and dvyjones
26
26
  email: kmandrup@gmail.com
27
- executables: []
28
-
27
+ executables:
28
+ - nifty_scaffold
29
+ - nifty_auth
30
+ - nifty_config
31
+ - nifty_layout
32
+ - nifty_controller
33
+ - nifty_app
29
34
  extensions: []
30
35
 
31
36
  extra_rdoc_files:
32
37
  - LICENSE
33
38
  - README
34
39
  - README.rdoc
40
+ - TODO
35
41
  files:
42
+ - bin/nifty_app
43
+ - bin/nifty_auth
44
+ - bin/nifty_config
45
+ - bin/nifty_controller
46
+ - bin/nifty_layout
47
+ - bin/nifty_scaffold
36
48
  - lib/generators/nifty.rb
49
+ - lib/generators/nifty/app/USAGE
50
+ - lib/generators/nifty/app/app_generator.rb
51
+ - lib/generators/nifty/app/templates/Gemfile
52
+ - lib/generators/nifty/app/templates/README
53
+ - lib/generators/nifty/app/templates/Rakefile
54
+ - lib/generators/nifty/app/templates/app/controllers/application_controller.rb
55
+ - lib/generators/nifty/app/templates/app/helpers/application_helper.rb
56
+ - lib/generators/nifty/app/templates/config.ru
57
+ - lib/generators/nifty/app/templates/config/application.rb
58
+ - lib/generators/nifty/app/templates/config/boot.rb
59
+ - lib/generators/nifty/app/templates/config/environment.rb
60
+ - lib/generators/nifty/app/templates/config/environments/development.rb.tt
61
+ - lib/generators/nifty/app/templates/config/environments/production.rb.tt
62
+ - lib/generators/nifty/app/templates/config/environments/test.rb.tt
63
+ - lib/generators/nifty/app/templates/config/initializers/backtrace_silencers.rb
64
+ - lib/generators/nifty/app/templates/config/initializers/cookie_verification_secret.rb.tt
65
+ - lib/generators/nifty/app/templates/config/initializers/inflections.rb
66
+ - lib/generators/nifty/app/templates/config/initializers/mime_types.rb
67
+ - lib/generators/nifty/app/templates/config/initializers/session_store.rb.tt
68
+ - lib/generators/nifty/app/templates/config/locales/en.yml
69
+ - lib/generators/nifty/app/templates/config/routes.rb
70
+ - lib/generators/nifty/app/templates/db/seeds.rb
71
+ - lib/generators/nifty/app/templates/doc/README_FOR_APP
72
+ - lib/generators/nifty/app/templates/gitignore
73
+ - lib/generators/nifty/app/templates/public/404.html
74
+ - lib/generators/nifty/app/templates/public/422.html
75
+ - lib/generators/nifty/app/templates/public/500.html
76
+ - lib/generators/nifty/app/templates/public/favicon.ico
77
+ - lib/generators/nifty/app/templates/public/images/rails.png
78
+ - lib/generators/nifty/app/templates/public/javascripts/application.js
79
+ - lib/generators/nifty/app/templates/public/robots.txt
80
+ - lib/generators/nifty/app/templates/script/about
81
+ - lib/generators/nifty/app/templates/script/console.tt
82
+ - lib/generators/nifty/app/templates/script/dbconsole.tt
83
+ - lib/generators/nifty/app/templates/script/destroy
84
+ - lib/generators/nifty/app/templates/script/generate
85
+ - lib/generators/nifty/app/templates/script/performance/benchmarker
86
+ - lib/generators/nifty/app/templates/script/performance/profiler
87
+ - lib/generators/nifty/app/templates/script/plugin
88
+ - lib/generators/nifty/app/templates/script/runner
89
+ - lib/generators/nifty/app/templates/script/server.tt
90
+ - lib/generators/nifty/app/templates/test/performance/browsing_test.rb
91
+ - lib/generators/nifty/app/templates/test/test_helper.rb
92
+ - lib/generators/nifty/authentication/USAGE
37
93
  - lib/generators/nifty/authentication/authentication_generator.rb
38
94
  - lib/generators/nifty/authentication/templates/authentication.rb
39
95
  - lib/generators/nifty/authentication/templates/authlogic_session.rb
@@ -57,14 +113,29 @@ files:
57
113
  - lib/generators/nifty/authentication/templates/views/erb/signup.html.erb
58
114
  - lib/generators/nifty/authentication/templates/views/haml/login.html.haml
59
115
  - lib/generators/nifty/authentication/templates/views/haml/signup.html.haml
116
+ - lib/generators/nifty/config/USAGE
60
117
  - lib/generators/nifty/config/config_generator.rb
61
118
  - lib/generators/nifty/config/templates/config.yml
119
+ - lib/generators/nifty/controller/TODO
120
+ - lib/generators/nifty/controller/USAGE
121
+ - lib/generators/nifty/controller/controller_generator.rb
122
+ - lib/generators/nifty/controller/templates/_controller.rb
123
+ - lib/generators/nifty/controller/templates/actions/create.rb
124
+ - lib/generators/nifty/controller/templates/actions/destroy.rb
125
+ - lib/generators/nifty/controller/templates/actions/edit.rb
126
+ - lib/generators/nifty/controller/templates/actions/index.rb
127
+ - lib/generators/nifty/controller/templates/actions/new.rb
128
+ - lib/generators/nifty/controller/templates/actions/show.rb
129
+ - lib/generators/nifty/controller/templates/actions/update.rb
130
+ - lib/generators/nifty/controller/templates/controller.rb
131
+ - lib/generators/nifty/layout/USAGE
62
132
  - lib/generators/nifty/layout/layout_generator.rb
63
133
  - lib/generators/nifty/layout/templates/helper.rb
64
134
  - lib/generators/nifty/layout/templates/layout.html.erb
65
135
  - lib/generators/nifty/layout/templates/layout.html.haml
66
136
  - lib/generators/nifty/layout/templates/stylesheet.css
67
137
  - lib/generators/nifty/layout/templates/stylesheet.sass
138
+ - lib/generators/nifty/scaffold/USAGE
68
139
  - lib/generators/nifty/scaffold/scaffold_generator.rb
69
140
  - lib/generators/nifty/scaffold/templates/actions/create.rb
70
141
  - lib/generators/nifty/scaffold/templates/actions/destroy.rb
@@ -118,6 +189,7 @@ files:
118
189
  - LICENSE
119
190
  - README
120
191
  - README.rdoc
192
+ - TODO
121
193
  has_rdoc: true
122
194
  homepage: http://github.com/kristianmandrup/very_nifty_generators
123
195
  licenses: []