nifty-generators-improved 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +198 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +111 -0
- data/LICENSE +20 -0
- data/README.rdoc +109 -0
- data/Rakefile +10 -0
- data/features/nifty_authentication.feature +80 -0
- data/features/nifty_config.feature +17 -0
- data/features/nifty_layout.feature +20 -0
- data/features/nifty_scaffold.feature +80 -0
- data/features/step_definitions/common_steps.rb +62 -0
- data/features/step_definitions/rails_setup_steps.rb +6 -0
- data/features/support/env.rb +6 -0
- data/features/support/matchers.rb +7 -0
- data/lib/generators/nifty.rb +28 -0
- data/lib/generators/nifty/authentication/USAGE +50 -0
- data/lib/generators/nifty/authentication/authentication_generator.rb +154 -0
- data/lib/generators/nifty/authentication/templates/authlogic_session.rb +2 -0
- data/lib/generators/nifty/authentication/templates/controller_authentication.rb +60 -0
- data/lib/generators/nifty/authentication/templates/fixtures.yml +24 -0
- data/lib/generators/nifty/authentication/templates/migration.rb +20 -0
- data/lib/generators/nifty/authentication/templates/sessions_controller.rb +41 -0
- data/lib/generators/nifty/authentication/templates/sessions_helper.rb +2 -0
- data/lib/generators/nifty/authentication/templates/tests/rspec/sessions_controller.rb +39 -0
- data/lib/generators/nifty/authentication/templates/tests/rspec/user.rb +83 -0
- data/lib/generators/nifty/authentication/templates/tests/rspec/users_controller.rb +56 -0
- data/lib/generators/nifty/authentication/templates/tests/shoulda/sessions_controller.rb +40 -0
- data/lib/generators/nifty/authentication/templates/tests/shoulda/user.rb +85 -0
- data/lib/generators/nifty/authentication/templates/tests/shoulda/users_controller.rb +61 -0
- data/lib/generators/nifty/authentication/templates/tests/testunit/sessions_controller.rb +36 -0
- data/lib/generators/nifty/authentication/templates/tests/testunit/user.rb +88 -0
- data/lib/generators/nifty/authentication/templates/tests/testunit/users_controller.rb +53 -0
- data/lib/generators/nifty/authentication/templates/user.rb +38 -0
- data/lib/generators/nifty/authentication/templates/users_controller.rb +32 -0
- data/lib/generators/nifty/authentication/templates/users_helper.rb +2 -0
- data/lib/generators/nifty/authentication/templates/views/erb/_form.html.erb +20 -0
- data/lib/generators/nifty/authentication/templates/views/erb/edit.html.erb +3 -0
- data/lib/generators/nifty/authentication/templates/views/erb/login.html.erb +30 -0
- data/lib/generators/nifty/authentication/templates/views/erb/signup.html.erb +5 -0
- data/lib/generators/nifty/authentication/templates/views/haml/_form.html.haml +16 -0
- data/lib/generators/nifty/authentication/templates/views/haml/edit.html.haml +3 -0
- data/lib/generators/nifty/authentication/templates/views/haml/login.html.haml +26 -0
- data/lib/generators/nifty/authentication/templates/views/haml/signup.html.haml +5 -0
- data/lib/generators/nifty/config/USAGE +23 -0
- data/lib/generators/nifty/config/config_generator.rb +24 -0
- data/lib/generators/nifty/config/templates/config.yml +8 -0
- data/lib/generators/nifty/config/templates/load_config.rb +2 -0
- data/lib/generators/nifty/layout/USAGE +25 -0
- data/lib/generators/nifty/layout/layout_generator.rb +29 -0
- data/lib/generators/nifty/layout/templates/error_messages_helper.rb +23 -0
- data/lib/generators/nifty/layout/templates/layout.html.erb +19 -0
- data/lib/generators/nifty/layout/templates/layout.html.haml +17 -0
- data/lib/generators/nifty/layout/templates/layout_helper.rb +17 -0
- data/lib/generators/nifty/layout/templates/stylesheet.css +83 -0
- data/lib/generators/nifty/layout/templates/stylesheet.css.scss +88 -0
- data/lib/generators/nifty/scaffold/USAGE +51 -0
- data/lib/generators/nifty/scaffold/scaffold_generator.rb +318 -0
- data/lib/generators/nifty/scaffold/templates/actions/create.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/actions/destroy.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/actions/edit.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/index.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/new.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/show.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/actions/update.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/controller.rb +3 -0
- data/lib/generators/nifty/scaffold/templates/fixtures.yml +9 -0
- data/lib/generators/nifty/scaffold/templates/helper.rb +2 -0
- data/lib/generators/nifty/scaffold/templates/migration.rb +16 -0
- data/lib/generators/nifty/scaffold/templates/model.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/edit.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/index.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/new.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/show.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/actions/update.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/controller.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/tests/rspec/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/create.rb +13 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/index.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/new.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/show.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/actions/update.rb +13 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/controller.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/tests/shoulda/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/create.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/edit.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/index.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/new.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/show.rb +4 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/actions/update.rb +11 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/controller.rb +5 -0
- data/lib/generators/nifty/scaffold/templates/tests/testunit/model.rb +7 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb +10 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb +14 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/index.html.erb +29 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/new.html.erb +7 -0
- data/lib/generators/nifty/scaffold/templates/views/erb/show.html.erb +20 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/_form.html.haml +9 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/edit.html.haml +14 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/index.html.haml +25 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/new.html.haml +7 -0
- data/lib/generators/nifty/scaffold/templates/views/haml/show.html.haml +20 -0
- data/test/test_helper.rb +119 -0
- data/test/test_nifty_authentication_generator.rb +274 -0
- data/test/test_nifty_config_generator.rb +37 -0
- data/test/test_nifty_layout_generator.rb +42 -0
- data/test/test_nifty_scaffold_generator.rb +534 -0
- metadata +231 -0
metadata
ADDED
@@ -0,0 +1,231 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nifty-generators-improved
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: "0.5"
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- James Birtles
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-06-11 00:00:00 +01:00
|
14
|
+
default_executable:
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rspec-rails
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 2.0.1
|
25
|
+
type: :development
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cucumber
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ~>
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 0.9.2
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id002
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rails
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.0.0
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: mocha
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ~>
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 0.9.8
|
58
|
+
type: :development
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: bcrypt-ruby
|
62
|
+
prerelease: false
|
63
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.1.2
|
69
|
+
type: :development
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: sqlite3-ruby
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ~>
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 1.3.1
|
80
|
+
type: :development
|
81
|
+
version_requirements: *id006
|
82
|
+
description: A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
|
83
|
+
email: itsme@jamesbirtles.com
|
84
|
+
executables: []
|
85
|
+
|
86
|
+
extensions: []
|
87
|
+
|
88
|
+
extra_rdoc_files: []
|
89
|
+
|
90
|
+
files:
|
91
|
+
- lib/generators/nifty/authentication/authentication_generator.rb
|
92
|
+
- lib/generators/nifty/authentication/templates/authlogic_session.rb
|
93
|
+
- lib/generators/nifty/authentication/templates/controller_authentication.rb
|
94
|
+
- lib/generators/nifty/authentication/templates/fixtures.yml
|
95
|
+
- lib/generators/nifty/authentication/templates/migration.rb
|
96
|
+
- lib/generators/nifty/authentication/templates/sessions_controller.rb
|
97
|
+
- lib/generators/nifty/authentication/templates/sessions_helper.rb
|
98
|
+
- lib/generators/nifty/authentication/templates/tests/rspec/sessions_controller.rb
|
99
|
+
- lib/generators/nifty/authentication/templates/tests/rspec/user.rb
|
100
|
+
- lib/generators/nifty/authentication/templates/tests/rspec/users_controller.rb
|
101
|
+
- lib/generators/nifty/authentication/templates/tests/shoulda/sessions_controller.rb
|
102
|
+
- lib/generators/nifty/authentication/templates/tests/shoulda/user.rb
|
103
|
+
- lib/generators/nifty/authentication/templates/tests/shoulda/users_controller.rb
|
104
|
+
- lib/generators/nifty/authentication/templates/tests/testunit/sessions_controller.rb
|
105
|
+
- lib/generators/nifty/authentication/templates/tests/testunit/user.rb
|
106
|
+
- lib/generators/nifty/authentication/templates/tests/testunit/users_controller.rb
|
107
|
+
- lib/generators/nifty/authentication/templates/user.rb
|
108
|
+
- lib/generators/nifty/authentication/templates/users_controller.rb
|
109
|
+
- lib/generators/nifty/authentication/templates/users_helper.rb
|
110
|
+
- lib/generators/nifty/authentication/templates/views/erb/_form.html.erb
|
111
|
+
- lib/generators/nifty/authentication/templates/views/erb/edit.html.erb
|
112
|
+
- lib/generators/nifty/authentication/templates/views/erb/login.html.erb
|
113
|
+
- lib/generators/nifty/authentication/templates/views/erb/signup.html.erb
|
114
|
+
- lib/generators/nifty/authentication/templates/views/haml/_form.html.haml
|
115
|
+
- lib/generators/nifty/authentication/templates/views/haml/edit.html.haml
|
116
|
+
- lib/generators/nifty/authentication/templates/views/haml/login.html.haml
|
117
|
+
- lib/generators/nifty/authentication/templates/views/haml/signup.html.haml
|
118
|
+
- lib/generators/nifty/authentication/USAGE
|
119
|
+
- lib/generators/nifty/config/config_generator.rb
|
120
|
+
- lib/generators/nifty/config/templates/config.yml
|
121
|
+
- lib/generators/nifty/config/templates/load_config.rb
|
122
|
+
- lib/generators/nifty/config/USAGE
|
123
|
+
- lib/generators/nifty/layout/layout_generator.rb
|
124
|
+
- lib/generators/nifty/layout/templates/error_messages_helper.rb
|
125
|
+
- lib/generators/nifty/layout/templates/layout.html.erb
|
126
|
+
- lib/generators/nifty/layout/templates/layout.html.haml
|
127
|
+
- lib/generators/nifty/layout/templates/layout_helper.rb
|
128
|
+
- lib/generators/nifty/layout/templates/stylesheet.css
|
129
|
+
- lib/generators/nifty/layout/templates/stylesheet.css.scss
|
130
|
+
- lib/generators/nifty/layout/USAGE
|
131
|
+
- lib/generators/nifty/scaffold/scaffold_generator.rb
|
132
|
+
- lib/generators/nifty/scaffold/templates/actions/create.rb
|
133
|
+
- lib/generators/nifty/scaffold/templates/actions/destroy.rb
|
134
|
+
- lib/generators/nifty/scaffold/templates/actions/edit.rb
|
135
|
+
- lib/generators/nifty/scaffold/templates/actions/index.rb
|
136
|
+
- lib/generators/nifty/scaffold/templates/actions/new.rb
|
137
|
+
- lib/generators/nifty/scaffold/templates/actions/show.rb
|
138
|
+
- lib/generators/nifty/scaffold/templates/actions/update.rb
|
139
|
+
- lib/generators/nifty/scaffold/templates/controller.rb
|
140
|
+
- lib/generators/nifty/scaffold/templates/fixtures.yml
|
141
|
+
- lib/generators/nifty/scaffold/templates/helper.rb
|
142
|
+
- lib/generators/nifty/scaffold/templates/migration.rb
|
143
|
+
- lib/generators/nifty/scaffold/templates/model.rb
|
144
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/create.rb
|
145
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/destroy.rb
|
146
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/edit.rb
|
147
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/index.rb
|
148
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/new.rb
|
149
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/show.rb
|
150
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/actions/update.rb
|
151
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/controller.rb
|
152
|
+
- lib/generators/nifty/scaffold/templates/tests/rspec/model.rb
|
153
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/create.rb
|
154
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/destroy.rb
|
155
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/edit.rb
|
156
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/index.rb
|
157
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/new.rb
|
158
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/show.rb
|
159
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/actions/update.rb
|
160
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/controller.rb
|
161
|
+
- lib/generators/nifty/scaffold/templates/tests/shoulda/model.rb
|
162
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/create.rb
|
163
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/destroy.rb
|
164
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/edit.rb
|
165
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/index.rb
|
166
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/new.rb
|
167
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/show.rb
|
168
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/actions/update.rb
|
169
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/controller.rb
|
170
|
+
- lib/generators/nifty/scaffold/templates/tests/testunit/model.rb
|
171
|
+
- lib/generators/nifty/scaffold/templates/views/erb/_form.html.erb
|
172
|
+
- lib/generators/nifty/scaffold/templates/views/erb/edit.html.erb
|
173
|
+
- lib/generators/nifty/scaffold/templates/views/erb/index.html.erb
|
174
|
+
- lib/generators/nifty/scaffold/templates/views/erb/new.html.erb
|
175
|
+
- lib/generators/nifty/scaffold/templates/views/erb/show.html.erb
|
176
|
+
- lib/generators/nifty/scaffold/templates/views/haml/_form.html.haml
|
177
|
+
- lib/generators/nifty/scaffold/templates/views/haml/edit.html.haml
|
178
|
+
- lib/generators/nifty/scaffold/templates/views/haml/index.html.haml
|
179
|
+
- lib/generators/nifty/scaffold/templates/views/haml/new.html.haml
|
180
|
+
- lib/generators/nifty/scaffold/templates/views/haml/show.html.haml
|
181
|
+
- lib/generators/nifty/scaffold/USAGE
|
182
|
+
- lib/generators/nifty.rb
|
183
|
+
- test/test_helper.rb
|
184
|
+
- test/test_nifty_authentication_generator.rb
|
185
|
+
- test/test_nifty_config_generator.rb
|
186
|
+
- test/test_nifty_layout_generator.rb
|
187
|
+
- test/test_nifty_scaffold_generator.rb
|
188
|
+
- features/nifty_authentication.feature
|
189
|
+
- features/nifty_config.feature
|
190
|
+
- features/nifty_layout.feature
|
191
|
+
- features/nifty_scaffold.feature
|
192
|
+
- features/step_definitions/common_steps.rb
|
193
|
+
- features/step_definitions/rails_setup_steps.rb
|
194
|
+
- features/support/env.rb
|
195
|
+
- features/support/matchers.rb
|
196
|
+
- CHANGELOG
|
197
|
+
- Gemfile
|
198
|
+
- Gemfile.lock
|
199
|
+
- LICENSE
|
200
|
+
- Rakefile
|
201
|
+
- README.rdoc
|
202
|
+
has_rdoc: true
|
203
|
+
homepage: http://github.com/jamesbirtles/nifty-generators
|
204
|
+
licenses: []
|
205
|
+
|
206
|
+
post_install_message:
|
207
|
+
rdoc_options: []
|
208
|
+
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: "0"
|
217
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
|
+
none: false
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 1.3.4
|
223
|
+
requirements: []
|
224
|
+
|
225
|
+
rubyforge_project: nifty-generators-improved
|
226
|
+
rubygems_version: 1.6.2
|
227
|
+
signing_key:
|
228
|
+
specification_version: 3
|
229
|
+
summary: A collection of useful Rails generator scripts.
|
230
|
+
test_files: []
|
231
|
+
|