niftier-generators 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. data/CHANGELOG +7 -0
  2. data/LICENSE +20 -0
  3. data/README.rdoc +89 -0
  4. data/Rakefile +18 -0
  5. data/features/niftier_authentication.feature +59 -0
  6. data/features/niftier_config.feature +17 -0
  7. data/features/niftier_layout.feature +19 -0
  8. data/features/niftier_scaffold.feature +22 -0
  9. data/features/step_definitions/common_steps.rb +37 -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/niftier/authentication/USAGE +55 -0
  14. data/lib/generators/niftier/authentication/authentication_generator.rb +145 -0
  15. data/lib/generators/niftier/authentication/templates/authentication.rb +60 -0
  16. data/lib/generators/niftier/authentication/templates/authlogic_session.rb +2 -0
  17. data/lib/generators/niftier/authentication/templates/fixtures.yml +24 -0
  18. data/lib/generators/niftier/authentication/templates/migration.rb +20 -0
  19. data/lib/generators/niftier/authentication/templates/sessions_controller.rb +45 -0
  20. data/lib/generators/niftier/authentication/templates/sessions_helper.rb +2 -0
  21. data/lib/generators/niftier/authentication/templates/tests/rspec/sessions_controller.rb +39 -0
  22. data/lib/generators/niftier/authentication/templates/tests/rspec/user.rb +83 -0
  23. data/lib/generators/niftier/authentication/templates/tests/rspec/users_controller.rb +26 -0
  24. data/lib/generators/niftier/authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
  25. data/lib/generators/niftier/authentication/templates/tests/shoulda/user.rb +85 -0
  26. data/lib/generators/niftier/authentication/templates/tests/shoulda/users_controller.rb +27 -0
  27. data/lib/generators/niftier/authentication/templates/tests/testunit/sessions_controller.rb +36 -0
  28. data/lib/generators/niftier/authentication/templates/tests/testunit/user.rb +88 -0
  29. data/lib/generators/niftier/authentication/templates/tests/testunit/users_controller.rb +23 -0
  30. data/lib/generators/niftier/authentication/templates/user.rb +42 -0
  31. data/lib/generators/niftier/authentication/templates/users_controller.rb +18 -0
  32. data/lib/generators/niftier/authentication/templates/users_helper.rb +2 -0
  33. data/lib/generators/niftier/authentication/templates/views/erb/login.html.erb +30 -0
  34. data/lib/generators/niftier/authentication/templates/views/erb/signup.html.erb +24 -0
  35. data/lib/generators/niftier/authentication/templates/views/haml/login.html.haml +30 -0
  36. data/lib/generators/niftier/authentication/templates/views/haml/signup.html.haml +24 -0
  37. data/lib/generators/niftier/config/USAGE +23 -0
  38. data/lib/generators/niftier/config/config_generator.rb +24 -0
  39. data/lib/generators/niftier/config/templates/config.yml +14 -0
  40. data/lib/generators/niftier/config/templates/load_config.rb +2 -0
  41. data/lib/generators/niftier/layout/USAGE +25 -0
  42. data/lib/generators/niftier/layout/layout_generator.rb +29 -0
  43. data/lib/generators/niftier/layout/templates/error_messages_helper.rb +23 -0
  44. data/lib/generators/niftier/layout/templates/layout.html.erb +24 -0
  45. data/lib/generators/niftier/layout/templates/layout.html.haml +26 -0
  46. data/lib/generators/niftier/layout/templates/layout_helper.rb +26 -0
  47. data/lib/generators/niftier/layout/templates/stylesheet.css +75 -0
  48. data/lib/generators/niftier/layout/templates/stylesheet.sass +66 -0
  49. data/lib/generators/niftier/scaffold/USAGE +51 -0
  50. data/lib/generators/niftier/scaffold/scaffold_generator.rb +241 -0
  51. data/lib/generators/niftier/scaffold/templates/actions/create.rb +9 -0
  52. data/lib/generators/niftier/scaffold/templates/actions/destroy.rb +6 -0
  53. data/lib/generators/niftier/scaffold/templates/actions/edit.rb +3 -0
  54. data/lib/generators/niftier/scaffold/templates/actions/index.rb +3 -0
  55. data/lib/generators/niftier/scaffold/templates/actions/new.rb +3 -0
  56. data/lib/generators/niftier/scaffold/templates/actions/show.rb +3 -0
  57. data/lib/generators/niftier/scaffold/templates/actions/update.rb +9 -0
  58. data/lib/generators/niftier/scaffold/templates/controller.rb +3 -0
  59. data/lib/generators/niftier/scaffold/templates/fixtures.yml +9 -0
  60. data/lib/generators/niftier/scaffold/templates/helper.rb +2 -0
  61. data/lib/generators/niftier/scaffold/templates/migration.rb +16 -0
  62. data/lib/generators/niftier/scaffold/templates/model.rb +3 -0
  63. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/create.rb +11 -0
  64. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  65. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  66. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/index.rb +4 -0
  67. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/new.rb +4 -0
  68. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/show.rb +4 -0
  69. data/lib/generators/niftier/scaffold/templates/tests/rspec/actions/update.rb +11 -0
  70. data/lib/generators/niftier/scaffold/templates/tests/rspec/controller.rb +8 -0
  71. data/lib/generators/niftier/scaffold/templates/tests/rspec/model.rb +7 -0
  72. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  73. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  74. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  75. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  76. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  77. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  78. data/lib/generators/niftier/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  79. data/lib/generators/niftier/scaffold/templates/tests/shoulda/controller.rb +5 -0
  80. data/lib/generators/niftier/scaffold/templates/tests/shoulda/model.rb +7 -0
  81. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/create.rb +11 -0
  82. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  83. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  84. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/index.rb +4 -0
  85. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/new.rb +4 -0
  86. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/show.rb +4 -0
  87. data/lib/generators/niftier/scaffold/templates/tests/testunit/actions/update.rb +11 -0
  88. data/lib/generators/niftier/scaffold/templates/tests/testunit/controller.rb +5 -0
  89. data/lib/generators/niftier/scaffold/templates/tests/testunit/model.rb +7 -0
  90. data/lib/generators/niftier/scaffold/templates/views/erb/_form.html.erb +10 -0
  91. data/lib/generators/niftier/scaffold/templates/views/erb/edit.html.erb +14 -0
  92. data/lib/generators/niftier/scaffold/templates/views/erb/index.html.erb +29 -0
  93. data/lib/generators/niftier/scaffold/templates/views/erb/new.html.erb +7 -0
  94. data/lib/generators/niftier/scaffold/templates/views/erb/show.html.erb +20 -0
  95. data/lib/generators/niftier/scaffold/templates/views/haml/_form.html.haml +10 -0
  96. data/lib/generators/niftier/scaffold/templates/views/haml/edit.html.haml +14 -0
  97. data/lib/generators/niftier/scaffold/templates/views/haml/index.html.haml +25 -0
  98. data/lib/generators/niftier/scaffold/templates/views/haml/new.html.haml +7 -0
  99. data/lib/generators/niftier/scaffold/templates/views/haml/show.html.haml +20 -0
  100. data/lib/generators/niftier.rb +15 -0
  101. data/test/test_helper.rb +119 -0
  102. data/test/test_niftier_authentication_generator.rb +274 -0
  103. data/test/test_niftier_config_generator.rb +37 -0
  104. data/test/test_niftier_layout_generator.rb +42 -0
  105. data/test/test_niftier_scaffold_generator.rb +534 -0
  106. metadata +173 -0
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: niftier-generators
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Matt Venables (originally by Ryan Bates)
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-01 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A collection of (more) useful Rails generator scripts for scaffolding, layout files, authentication, and more.
23
+ email: mattyven@gmail.com (ryan@railscasts.com)
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/generators/niftier/authentication/authentication_generator.rb
32
+ - lib/generators/niftier/authentication/templates/authentication.rb
33
+ - lib/generators/niftier/authentication/templates/authlogic_session.rb
34
+ - lib/generators/niftier/authentication/templates/fixtures.yml
35
+ - lib/generators/niftier/authentication/templates/migration.rb
36
+ - lib/generators/niftier/authentication/templates/sessions_controller.rb
37
+ - lib/generators/niftier/authentication/templates/sessions_helper.rb
38
+ - lib/generators/niftier/authentication/templates/tests/rspec/sessions_controller.rb
39
+ - lib/generators/niftier/authentication/templates/tests/rspec/user.rb
40
+ - lib/generators/niftier/authentication/templates/tests/rspec/users_controller.rb
41
+ - lib/generators/niftier/authentication/templates/tests/shoulda/sessions_controller.rb
42
+ - lib/generators/niftier/authentication/templates/tests/shoulda/user.rb
43
+ - lib/generators/niftier/authentication/templates/tests/shoulda/users_controller.rb
44
+ - lib/generators/niftier/authentication/templates/tests/testunit/sessions_controller.rb
45
+ - lib/generators/niftier/authentication/templates/tests/testunit/user.rb
46
+ - lib/generators/niftier/authentication/templates/tests/testunit/users_controller.rb
47
+ - lib/generators/niftier/authentication/templates/user.rb
48
+ - lib/generators/niftier/authentication/templates/users_controller.rb
49
+ - lib/generators/niftier/authentication/templates/users_helper.rb
50
+ - lib/generators/niftier/authentication/templates/views/erb/login.html.erb
51
+ - lib/generators/niftier/authentication/templates/views/erb/signup.html.erb
52
+ - lib/generators/niftier/authentication/templates/views/haml/login.html.haml
53
+ - lib/generators/niftier/authentication/templates/views/haml/signup.html.haml
54
+ - lib/generators/niftier/authentication/USAGE
55
+ - lib/generators/niftier/config/config_generator.rb
56
+ - lib/generators/niftier/config/templates/config.yml
57
+ - lib/generators/niftier/config/templates/load_config.rb
58
+ - lib/generators/niftier/config/USAGE
59
+ - lib/generators/niftier/layout/layout_generator.rb
60
+ - lib/generators/niftier/layout/templates/error_messages_helper.rb
61
+ - lib/generators/niftier/layout/templates/layout.html.erb
62
+ - lib/generators/niftier/layout/templates/layout.html.haml
63
+ - lib/generators/niftier/layout/templates/layout_helper.rb
64
+ - lib/generators/niftier/layout/templates/stylesheet.css
65
+ - lib/generators/niftier/layout/templates/stylesheet.sass
66
+ - lib/generators/niftier/layout/USAGE
67
+ - lib/generators/niftier/scaffold/scaffold_generator.rb
68
+ - lib/generators/niftier/scaffold/templates/actions/create.rb
69
+ - lib/generators/niftier/scaffold/templates/actions/destroy.rb
70
+ - lib/generators/niftier/scaffold/templates/actions/edit.rb
71
+ - lib/generators/niftier/scaffold/templates/actions/index.rb
72
+ - lib/generators/niftier/scaffold/templates/actions/new.rb
73
+ - lib/generators/niftier/scaffold/templates/actions/show.rb
74
+ - lib/generators/niftier/scaffold/templates/actions/update.rb
75
+ - lib/generators/niftier/scaffold/templates/controller.rb
76
+ - lib/generators/niftier/scaffold/templates/fixtures.yml
77
+ - lib/generators/niftier/scaffold/templates/helper.rb
78
+ - lib/generators/niftier/scaffold/templates/migration.rb
79
+ - lib/generators/niftier/scaffold/templates/model.rb
80
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/create.rb
81
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/destroy.rb
82
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/edit.rb
83
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/index.rb
84
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/new.rb
85
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/show.rb
86
+ - lib/generators/niftier/scaffold/templates/tests/rspec/actions/update.rb
87
+ - lib/generators/niftier/scaffold/templates/tests/rspec/controller.rb
88
+ - lib/generators/niftier/scaffold/templates/tests/rspec/model.rb
89
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/create.rb
90
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/destroy.rb
91
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/edit.rb
92
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/index.rb
93
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/new.rb
94
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/show.rb
95
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/actions/update.rb
96
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/controller.rb
97
+ - lib/generators/niftier/scaffold/templates/tests/shoulda/model.rb
98
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/create.rb
99
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/destroy.rb
100
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/edit.rb
101
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/index.rb
102
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/new.rb
103
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/show.rb
104
+ - lib/generators/niftier/scaffold/templates/tests/testunit/actions/update.rb
105
+ - lib/generators/niftier/scaffold/templates/tests/testunit/controller.rb
106
+ - lib/generators/niftier/scaffold/templates/tests/testunit/model.rb
107
+ - lib/generators/niftier/scaffold/templates/views/erb/_form.html.erb
108
+ - lib/generators/niftier/scaffold/templates/views/erb/edit.html.erb
109
+ - lib/generators/niftier/scaffold/templates/views/erb/index.html.erb
110
+ - lib/generators/niftier/scaffold/templates/views/erb/new.html.erb
111
+ - lib/generators/niftier/scaffold/templates/views/erb/show.html.erb
112
+ - lib/generators/niftier/scaffold/templates/views/haml/_form.html.haml
113
+ - lib/generators/niftier/scaffold/templates/views/haml/edit.html.haml
114
+ - lib/generators/niftier/scaffold/templates/views/haml/index.html.haml
115
+ - lib/generators/niftier/scaffold/templates/views/haml/new.html.haml
116
+ - lib/generators/niftier/scaffold/templates/views/haml/show.html.haml
117
+ - lib/generators/niftier/scaffold/USAGE
118
+ - lib/generators/niftier.rb
119
+ - test/test_helper.rb
120
+ - test/test_niftier_authentication_generator.rb
121
+ - test/test_niftier_config_generator.rb
122
+ - test/test_niftier_layout_generator.rb
123
+ - test/test_niftier_scaffold_generator.rb
124
+ - features/niftier_authentication.feature
125
+ - features/niftier_config.feature
126
+ - features/niftier_layout.feature
127
+ - features/niftier_scaffold.feature
128
+ - features/step_definitions/common_steps.rb
129
+ - features/step_definitions/rails_setup_steps.rb
130
+ - features/support/env.rb
131
+ - features/support/matchers.rb
132
+ - CHANGELOG
133
+ - LICENSE
134
+ - Rakefile
135
+ - README.rdoc
136
+ has_rdoc: true
137
+ homepage: http://github.com/mattyven/niftier-generators
138
+ licenses: []
139
+
140
+ post_install_message:
141
+ rdoc_options: []
142
+
143
+ require_paths:
144
+ - lib
145
+ required_ruby_version: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ hash: 3
151
+ segments:
152
+ - 0
153
+ version: "0"
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ hash: 19
160
+ segments:
161
+ - 1
162
+ - 3
163
+ - 4
164
+ version: 1.3.4
165
+ requirements: []
166
+
167
+ rubyforge_project: niftier-generators
168
+ rubygems_version: 1.3.7
169
+ signing_key:
170
+ specification_version: 3
171
+ summary: A collection of (more) useful Rails generator scripts.
172
+ test_files: []
173
+