focus-generator 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. data/Gemfile +2 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +109 -0
  4. data/Rakefile +10 -0
  5. data/features/fcus_authentication.feature +80 -0
  6. data/features/fcus_config.feature +17 -0
  7. data/features/fcus_layout.feature +20 -0
  8. data/features/fcus_scaffold.feature +80 -0
  9. data/features/step_definitions/common_steps.rb +62 -0
  10. data/features/step_definitions/rails_setup_steps.rb +6 -0
  11. data/features/support/env.rb +6 -0
  12. data/features/support/matchers.rb +7 -0
  13. data/lib/generators/fcus.rb +28 -0
  14. data/lib/generators/fcus/authentication/USAGE +50 -0
  15. data/lib/generators/fcus/authentication/authentication_generator.rb +154 -0
  16. data/lib/generators/fcus/authentication/templates/authlogic_session.rb +2 -0
  17. data/lib/generators/fcus/authentication/templates/controller_authentication.rb +60 -0
  18. data/lib/generators/fcus/authentication/templates/fixtures.yml +24 -0
  19. data/lib/generators/fcus/authentication/templates/migration.rb +20 -0
  20. data/lib/generators/fcus/authentication/templates/sessions_controller.rb +41 -0
  21. data/lib/generators/fcus/authentication/templates/sessions_helper.rb +2 -0
  22. data/lib/generators/fcus/authentication/templates/tests/rspec/sessions_controller.rb +39 -0
  23. data/lib/generators/fcus/authentication/templates/tests/rspec/user.rb +83 -0
  24. data/lib/generators/fcus/authentication/templates/tests/rspec/users_controller.rb +56 -0
  25. data/lib/generators/fcus/authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
  26. data/lib/generators/fcus/authentication/templates/tests/shoulda/user.rb +85 -0
  27. data/lib/generators/fcus/authentication/templates/tests/shoulda/users_controller.rb +61 -0
  28. data/lib/generators/fcus/authentication/templates/tests/testunit/sessions_controller.rb +36 -0
  29. data/lib/generators/fcus/authentication/templates/tests/testunit/user.rb +88 -0
  30. data/lib/generators/fcus/authentication/templates/tests/testunit/users_controller.rb +53 -0
  31. data/lib/generators/fcus/authentication/templates/user.rb +38 -0
  32. data/lib/generators/fcus/authentication/templates/users_controller.rb +32 -0
  33. data/lib/generators/fcus/authentication/templates/users_helper.rb +2 -0
  34. data/lib/generators/fcus/authentication/templates/views/erb/_form.html.erb +20 -0
  35. data/lib/generators/fcus/authentication/templates/views/erb/edit.html.erb +3 -0
  36. data/lib/generators/fcus/authentication/templates/views/erb/login.html.erb +30 -0
  37. data/lib/generators/fcus/authentication/templates/views/erb/signup.html.erb +5 -0
  38. data/lib/generators/fcus/authentication/templates/views/haml/_form.html.haml +16 -0
  39. data/lib/generators/fcus/authentication/templates/views/haml/edit.html.haml +3 -0
  40. data/lib/generators/fcus/authentication/templates/views/haml/login.html.haml +26 -0
  41. data/lib/generators/fcus/authentication/templates/views/haml/signup.html.haml +5 -0
  42. data/lib/generators/fcus/config/USAGE +23 -0
  43. data/lib/generators/fcus/config/config_generator.rb +24 -0
  44. data/lib/generators/fcus/config/templates/config.yml +8 -0
  45. data/lib/generators/fcus/config/templates/load_config.rb +2 -0
  46. data/lib/generators/fcus/layout/USAGE +25 -0
  47. data/lib/generators/fcus/layout/layout_generator.rb +29 -0
  48. data/lib/generators/fcus/layout/templates/error_messages_helper.rb +23 -0
  49. data/lib/generators/fcus/layout/templates/layout.html.erb +19 -0
  50. data/lib/generators/fcus/layout/templates/layout.html.haml +21 -0
  51. data/lib/generators/fcus/layout/templates/layout_helper.rb +22 -0
  52. data/lib/generators/fcus/layout/templates/stylesheet.css +83 -0
  53. data/lib/generators/fcus/layout/templates/stylesheet.sass +73 -0
  54. data/lib/generators/fcus/scaffold/USAGE +51 -0
  55. data/lib/generators/fcus/scaffold/scaffold_generator.rb +318 -0
  56. data/lib/generators/fcus/scaffold/templates/actions/create.rb +8 -0
  57. data/lib/generators/fcus/scaffold/templates/actions/destroy.rb +5 -0
  58. data/lib/generators/fcus/scaffold/templates/actions/edit.rb +3 -0
  59. data/lib/generators/fcus/scaffold/templates/actions/index.rb +3 -0
  60. data/lib/generators/fcus/scaffold/templates/actions/new.rb +3 -0
  61. data/lib/generators/fcus/scaffold/templates/actions/show.rb +3 -0
  62. data/lib/generators/fcus/scaffold/templates/actions/update.rb +8 -0
  63. data/lib/generators/fcus/scaffold/templates/controller.rb +3 -0
  64. data/lib/generators/fcus/scaffold/templates/fixtures.yml +9 -0
  65. data/lib/generators/fcus/scaffold/templates/helper.rb +2 -0
  66. data/lib/generators/fcus/scaffold/templates/migration.rb +16 -0
  67. data/lib/generators/fcus/scaffold/templates/model.rb +4 -0
  68. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/create.rb +11 -0
  69. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  70. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  71. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/index.rb +4 -0
  72. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/new.rb +4 -0
  73. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/show.rb +4 -0
  74. data/lib/generators/fcus/scaffold/templates/tests/rspec/actions/update.rb +11 -0
  75. data/lib/generators/fcus/scaffold/templates/tests/rspec/controller.rb +8 -0
  76. data/lib/generators/fcus/scaffold/templates/tests/rspec/model.rb +7 -0
  77. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  78. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  79. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  80. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  81. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  82. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  83. data/lib/generators/fcus/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  84. data/lib/generators/fcus/scaffold/templates/tests/shoulda/controller.rb +5 -0
  85. data/lib/generators/fcus/scaffold/templates/tests/shoulda/model.rb +7 -0
  86. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/create.rb +11 -0
  87. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  88. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  89. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/index.rb +4 -0
  90. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/new.rb +4 -0
  91. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/show.rb +4 -0
  92. data/lib/generators/fcus/scaffold/templates/tests/testunit/actions/update.rb +11 -0
  93. data/lib/generators/fcus/scaffold/templates/tests/testunit/controller.rb +5 -0
  94. data/lib/generators/fcus/scaffold/templates/tests/testunit/model.rb +7 -0
  95. data/lib/generators/fcus/scaffold/templates/views/erb/_form.html.erb +10 -0
  96. data/lib/generators/fcus/scaffold/templates/views/erb/edit.html.erb +14 -0
  97. data/lib/generators/fcus/scaffold/templates/views/erb/index.html.erb +29 -0
  98. data/lib/generators/fcus/scaffold/templates/views/erb/new.html.erb +7 -0
  99. data/lib/generators/fcus/scaffold/templates/views/erb/show.html.erb +20 -0
  100. data/lib/generators/fcus/scaffold/templates/views/haml/_form.html.haml +9 -0
  101. data/lib/generators/fcus/scaffold/templates/views/haml/edit.html.haml +14 -0
  102. data/lib/generators/fcus/scaffold/templates/views/haml/index.html.haml +25 -0
  103. data/lib/generators/fcus/scaffold/templates/views/haml/new.html.haml +7 -0
  104. data/lib/generators/fcus/scaffold/templates/views/haml/show.html.haml +20 -0
  105. data/rails_generators/fcus_authentication/USAGE +50 -0
  106. data/rails_generators/fcus_authentication/fcus_authentication_generator.rb +128 -0
  107. data/rails_generators/fcus_authentication/lib/insert_commands.rb +74 -0
  108. data/rails_generators/fcus_authentication/templates/authentication.rb +61 -0
  109. data/rails_generators/fcus_authentication/templates/authlogic_session.rb +2 -0
  110. data/rails_generators/fcus_authentication/templates/fixtures.yml +24 -0
  111. data/rails_generators/fcus_authentication/templates/migration.rb +20 -0
  112. data/rails_generators/fcus_authentication/templates/sessions_controller.rb +45 -0
  113. data/rails_generators/fcus_authentication/templates/sessions_helper.rb +2 -0
  114. data/rails_generators/fcus_authentication/templates/tests/rspec/sessions_controller.rb +39 -0
  115. data/rails_generators/fcus_authentication/templates/tests/rspec/user.rb +83 -0
  116. data/rails_generators/fcus_authentication/templates/tests/rspec/users_controller.rb +26 -0
  117. data/rails_generators/fcus_authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
  118. data/rails_generators/fcus_authentication/templates/tests/shoulda/user.rb +85 -0
  119. data/rails_generators/fcus_authentication/templates/tests/shoulda/users_controller.rb +27 -0
  120. data/rails_generators/fcus_authentication/templates/tests/testunit/sessions_controller.rb +36 -0
  121. data/rails_generators/fcus_authentication/templates/tests/testunit/user.rb +88 -0
  122. data/rails_generators/fcus_authentication/templates/tests/testunit/users_controller.rb +23 -0
  123. data/rails_generators/fcus_authentication/templates/user.rb +42 -0
  124. data/rails_generators/fcus_authentication/templates/users_controller.rb +18 -0
  125. data/rails_generators/fcus_authentication/templates/users_helper.rb +2 -0
  126. data/rails_generators/fcus_authentication/templates/views/erb/login.html.erb +30 -0
  127. data/rails_generators/fcus_authentication/templates/views/erb/signup.html.erb +24 -0
  128. data/rails_generators/fcus_authentication/templates/views/haml/login.html.haml +30 -0
  129. data/rails_generators/fcus_authentication/templates/views/haml/signup.html.haml +24 -0
  130. data/rails_generators/fcus_config/USAGE +23 -0
  131. data/rails_generators/fcus_config/fcus_config_generator.rb +32 -0
  132. data/rails_generators/fcus_config/templates/config.yml +8 -0
  133. data/rails_generators/fcus_config/templates/load_config.rb +2 -0
  134. data/rails_generators/fcus_layout/USAGE +25 -0
  135. data/rails_generators/fcus_layout/fcus_layout_generator.rb +44 -0
  136. data/rails_generators/fcus_layout/templates/helper.rb +22 -0
  137. data/rails_generators/fcus_layout/templates/layout.html.erb +22 -0
  138. data/rails_generators/fcus_layout/templates/layout.html.haml +19 -0
  139. data/rails_generators/fcus_layout/templates/stylesheet.css +81 -0
  140. data/rails_generators/fcus_layout/templates/stylesheet.sass +67 -0
  141. data/rails_generators/fcus_scaffold/USAGE +51 -0
  142. data/rails_generators/fcus_scaffold/fcus_scaffold_generator.rb +232 -0
  143. data/rails_generators/fcus_scaffold/templates/actions/create.rb +9 -0
  144. data/rails_generators/fcus_scaffold/templates/actions/destroy.rb +6 -0
  145. data/rails_generators/fcus_scaffold/templates/actions/edit.rb +3 -0
  146. data/rails_generators/fcus_scaffold/templates/actions/index.rb +3 -0
  147. data/rails_generators/fcus_scaffold/templates/actions/new.rb +3 -0
  148. data/rails_generators/fcus_scaffold/templates/actions/show.rb +3 -0
  149. data/rails_generators/fcus_scaffold/templates/actions/update.rb +9 -0
  150. data/rails_generators/fcus_scaffold/templates/controller.rb +3 -0
  151. data/rails_generators/fcus_scaffold/templates/fixtures.yml +9 -0
  152. data/rails_generators/fcus_scaffold/templates/helper.rb +2 -0
  153. data/rails_generators/fcus_scaffold/templates/migration.rb +16 -0
  154. data/rails_generators/fcus_scaffold/templates/model.rb +3 -0
  155. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/create.rb +11 -0
  156. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  157. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  158. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/index.rb +4 -0
  159. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/new.rb +4 -0
  160. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/show.rb +4 -0
  161. data/rails_generators/fcus_scaffold/templates/tests/rspec/actions/update.rb +11 -0
  162. data/rails_generators/fcus_scaffold/templates/tests/rspec/controller.rb +8 -0
  163. data/rails_generators/fcus_scaffold/templates/tests/rspec/model.rb +7 -0
  164. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  165. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  166. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  167. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  168. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  169. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  170. data/rails_generators/fcus_scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  171. data/rails_generators/fcus_scaffold/templates/tests/shoulda/controller.rb +5 -0
  172. data/rails_generators/fcus_scaffold/templates/tests/shoulda/model.rb +7 -0
  173. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/create.rb +11 -0
  174. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  175. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  176. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/index.rb +4 -0
  177. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/new.rb +4 -0
  178. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/show.rb +4 -0
  179. data/rails_generators/fcus_scaffold/templates/tests/testunit/actions/update.rb +11 -0
  180. data/rails_generators/fcus_scaffold/templates/tests/testunit/controller.rb +5 -0
  181. data/rails_generators/fcus_scaffold/templates/tests/testunit/model.rb +7 -0
  182. data/rails_generators/fcus_scaffold/templates/views/erb/_form.html.erb +10 -0
  183. data/rails_generators/fcus_scaffold/templates/views/erb/edit.html.erb +14 -0
  184. data/rails_generators/fcus_scaffold/templates/views/erb/index.html.erb +29 -0
  185. data/rails_generators/fcus_scaffold/templates/views/erb/new.html.erb +7 -0
  186. data/rails_generators/fcus_scaffold/templates/views/erb/show.html.erb +20 -0
  187. data/rails_generators/fcus_scaffold/templates/views/haml/_form.html.haml +10 -0
  188. data/rails_generators/fcus_scaffold/templates/views/haml/edit.html.haml +14 -0
  189. data/rails_generators/fcus_scaffold/templates/views/haml/index.html.haml +25 -0
  190. data/rails_generators/fcus_scaffold/templates/views/haml/new.html.haml +7 -0
  191. data/rails_generators/fcus_scaffold/templates/views/haml/show.html.haml +20 -0
  192. data/test/test_fcus_authentication_generator.rb +274 -0
  193. data/test/test_fcus_config_generator.rb +37 -0
  194. data/test/test_fcus_layout_generator.rb +42 -0
  195. data/test/test_fcus_scaffold_generator.rb +534 -0
  196. data/test/test_helper.rb +119 -0
  197. metadata +314 -0
@@ -0,0 +1,119 @@
1
+ require 'test/unit'
2
+
3
+ # Must set before requiring generator libs.
4
+ TMP_ROOT = File.dirname(__FILE__) + "/tmp" unless defined?(TMP_ROOT)
5
+ PROJECT_NAME = "myproject" unless defined?(PROJECT_NAME)
6
+ app_root = File.join(TMP_ROOT, PROJECT_NAME)
7
+ if defined?(APP_ROOT)
8
+ APP_ROOT.replace(app_root)
9
+ else
10
+ APP_ROOT = app_root
11
+ end
12
+ if defined?(RAILS_ROOT)
13
+ RAILS_ROOT.replace(app_root)
14
+ else
15
+ RAILS_ROOT = app_root
16
+ end
17
+
18
+ require 'rubygems'
19
+ gem 'rails', '2.0.2' # getting a Rails.configuration error with 2.1
20
+ gem 'rubigen', '1.4'
21
+ gem 'shoulda', '2.0.6'
22
+ require 'rubigen' # gem install rubigen --version=1.4
23
+ require 'rubigen/helpers/generator_test_helper'
24
+ require 'rails_generator'
25
+ require 'shoulda' # gem install shoulda --version=2.0.6
26
+ require 'mocha'
27
+
28
+ module FcusGenerators
29
+ module TestHelper
30
+ include RubiGen::GeneratorTestHelper
31
+
32
+ def setup
33
+ bare_setup
34
+ end
35
+
36
+ def teardown
37
+ bare_teardown
38
+ end
39
+
40
+ protected
41
+
42
+ def run_rails_generator(generator, *args)
43
+ options = args.pop if args.last.kind_of? Hash
44
+ options ||= {}
45
+ run_generator(generator.to_s, args, generator_sources, options.reverse_merge(:quiet => true))
46
+ end
47
+
48
+ def generator_sources
49
+ [RubiGen::PathSource.new(:test, File.join(File.dirname(__FILE__), "..", "rails_generators"))]
50
+ end
51
+ end
52
+
53
+ module ShouldaAdditions
54
+ def rails_generator(*args)
55
+ setup do
56
+ run_rails_generator(*args)
57
+ end
58
+ end
59
+
60
+ def should_generate_file(file, &block)
61
+ should "generate file #{file}" do
62
+ yield("foo") if block_given?
63
+ assert_generated_file(file)
64
+ end
65
+ end
66
+
67
+ def should_not_generate_file(file)
68
+ should "not generate file #{file}" do
69
+ assert !File.exists?("#{APP_ROOT}/#{file}"),"The file '#{file}' should not exist"
70
+ end
71
+ end
72
+ end
73
+ end
74
+
75
+ class Thoughtbot::Shoulda::Context
76
+ include FcusGenerators::ShouldaAdditions
77
+ end
78
+
79
+ # Mock out what we need from AR::Base.
80
+ module ActiveRecord
81
+ class Base
82
+ class << self
83
+ attr_accessor :pluralize_table_names, :columns
84
+
85
+ def add_column(name, type = :string)
86
+ returning ActiveRecord::ConnectionAdapters::Column.new(name, nil) do |column|
87
+ column.type = type
88
+ @columns ||= []
89
+ @columns << column
90
+ end
91
+ end
92
+ end
93
+ self.pluralize_table_names = true
94
+ end
95
+
96
+ module ConnectionAdapters
97
+ class Column
98
+ attr_accessor :name, :default, :type, :limit, :null, :sql_type, :precision, :scale
99
+
100
+ def initialize(name, default, sql_type = nil)
101
+ @name = name
102
+ @default = default
103
+ @type = @sql_type = sql_type
104
+ end
105
+
106
+ def human_name
107
+ @name.humanize
108
+ end
109
+ end
110
+ end
111
+ end
112
+
113
+ # And what we need from ActionView
114
+ module ActionView
115
+ module Helpers
116
+ module ActiveRecordHelper; end
117
+ class InstanceTag; end
118
+ end
119
+ end
metadata ADDED
@@ -0,0 +1,314 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: focus-generator
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Albert Li
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-03-30 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec-rails
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 2.0.1
24
+ type: :development
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: cucumber
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 0.9.2
35
+ type: :development
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: rails
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.2
46
+ type: :development
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: mocha
50
+ prerelease: false
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: 0.9.8
57
+ type: :development
58
+ version_requirements: *id004
59
+ - !ruby/object:Gem::Dependency
60
+ name: bcrypt-ruby
61
+ prerelease: false
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 2.1.2
68
+ type: :development
69
+ version_requirements: *id005
70
+ - !ruby/object:Gem::Dependency
71
+ name: sqlite3-ruby
72
+ prerelease: false
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 1.3.1
79
+ type: :development
80
+ version_requirements: *id006
81
+ description: A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
82
+ email: ryan@railscasts.com
83
+ executables: []
84
+
85
+ extensions: []
86
+
87
+ extra_rdoc_files: []
88
+
89
+ files:
90
+ - lib/generators/fcus.rb
91
+ - lib/generators/fcus/scaffold/USAGE
92
+ - lib/generators/fcus/scaffold/templates/controller.rb
93
+ - lib/generators/fcus/scaffold/templates/helper.rb
94
+ - lib/generators/fcus/scaffold/templates/views/erb/index.html.erb
95
+ - lib/generators/fcus/scaffold/templates/views/erb/new.html.erb
96
+ - lib/generators/fcus/scaffold/templates/views/erb/edit.html.erb
97
+ - lib/generators/fcus/scaffold/templates/views/erb/show.html.erb
98
+ - lib/generators/fcus/scaffold/templates/views/erb/_form.html.erb
99
+ - lib/generators/fcus/scaffold/templates/views/haml/show.html.haml
100
+ - lib/generators/fcus/scaffold/templates/views/haml/new.html.haml
101
+ - lib/generators/fcus/scaffold/templates/views/haml/edit.html.haml
102
+ - lib/generators/fcus/scaffold/templates/views/haml/index.html.haml
103
+ - lib/generators/fcus/scaffold/templates/views/haml/_form.html.haml
104
+ - lib/generators/fcus/scaffold/templates/fixtures.yml
105
+ - lib/generators/fcus/scaffold/templates/actions/edit.rb
106
+ - lib/generators/fcus/scaffold/templates/actions/destroy.rb
107
+ - lib/generators/fcus/scaffold/templates/actions/index.rb
108
+ - lib/generators/fcus/scaffold/templates/actions/new.rb
109
+ - lib/generators/fcus/scaffold/templates/actions/create.rb
110
+ - lib/generators/fcus/scaffold/templates/actions/show.rb
111
+ - lib/generators/fcus/scaffold/templates/actions/update.rb
112
+ - lib/generators/fcus/scaffold/templates/model.rb
113
+ - lib/generators/fcus/scaffold/templates/migration.rb
114
+ - lib/generators/fcus/scaffold/templates/tests/rspec/controller.rb
115
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/edit.rb
116
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/destroy.rb
117
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/index.rb
118
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/new.rb
119
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/create.rb
120
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/show.rb
121
+ - lib/generators/fcus/scaffold/templates/tests/rspec/actions/update.rb
122
+ - lib/generators/fcus/scaffold/templates/tests/rspec/model.rb
123
+ - lib/generators/fcus/scaffold/templates/tests/testunit/controller.rb
124
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/edit.rb
125
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/destroy.rb
126
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/index.rb
127
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/new.rb
128
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/create.rb
129
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/show.rb
130
+ - lib/generators/fcus/scaffold/templates/tests/testunit/actions/update.rb
131
+ - lib/generators/fcus/scaffold/templates/tests/testunit/model.rb
132
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/controller.rb
133
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/edit.rb
134
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/destroy.rb
135
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/index.rb
136
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/new.rb
137
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/create.rb
138
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/show.rb
139
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/actions/update.rb
140
+ - lib/generators/fcus/scaffold/templates/tests/shoulda/model.rb
141
+ - lib/generators/fcus/scaffold/scaffold_generator.rb
142
+ - lib/generators/fcus/authentication/USAGE
143
+ - lib/generators/fcus/authentication/authentication_generator.rb
144
+ - lib/generators/fcus/authentication/templates/users_controller.rb
145
+ - lib/generators/fcus/authentication/templates/sessions_helper.rb
146
+ - lib/generators/fcus/authentication/templates/users_helper.rb
147
+ - lib/generators/fcus/authentication/templates/sessions_controller.rb
148
+ - lib/generators/fcus/authentication/templates/views/erb/signup.html.erb
149
+ - lib/generators/fcus/authentication/templates/views/erb/edit.html.erb
150
+ - lib/generators/fcus/authentication/templates/views/erb/login.html.erb
151
+ - lib/generators/fcus/authentication/templates/views/erb/_form.html.erb
152
+ - lib/generators/fcus/authentication/templates/views/haml/signup.html.haml
153
+ - lib/generators/fcus/authentication/templates/views/haml/login.html.haml
154
+ - lib/generators/fcus/authentication/templates/views/haml/edit.html.haml
155
+ - lib/generators/fcus/authentication/templates/views/haml/_form.html.haml
156
+ - lib/generators/fcus/authentication/templates/fixtures.yml
157
+ - lib/generators/fcus/authentication/templates/controller_authentication.rb
158
+ - lib/generators/fcus/authentication/templates/migration.rb
159
+ - lib/generators/fcus/authentication/templates/authlogic_session.rb
160
+ - lib/generators/fcus/authentication/templates/tests/rspec/users_controller.rb
161
+ - lib/generators/fcus/authentication/templates/tests/rspec/sessions_controller.rb
162
+ - lib/generators/fcus/authentication/templates/tests/rspec/user.rb
163
+ - lib/generators/fcus/authentication/templates/tests/testunit/users_controller.rb
164
+ - lib/generators/fcus/authentication/templates/tests/testunit/sessions_controller.rb
165
+ - lib/generators/fcus/authentication/templates/tests/testunit/user.rb
166
+ - lib/generators/fcus/authentication/templates/tests/shoulda/users_controller.rb
167
+ - lib/generators/fcus/authentication/templates/tests/shoulda/sessions_controller.rb
168
+ - lib/generators/fcus/authentication/templates/tests/shoulda/user.rb
169
+ - lib/generators/fcus/authentication/templates/user.rb
170
+ - lib/generators/fcus/layout/layout_generator.rb
171
+ - lib/generators/fcus/layout/USAGE
172
+ - lib/generators/fcus/layout/templates/stylesheet.sass
173
+ - lib/generators/fcus/layout/templates/layout_helper.rb
174
+ - lib/generators/fcus/layout/templates/stylesheet.css
175
+ - lib/generators/fcus/layout/templates/error_messages_helper.rb
176
+ - lib/generators/fcus/layout/templates/layout.html.erb
177
+ - lib/generators/fcus/layout/templates/layout.html.haml
178
+ - lib/generators/fcus/config/USAGE
179
+ - lib/generators/fcus/config/templates/load_config.rb
180
+ - lib/generators/fcus/config/templates/config.yml
181
+ - lib/generators/fcus/config/config_generator.rb
182
+ - test/test_fcus_config_generator.rb
183
+ - test/test_fcus_layout_generator.rb
184
+ - test/test_helper.rb
185
+ - test/test_fcus_authentication_generator.rb
186
+ - test/test_fcus_scaffold_generator.rb
187
+ - features/fcus_authentication.feature
188
+ - features/step_definitions/rails_setup_steps.rb
189
+ - features/step_definitions/common_steps.rb
190
+ - features/fcus_scaffold.feature
191
+ - features/fcus_layout.feature
192
+ - features/support/matchers.rb
193
+ - features/support/env.rb
194
+ - features/fcus_config.feature
195
+ - rails_generators/fcus_authentication/USAGE
196
+ - rails_generators/fcus_authentication/fcus_authentication_generator.rb
197
+ - rails_generators/fcus_authentication/templates/users_controller.rb
198
+ - rails_generators/fcus_authentication/templates/sessions_helper.rb
199
+ - rails_generators/fcus_authentication/templates/users_helper.rb
200
+ - rails_generators/fcus_authentication/templates/sessions_controller.rb
201
+ - rails_generators/fcus_authentication/templates/views/erb/signup.html.erb
202
+ - rails_generators/fcus_authentication/templates/views/erb/login.html.erb
203
+ - rails_generators/fcus_authentication/templates/views/haml/signup.html.haml
204
+ - rails_generators/fcus_authentication/templates/views/haml/login.html.haml
205
+ - rails_generators/fcus_authentication/templates/authentication.rb
206
+ - rails_generators/fcus_authentication/templates/fixtures.yml
207
+ - rails_generators/fcus_authentication/templates/migration.rb
208
+ - rails_generators/fcus_authentication/templates/authlogic_session.rb
209
+ - rails_generators/fcus_authentication/templates/tests/rspec/users_controller.rb
210
+ - rails_generators/fcus_authentication/templates/tests/rspec/sessions_controller.rb
211
+ - rails_generators/fcus_authentication/templates/tests/rspec/user.rb
212
+ - rails_generators/fcus_authentication/templates/tests/testunit/users_controller.rb
213
+ - rails_generators/fcus_authentication/templates/tests/testunit/sessions_controller.rb
214
+ - rails_generators/fcus_authentication/templates/tests/testunit/user.rb
215
+ - rails_generators/fcus_authentication/templates/tests/shoulda/users_controller.rb
216
+ - rails_generators/fcus_authentication/templates/tests/shoulda/sessions_controller.rb
217
+ - rails_generators/fcus_authentication/templates/tests/shoulda/user.rb
218
+ - rails_generators/fcus_authentication/templates/user.rb
219
+ - rails_generators/fcus_authentication/lib/insert_commands.rb
220
+ - rails_generators/fcus_scaffold/fcus_scaffold_generator.rb
221
+ - rails_generators/fcus_scaffold/USAGE
222
+ - rails_generators/fcus_scaffold/templates/controller.rb
223
+ - rails_generators/fcus_scaffold/templates/helper.rb
224
+ - rails_generators/fcus_scaffold/templates/views/erb/index.html.erb
225
+ - rails_generators/fcus_scaffold/templates/views/erb/new.html.erb
226
+ - rails_generators/fcus_scaffold/templates/views/erb/edit.html.erb
227
+ - rails_generators/fcus_scaffold/templates/views/erb/show.html.erb
228
+ - rails_generators/fcus_scaffold/templates/views/erb/_form.html.erb
229
+ - rails_generators/fcus_scaffold/templates/views/haml/show.html.haml
230
+ - rails_generators/fcus_scaffold/templates/views/haml/new.html.haml
231
+ - rails_generators/fcus_scaffold/templates/views/haml/edit.html.haml
232
+ - rails_generators/fcus_scaffold/templates/views/haml/index.html.haml
233
+ - rails_generators/fcus_scaffold/templates/views/haml/_form.html.haml
234
+ - rails_generators/fcus_scaffold/templates/fixtures.yml
235
+ - rails_generators/fcus_scaffold/templates/actions/edit.rb
236
+ - rails_generators/fcus_scaffold/templates/actions/destroy.rb
237
+ - rails_generators/fcus_scaffold/templates/actions/index.rb
238
+ - rails_generators/fcus_scaffold/templates/actions/new.rb
239
+ - rails_generators/fcus_scaffold/templates/actions/create.rb
240
+ - rails_generators/fcus_scaffold/templates/actions/show.rb
241
+ - rails_generators/fcus_scaffold/templates/actions/update.rb
242
+ - rails_generators/fcus_scaffold/templates/model.rb
243
+ - rails_generators/fcus_scaffold/templates/migration.rb
244
+ - rails_generators/fcus_scaffold/templates/tests/rspec/controller.rb
245
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/edit.rb
246
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/destroy.rb
247
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/index.rb
248
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/new.rb
249
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/create.rb
250
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/show.rb
251
+ - rails_generators/fcus_scaffold/templates/tests/rspec/actions/update.rb
252
+ - rails_generators/fcus_scaffold/templates/tests/rspec/model.rb
253
+ - rails_generators/fcus_scaffold/templates/tests/testunit/controller.rb
254
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/edit.rb
255
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/destroy.rb
256
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/index.rb
257
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/new.rb
258
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/create.rb
259
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/show.rb
260
+ - rails_generators/fcus_scaffold/templates/tests/testunit/actions/update.rb
261
+ - rails_generators/fcus_scaffold/templates/tests/testunit/model.rb
262
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/controller.rb
263
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/edit.rb
264
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/destroy.rb
265
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/index.rb
266
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/new.rb
267
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/create.rb
268
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/show.rb
269
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/actions/update.rb
270
+ - rails_generators/fcus_scaffold/templates/tests/shoulda/model.rb
271
+ - rails_generators/fcus_config/fcus_config_generator.rb
272
+ - rails_generators/fcus_config/USAGE
273
+ - rails_generators/fcus_config/templates/load_config.rb
274
+ - rails_generators/fcus_config/templates/config.yml
275
+ - rails_generators/fcus_layout/USAGE
276
+ - rails_generators/fcus_layout/fcus_layout_generator.rb
277
+ - rails_generators/fcus_layout/templates/helper.rb
278
+ - rails_generators/fcus_layout/templates/stylesheet.sass
279
+ - rails_generators/fcus_layout/templates/stylesheet.css
280
+ - rails_generators/fcus_layout/templates/layout.html.erb
281
+ - rails_generators/fcus_layout/templates/layout.html.haml
282
+ - LICENSE
283
+ - Gemfile
284
+ - README.rdoc
285
+ - Rakefile
286
+ homepage: http://github.com/lihaoalbert/focus-generator
287
+ licenses: []
288
+
289
+ post_install_message:
290
+ rdoc_options: []
291
+
292
+ require_paths:
293
+ - lib
294
+ required_ruby_version: !ruby/object:Gem::Requirement
295
+ none: false
296
+ requirements:
297
+ - - ">="
298
+ - !ruby/object:Gem::Version
299
+ version: "0"
300
+ required_rubygems_version: !ruby/object:Gem::Requirement
301
+ none: false
302
+ requirements:
303
+ - - ">="
304
+ - !ruby/object:Gem::Version
305
+ version: 1.3.4
306
+ requirements: []
307
+
308
+ rubyforge_project: focus-generator
309
+ rubygems_version: 1.8.12
310
+ signing_key:
311
+ specification_version: 3
312
+ summary: A collection of useful Rails generator scripts.
313
+ test_files: []
314
+