nifty-generators 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +9 -0
- data/LICENSE +1 -1
- data/README.rdoc +16 -24
- data/Rakefile +0 -13
- data/test/test_helper.rb +4 -2
- data/test/test_nifty_authentication_generator.rb +39 -1
- metadata +18 -114
- data/Manifest +0 -100
- data/TODO +0 -7
- data/nifty-generators.gemspec +0 -169
- data/rails_generators/nifty_authentication/USAGE +0 -50
- data/rails_generators/nifty_authentication/lib/insert_commands.rb +0 -74
- data/rails_generators/nifty_authentication/nifty_authentication_generator.rb +0 -128
- data/rails_generators/nifty_authentication/templates/authentication.rb +0 -61
- data/rails_generators/nifty_authentication/templates/authlogic_session.rb +0 -2
- data/rails_generators/nifty_authentication/templates/fixtures.yml +0 -24
- data/rails_generators/nifty_authentication/templates/migration.rb +0 -20
- data/rails_generators/nifty_authentication/templates/sessions_controller.rb +0 -45
- data/rails_generators/nifty_authentication/templates/sessions_helper.rb +0 -2
- data/rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb +0 -39
- data/rails_generators/nifty_authentication/templates/tests/rspec/user.rb +0 -83
- data/rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb +0 -26
- data/rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb +0 -40
- data/rails_generators/nifty_authentication/templates/tests/shoulda/user.rb +0 -85
- data/rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb +0 -27
- data/rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb +0 -36
- data/rails_generators/nifty_authentication/templates/tests/testunit/user.rb +0 -88
- data/rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb +0 -23
- data/rails_generators/nifty_authentication/templates/user.rb +0 -42
- data/rails_generators/nifty_authentication/templates/users_controller.rb +0 -18
- data/rails_generators/nifty_authentication/templates/users_helper.rb +0 -2
- data/rails_generators/nifty_authentication/templates/views/erb/login.html.erb +0 -30
- data/rails_generators/nifty_authentication/templates/views/erb/signup.html.erb +0 -24
- data/rails_generators/nifty_authentication/templates/views/haml/login.html.haml +0 -30
- data/rails_generators/nifty_authentication/templates/views/haml/signup.html.haml +0 -24
- data/rails_generators/nifty_config/USAGE +0 -23
- data/rails_generators/nifty_config/nifty_config_generator.rb +0 -32
- data/rails_generators/nifty_config/templates/config.yml +0 -8
- data/rails_generators/nifty_config/templates/load_config.rb +0 -2
- data/rails_generators/nifty_layout/USAGE +0 -25
- data/rails_generators/nifty_layout/nifty_layout_generator.rb +0 -44
- data/rails_generators/nifty_layout/templates/helper.rb +0 -22
- data/rails_generators/nifty_layout/templates/layout.html.erb +0 -22
- data/rails_generators/nifty_layout/templates/layout.html.haml +0 -19
- data/rails_generators/nifty_layout/templates/stylesheet.css +0 -81
- data/rails_generators/nifty_layout/templates/stylesheet.sass +0 -67
- data/rails_generators/nifty_scaffold/USAGE +0 -51
- data/rails_generators/nifty_scaffold/nifty_scaffold_generator.rb +0 -232
- data/rails_generators/nifty_scaffold/templates/actions/create.rb +0 -9
- data/rails_generators/nifty_scaffold/templates/actions/destroy.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/actions/edit.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/actions/index.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/actions/new.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/actions/show.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/actions/update.rb +0 -9
- data/rails_generators/nifty_scaffold/templates/controller.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/fixtures.yml +0 -9
- data/rails_generators/nifty_scaffold/templates/helper.rb +0 -2
- data/rails_generators/nifty_scaffold/templates/migration.rb +0 -16
- data/rails_generators/nifty_scaffold/templates/model.rb +0 -3
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb +0 -11
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb +0 -11
- data/rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb +0 -8
- data/rails_generators/nifty_scaffold/templates/tests/rspec/model.rb +0 -7
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb +0 -13
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb +0 -8
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb +0 -13
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb +0 -5
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb +0 -7
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb +0 -11
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb +0 -6
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb +0 -4
- data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb +0 -11
- data/rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb +0 -5
- data/rails_generators/nifty_scaffold/templates/tests/testunit/model.rb +0 -7
- data/rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb +0 -10
- data/rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb +0 -14
- data/rails_generators/nifty_scaffold/templates/views/erb/index.html.erb +0 -29
- data/rails_generators/nifty_scaffold/templates/views/erb/new.html.erb +0 -7
- data/rails_generators/nifty_scaffold/templates/views/erb/show.html.erb +0 -20
- data/rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml +0 -10
- data/rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml +0 -14
- data/rails_generators/nifty_scaffold/templates/views/haml/index.html.haml +0 -25
- data/rails_generators/nifty_scaffold/templates/views/haml/new.html.haml +0 -7
- data/rails_generators/nifty_scaffold/templates/views/haml/show.html.haml +0 -20
- data/tasks/deployment.rake +0 -2
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
0.3.1 (February 16th, 2010)
|
|
2
|
+
|
|
3
|
+
* improving documentation
|
|
4
|
+
|
|
5
|
+
* fixing name of generated session model for authlogic in nifty_authorization
|
|
6
|
+
|
|
7
|
+
* use "username" instead of "login" for authlogic haml form template in nifty_authorization
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
0.3.0 (August 15th, 2009)
|
|
2
11
|
|
|
3
12
|
* adding attr_accessible to models in nifty_scaffold
|
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
= Nifty Generators
|
|
2
2
|
|
|
3
|
-
A collection of useful Rails generator scripts.
|
|
3
|
+
A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
== Install
|
|
7
7
|
|
|
8
8
|
gem install nifty-generators
|
|
9
9
|
|
|
10
|
-
You may need to uninstall the older version if it's installed.
|
|
11
|
-
|
|
12
|
-
gem uninstall ryanb-nifty-generators
|
|
13
|
-
|
|
14
10
|
|
|
15
11
|
== Usage
|
|
16
12
|
|
|
17
|
-
Once you install the gem, the generators will be available to all Rails
|
|
18
|
-
applications on your system. If you run script/generate without any
|
|
19
|
-
additional arguments you should see the available generators listed.
|
|
13
|
+
Once you install the gem, the generators will be available to all Rails applications on your system. If you run script/generate without any additional arguments you should see the available generators listed.
|
|
20
14
|
|
|
21
|
-
To run the generator, go to your rails project directory and call it
|
|
22
|
-
using the script/generate or script/destroy command.
|
|
15
|
+
To run the generator, go to your rails project directory and call it using the script/generate or script/destroy command.
|
|
23
16
|
|
|
24
17
|
script/generate nifty_scaffold Recipe name:string index new
|
|
25
18
|
|
|
@@ -40,8 +33,7 @@ To view the README for each generator, run it with the +--help+ option.
|
|
|
40
33
|
|
|
41
34
|
<b>What is the difference between nifty_scaffold and built-in scaffold?</b>
|
|
42
35
|
|
|
43
|
-
One of the primary differences is that nifty_scaffold allows you to choose which
|
|
44
|
-
controller actions to generate.
|
|
36
|
+
One of the primary differences is that nifty_scaffold allows you to choose which controller actions to generate.
|
|
45
37
|
|
|
46
38
|
script/generate nifty_scaffold post name:string index new edit
|
|
47
39
|
|
|
@@ -52,9 +44,7 @@ It also offers support for HAML, Shoulda, and RSpec.
|
|
|
52
44
|
|
|
53
45
|
<b>I get "undefined method 'title'" error.</b>
|
|
54
46
|
|
|
55
|
-
Try running nifty_layout, that will generate this helper method. Or
|
|
56
|
-
you can just change the templates to whatever approach you prefer for
|
|
57
|
-
setting the title.
|
|
47
|
+
Try running nifty_layout, that will generate this helper method. Or you can just change the templates to whatever approach you prefer for setting the title.
|
|
58
48
|
|
|
59
49
|
|
|
60
50
|
<b>I can't set new attributes in my model.</b>
|
|
@@ -64,8 +54,7 @@ Add the attribute to the attr_accessible line in the model.
|
|
|
64
54
|
|
|
65
55
|
<b>I get "undefined method 'root_url'" error.</b>
|
|
66
56
|
|
|
67
|
-
Some generators default redirecting to the root_url. Set this in your
|
|
68
|
-
routes.rb file like this (substituting your controller name).
|
|
57
|
+
Some generators default redirecting to the root_url. Set this in your routes.rb file like this (substituting your controller name).
|
|
69
58
|
|
|
70
59
|
map.root :controller => 'foo'
|
|
71
60
|
|
|
@@ -77,8 +66,7 @@ Run <tt>rake db:migrate</tt>.
|
|
|
77
66
|
|
|
78
67
|
<b>I get a routing error when I try to submit a form.</b>
|
|
79
68
|
|
|
80
|
-
Try restarting your development server. Sometimes it doesn't detect the
|
|
81
|
-
change in the routing.
|
|
69
|
+
Try restarting your development server. Sometimes it doesn't detect the change in the routing.
|
|
82
70
|
|
|
83
71
|
|
|
84
72
|
<b>The tests/specs don't work.</b>
|
|
@@ -96,11 +84,15 @@ Make sure you have mocha installed and require it in your spec/test helper.
|
|
|
96
84
|
Also, make sure you're using Rails 2.1 or greater.
|
|
97
85
|
|
|
98
86
|
|
|
99
|
-
==
|
|
87
|
+
== Found a bug?
|
|
88
|
+
|
|
89
|
+
If you are having a problem with Nifty Generators, first look at the FAQs above. If you still cannot resolve it, please submit an issue here.
|
|
90
|
+
|
|
91
|
+
http://github.com/ryanb/nifty-generators/issues
|
|
92
|
+
|
|
100
93
|
|
|
101
|
-
|
|
94
|
+
== Rails 3
|
|
102
95
|
|
|
103
|
-
|
|
96
|
+
Nifty Generators does not yet officially work with Rails 3, but a fork is available here.
|
|
104
97
|
|
|
105
|
-
|
|
106
|
-
forking the project and modifying to your heart's content.
|
|
98
|
+
http://github.com/dvyjones/nifty-generators
|
data/Rakefile
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
2
|
require 'rake'
|
|
3
|
-
require 'echoe'
|
|
4
|
-
|
|
5
|
-
Echoe.new('nifty-generators', '0.3.0') do |p|
|
|
6
|
-
p.project = "niftygenerators"
|
|
7
|
-
p.description = "A collection of useful generator scripts for Rails."
|
|
8
|
-
p.url = "http://github.com/ryanb/nifty-generators"
|
|
9
|
-
p.author = 'Ryan Bates'
|
|
10
|
-
p.email = "ryan (at) railscasts (dot) com"
|
|
11
|
-
p.ignore_pattern = ["script/*"]
|
|
12
|
-
p.development_dependencies = []
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
|
data/test/test_helper.rb
CHANGED
|
@@ -17,10 +17,12 @@ end
|
|
|
17
17
|
|
|
18
18
|
require 'rubygems'
|
|
19
19
|
gem 'rails', '2.0.2' # getting a Rails.configuration error with 2.1
|
|
20
|
-
|
|
20
|
+
gem 'rubigen', '1.4'
|
|
21
|
+
gem 'shoulda', '2.0.6'
|
|
22
|
+
require 'rubigen' # gem install rubigen --version=1.4
|
|
21
23
|
require 'rubigen/helpers/generator_test_helper'
|
|
22
24
|
require 'rails_generator'
|
|
23
|
-
require 'shoulda' # gem install
|
|
25
|
+
require 'shoulda' # gem install shoulda --version=2.0.6
|
|
24
26
|
require 'mocha'
|
|
25
27
|
|
|
26
28
|
module NiftyGenerators
|
|
@@ -157,7 +157,7 @@ class TestNiftyAuthenticationGenerator < Test::Unit::TestCase
|
|
|
157
157
|
should_generate_file "app/views/sessions/new.html.haml"
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
context "generator with authlogic option and custom
|
|
160
|
+
context "generator with authlogic option and custom account name" do
|
|
161
161
|
rails_generator :nifty_authentication, "Account", :authlogic => true
|
|
162
162
|
should_generate_file 'app/models/account.rb'
|
|
163
163
|
should_generate_file 'app/controllers/accounts_controller.rb'
|
|
@@ -232,5 +232,43 @@ class TestNiftyAuthenticationGenerator < Test::Unit::TestCase
|
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
|
+
|
|
236
|
+
context "generator with authlogic option and custom account and session name" do
|
|
237
|
+
rails_generator :nifty_authentication, "Account", "UserSession", :authlogic => true
|
|
238
|
+
should_generate_file 'app/controllers/user_sessions_controller.rb'
|
|
239
|
+
should_generate_file 'app/helpers/user_sessions_helper.rb'
|
|
240
|
+
should_generate_file 'app/views/user_sessions/new.html.erb'
|
|
241
|
+
should_generate_file 'test/functional/user_sessions_controller_test.rb'
|
|
242
|
+
|
|
243
|
+
should "should generate authentication module with current_user_session method" do
|
|
244
|
+
assert_generated_file "lib/authentication.rb" do |body|
|
|
245
|
+
assert_match "def current_user_session", body
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
should "should generate UserSession model" do
|
|
250
|
+
assert_generated_file "app/models/user_session.rb" do |body|
|
|
251
|
+
assert_match "class UserSession < Authlogic::Session::Base", body
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
should "should generate restful style actions in sessions controller" do
|
|
256
|
+
assert_generated_file "app/controllers/user_sessions_controller.rb" do |body|
|
|
257
|
+
assert_match "UserSession.new", body
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
should "should generate form for user session" do
|
|
262
|
+
assert_generated_file "app/views/user_sessions/new.html.erb" do |body|
|
|
263
|
+
assert_match "form_for @user_session", body
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
should "should handle session controller tests differently" do
|
|
268
|
+
assert_generated_file "test/functional/user_sessions_controller_test.rb" do |body|
|
|
269
|
+
assert_match "UserSession.find", body
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|
|
235
273
|
end
|
|
236
274
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nifty-generators
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Bates
|
|
@@ -9,133 +9,41 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2010-02-16 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
16
|
-
description: A collection of useful generator scripts for
|
|
17
|
-
email: ryan
|
|
16
|
+
description: A collection of useful Rails generator scripts for scaffolding, layout files, authentication, and more.
|
|
17
|
+
email: ryan@railscasts.com
|
|
18
18
|
executables: []
|
|
19
19
|
|
|
20
20
|
extensions: []
|
|
21
21
|
|
|
22
22
|
extra_rdoc_files:
|
|
23
|
+
- README.rdoc
|
|
23
24
|
- CHANGELOG
|
|
24
|
-
- lib/nifty_generators.rb
|
|
25
25
|
- LICENSE
|
|
26
|
-
- README.rdoc
|
|
27
|
-
- tasks/deployment.rake
|
|
28
|
-
- TODO
|
|
29
26
|
files:
|
|
30
|
-
- CHANGELOG
|
|
31
27
|
- lib/nifty_generators.rb
|
|
32
|
-
- LICENSE
|
|
33
|
-
- Manifest
|
|
34
|
-
- rails_generators/nifty_authentication/lib/insert_commands.rb
|
|
35
|
-
- rails_generators/nifty_authentication/nifty_authentication_generator.rb
|
|
36
|
-
- rails_generators/nifty_authentication/templates/authentication.rb
|
|
37
|
-
- rails_generators/nifty_authentication/templates/authlogic_session.rb
|
|
38
|
-
- rails_generators/nifty_authentication/templates/fixtures.yml
|
|
39
|
-
- rails_generators/nifty_authentication/templates/migration.rb
|
|
40
|
-
- rails_generators/nifty_authentication/templates/sessions_controller.rb
|
|
41
|
-
- rails_generators/nifty_authentication/templates/sessions_helper.rb
|
|
42
|
-
- rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb
|
|
43
|
-
- rails_generators/nifty_authentication/templates/tests/rspec/user.rb
|
|
44
|
-
- rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb
|
|
45
|
-
- rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb
|
|
46
|
-
- rails_generators/nifty_authentication/templates/tests/shoulda/user.rb
|
|
47
|
-
- rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb
|
|
48
|
-
- rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb
|
|
49
|
-
- rails_generators/nifty_authentication/templates/tests/testunit/user.rb
|
|
50
|
-
- rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb
|
|
51
|
-
- rails_generators/nifty_authentication/templates/user.rb
|
|
52
|
-
- rails_generators/nifty_authentication/templates/users_controller.rb
|
|
53
|
-
- rails_generators/nifty_authentication/templates/users_helper.rb
|
|
54
|
-
- rails_generators/nifty_authentication/templates/views/erb/login.html.erb
|
|
55
|
-
- rails_generators/nifty_authentication/templates/views/erb/signup.html.erb
|
|
56
|
-
- rails_generators/nifty_authentication/templates/views/haml/login.html.haml
|
|
57
|
-
- rails_generators/nifty_authentication/templates/views/haml/signup.html.haml
|
|
58
|
-
- rails_generators/nifty_authentication/USAGE
|
|
59
|
-
- rails_generators/nifty_config/nifty_config_generator.rb
|
|
60
|
-
- rails_generators/nifty_config/templates/config.yml
|
|
61
|
-
- rails_generators/nifty_config/templates/load_config.rb
|
|
62
|
-
- rails_generators/nifty_config/USAGE
|
|
63
|
-
- rails_generators/nifty_layout/nifty_layout_generator.rb
|
|
64
|
-
- rails_generators/nifty_layout/templates/helper.rb
|
|
65
|
-
- rails_generators/nifty_layout/templates/layout.html.erb
|
|
66
|
-
- rails_generators/nifty_layout/templates/layout.html.haml
|
|
67
|
-
- rails_generators/nifty_layout/templates/stylesheet.css
|
|
68
|
-
- rails_generators/nifty_layout/templates/stylesheet.sass
|
|
69
|
-
- rails_generators/nifty_layout/USAGE
|
|
70
|
-
- rails_generators/nifty_scaffold/nifty_scaffold_generator.rb
|
|
71
|
-
- rails_generators/nifty_scaffold/templates/actions/create.rb
|
|
72
|
-
- rails_generators/nifty_scaffold/templates/actions/destroy.rb
|
|
73
|
-
- rails_generators/nifty_scaffold/templates/actions/edit.rb
|
|
74
|
-
- rails_generators/nifty_scaffold/templates/actions/index.rb
|
|
75
|
-
- rails_generators/nifty_scaffold/templates/actions/new.rb
|
|
76
|
-
- rails_generators/nifty_scaffold/templates/actions/show.rb
|
|
77
|
-
- rails_generators/nifty_scaffold/templates/actions/update.rb
|
|
78
|
-
- rails_generators/nifty_scaffold/templates/controller.rb
|
|
79
|
-
- rails_generators/nifty_scaffold/templates/fixtures.yml
|
|
80
|
-
- rails_generators/nifty_scaffold/templates/helper.rb
|
|
81
|
-
- rails_generators/nifty_scaffold/templates/migration.rb
|
|
82
|
-
- rails_generators/nifty_scaffold/templates/model.rb
|
|
83
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb
|
|
84
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb
|
|
85
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb
|
|
86
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb
|
|
87
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb
|
|
88
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb
|
|
89
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb
|
|
90
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb
|
|
91
|
-
- rails_generators/nifty_scaffold/templates/tests/rspec/model.rb
|
|
92
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb
|
|
93
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb
|
|
94
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb
|
|
95
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb
|
|
96
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb
|
|
97
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb
|
|
98
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb
|
|
99
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb
|
|
100
|
-
- rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb
|
|
101
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb
|
|
102
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb
|
|
103
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb
|
|
104
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb
|
|
105
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb
|
|
106
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb
|
|
107
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb
|
|
108
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb
|
|
109
|
-
- rails_generators/nifty_scaffold/templates/tests/testunit/model.rb
|
|
110
|
-
- rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb
|
|
111
|
-
- rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb
|
|
112
|
-
- rails_generators/nifty_scaffold/templates/views/erb/index.html.erb
|
|
113
|
-
- rails_generators/nifty_scaffold/templates/views/erb/new.html.erb
|
|
114
|
-
- rails_generators/nifty_scaffold/templates/views/erb/show.html.erb
|
|
115
|
-
- rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml
|
|
116
|
-
- rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml
|
|
117
|
-
- rails_generators/nifty_scaffold/templates/views/haml/index.html.haml
|
|
118
|
-
- rails_generators/nifty_scaffold/templates/views/haml/new.html.haml
|
|
119
|
-
- rails_generators/nifty_scaffold/templates/views/haml/show.html.haml
|
|
120
|
-
- rails_generators/nifty_scaffold/USAGE
|
|
121
|
-
- Rakefile
|
|
122
|
-
- README.rdoc
|
|
123
|
-
- tasks/deployment.rake
|
|
124
28
|
- test/test_helper.rb
|
|
125
29
|
- test/test_nifty_authentication_generator.rb
|
|
126
30
|
- test/test_nifty_config_generator.rb
|
|
127
31
|
- test/test_nifty_layout_generator.rb
|
|
128
32
|
- test/test_nifty_scaffold_generator.rb
|
|
129
|
-
-
|
|
130
|
-
-
|
|
33
|
+
- LICENSE
|
|
34
|
+
- README.rdoc
|
|
35
|
+
- Rakefile
|
|
36
|
+
- CHANGELOG
|
|
131
37
|
has_rdoc: true
|
|
132
38
|
homepage: http://github.com/ryanb/nifty-generators
|
|
39
|
+
licenses: []
|
|
40
|
+
|
|
133
41
|
post_install_message:
|
|
134
42
|
rdoc_options:
|
|
135
43
|
- --line-numbers
|
|
136
44
|
- --inline-source
|
|
137
45
|
- --title
|
|
138
|
-
-
|
|
46
|
+
- NiftyGenerators
|
|
139
47
|
- --main
|
|
140
48
|
- README.rdoc
|
|
141
49
|
require_paths:
|
|
@@ -154,14 +62,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
62
|
version:
|
|
155
63
|
requirements: []
|
|
156
64
|
|
|
157
|
-
rubyforge_project:
|
|
158
|
-
rubygems_version: 1.3.
|
|
65
|
+
rubyforge_project:
|
|
66
|
+
rubygems_version: 1.3.5
|
|
159
67
|
signing_key:
|
|
160
|
-
specification_version:
|
|
161
|
-
summary: A collection of useful generator scripts
|
|
162
|
-
test_files:
|
|
163
|
-
|
|
164
|
-
- test/test_nifty_authentication_generator.rb
|
|
165
|
-
- test/test_nifty_config_generator.rb
|
|
166
|
-
- test/test_nifty_layout_generator.rb
|
|
167
|
-
- test/test_nifty_scaffold_generator.rb
|
|
68
|
+
specification_version: 3
|
|
69
|
+
summary: A collection of useful Rails generator scripts.
|
|
70
|
+
test_files: []
|
|
71
|
+
|
data/Manifest
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
CHANGELOG
|
|
2
|
-
lib/nifty_generators.rb
|
|
3
|
-
LICENSE
|
|
4
|
-
Manifest
|
|
5
|
-
rails_generators/nifty_authentication/lib/insert_commands.rb
|
|
6
|
-
rails_generators/nifty_authentication/nifty_authentication_generator.rb
|
|
7
|
-
rails_generators/nifty_authentication/templates/authentication.rb
|
|
8
|
-
rails_generators/nifty_authentication/templates/authlogic_session.rb
|
|
9
|
-
rails_generators/nifty_authentication/templates/fixtures.yml
|
|
10
|
-
rails_generators/nifty_authentication/templates/migration.rb
|
|
11
|
-
rails_generators/nifty_authentication/templates/sessions_controller.rb
|
|
12
|
-
rails_generators/nifty_authentication/templates/sessions_helper.rb
|
|
13
|
-
rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb
|
|
14
|
-
rails_generators/nifty_authentication/templates/tests/rspec/user.rb
|
|
15
|
-
rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb
|
|
16
|
-
rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb
|
|
17
|
-
rails_generators/nifty_authentication/templates/tests/shoulda/user.rb
|
|
18
|
-
rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb
|
|
19
|
-
rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb
|
|
20
|
-
rails_generators/nifty_authentication/templates/tests/testunit/user.rb
|
|
21
|
-
rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb
|
|
22
|
-
rails_generators/nifty_authentication/templates/user.rb
|
|
23
|
-
rails_generators/nifty_authentication/templates/users_controller.rb
|
|
24
|
-
rails_generators/nifty_authentication/templates/users_helper.rb
|
|
25
|
-
rails_generators/nifty_authentication/templates/views/erb/login.html.erb
|
|
26
|
-
rails_generators/nifty_authentication/templates/views/erb/signup.html.erb
|
|
27
|
-
rails_generators/nifty_authentication/templates/views/haml/login.html.haml
|
|
28
|
-
rails_generators/nifty_authentication/templates/views/haml/signup.html.haml
|
|
29
|
-
rails_generators/nifty_authentication/USAGE
|
|
30
|
-
rails_generators/nifty_config/nifty_config_generator.rb
|
|
31
|
-
rails_generators/nifty_config/templates/config.yml
|
|
32
|
-
rails_generators/nifty_config/templates/load_config.rb
|
|
33
|
-
rails_generators/nifty_config/USAGE
|
|
34
|
-
rails_generators/nifty_layout/nifty_layout_generator.rb
|
|
35
|
-
rails_generators/nifty_layout/templates/helper.rb
|
|
36
|
-
rails_generators/nifty_layout/templates/layout.html.erb
|
|
37
|
-
rails_generators/nifty_layout/templates/layout.html.haml
|
|
38
|
-
rails_generators/nifty_layout/templates/stylesheet.css
|
|
39
|
-
rails_generators/nifty_layout/templates/stylesheet.sass
|
|
40
|
-
rails_generators/nifty_layout/USAGE
|
|
41
|
-
rails_generators/nifty_scaffold/nifty_scaffold_generator.rb
|
|
42
|
-
rails_generators/nifty_scaffold/templates/actions/create.rb
|
|
43
|
-
rails_generators/nifty_scaffold/templates/actions/destroy.rb
|
|
44
|
-
rails_generators/nifty_scaffold/templates/actions/edit.rb
|
|
45
|
-
rails_generators/nifty_scaffold/templates/actions/index.rb
|
|
46
|
-
rails_generators/nifty_scaffold/templates/actions/new.rb
|
|
47
|
-
rails_generators/nifty_scaffold/templates/actions/show.rb
|
|
48
|
-
rails_generators/nifty_scaffold/templates/actions/update.rb
|
|
49
|
-
rails_generators/nifty_scaffold/templates/controller.rb
|
|
50
|
-
rails_generators/nifty_scaffold/templates/fixtures.yml
|
|
51
|
-
rails_generators/nifty_scaffold/templates/helper.rb
|
|
52
|
-
rails_generators/nifty_scaffold/templates/migration.rb
|
|
53
|
-
rails_generators/nifty_scaffold/templates/model.rb
|
|
54
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb
|
|
55
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb
|
|
56
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb
|
|
57
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb
|
|
58
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb
|
|
59
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb
|
|
60
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb
|
|
61
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb
|
|
62
|
-
rails_generators/nifty_scaffold/templates/tests/rspec/model.rb
|
|
63
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb
|
|
64
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb
|
|
65
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb
|
|
66
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb
|
|
67
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb
|
|
68
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb
|
|
69
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb
|
|
70
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb
|
|
71
|
-
rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb
|
|
72
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb
|
|
73
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb
|
|
74
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb
|
|
75
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb
|
|
76
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb
|
|
77
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb
|
|
78
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb
|
|
79
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb
|
|
80
|
-
rails_generators/nifty_scaffold/templates/tests/testunit/model.rb
|
|
81
|
-
rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb
|
|
82
|
-
rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb
|
|
83
|
-
rails_generators/nifty_scaffold/templates/views/erb/index.html.erb
|
|
84
|
-
rails_generators/nifty_scaffold/templates/views/erb/new.html.erb
|
|
85
|
-
rails_generators/nifty_scaffold/templates/views/erb/show.html.erb
|
|
86
|
-
rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml
|
|
87
|
-
rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml
|
|
88
|
-
rails_generators/nifty_scaffold/templates/views/haml/index.html.haml
|
|
89
|
-
rails_generators/nifty_scaffold/templates/views/haml/new.html.haml
|
|
90
|
-
rails_generators/nifty_scaffold/templates/views/haml/show.html.haml
|
|
91
|
-
rails_generators/nifty_scaffold/USAGE
|
|
92
|
-
Rakefile
|
|
93
|
-
README.rdoc
|
|
94
|
-
tasks/deployment.rake
|
|
95
|
-
test/test_helper.rb
|
|
96
|
-
test/test_nifty_authentication_generator.rb
|
|
97
|
-
test/test_nifty_config_generator.rb
|
|
98
|
-
test/test_nifty_layout_generator.rb
|
|
99
|
-
test/test_nifty_scaffold_generator.rb
|
|
100
|
-
TODO
|