twilson63-nifty-generators 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. data/CHANGELOG +71 -0
  2. data/LICENSE +20 -0
  3. data/Manifest +103 -0
  4. data/README.rdoc +94 -0
  5. data/Rakefile +15 -0
  6. data/TODO +7 -0
  7. data/lib/nifty_generators.rb +3 -0
  8. data/nifty-generators.gemspec +32 -0
  9. data/rails_generators/nifty_authentication/USAGE +46 -0
  10. data/rails_generators/nifty_authentication/lib/insert_commands.rb +74 -0
  11. data/rails_generators/nifty_authentication/nifty_authentication_generator.rb +118 -0
  12. data/rails_generators/nifty_authentication/templates/authentication.rb +36 -0
  13. data/rails_generators/nifty_authentication/templates/fixtures.yml +12 -0
  14. data/rails_generators/nifty_authentication/templates/migration.rb +15 -0
  15. data/rails_generators/nifty_authentication/templates/sessions_controller.rb +22 -0
  16. data/rails_generators/nifty_authentication/templates/sessions_helper.rb +2 -0
  17. data/rails_generators/nifty_authentication/templates/tests/rspec/sessions_controller.rb +25 -0
  18. data/rails_generators/nifty_authentication/templates/tests/rspec/user.rb +81 -0
  19. data/rails_generators/nifty_authentication/templates/tests/rspec/users_controller.rb +24 -0
  20. data/rails_generators/nifty_authentication/templates/tests/shoulda/sessions_controller.rb +26 -0
  21. data/rails_generators/nifty_authentication/templates/tests/shoulda/user.rb +83 -0
  22. data/rails_generators/nifty_authentication/templates/tests/shoulda/users_controller.rb +25 -0
  23. data/rails_generators/nifty_authentication/templates/tests/testunit/sessions_controller.rb +22 -0
  24. data/rails_generators/nifty_authentication/templates/tests/testunit/user.rb +86 -0
  25. data/rails_generators/nifty_authentication/templates/tests/testunit/users_controller.rb +21 -0
  26. data/rails_generators/nifty_authentication/templates/user.rb +36 -0
  27. data/rails_generators/nifty_authentication/templates/users_controller.rb +16 -0
  28. data/rails_generators/nifty_authentication/templates/users_helper.rb +2 -0
  29. data/rails_generators/nifty_authentication/templates/views/erb/login.html.erb +15 -0
  30. data/rails_generators/nifty_authentication/templates/views/erb/signup.html.erb +24 -0
  31. data/rails_generators/nifty_authentication/templates/views/haml/login.html.haml +15 -0
  32. data/rails_generators/nifty_authentication/templates/views/haml/signup.html.haml +24 -0
  33. data/rails_generators/nifty_config/USAGE +23 -0
  34. data/rails_generators/nifty_config/nifty_config_generator.rb +32 -0
  35. data/rails_generators/nifty_config/templates/config.yml +8 -0
  36. data/rails_generators/nifty_config/templates/load_config.rb +2 -0
  37. data/rails_generators/nifty_layout/USAGE +25 -0
  38. data/rails_generators/nifty_layout/nifty_layout_generator.rb +44 -0
  39. data/rails_generators/nifty_layout/templates/helper.rb +23 -0
  40. data/rails_generators/nifty_layout/templates/layout.html.erb +22 -0
  41. data/rails_generators/nifty_layout/templates/layout.html.haml +19 -0
  42. data/rails_generators/nifty_layout/templates/stylesheet.css +81 -0
  43. data/rails_generators/nifty_layout/templates/stylesheet.sass +67 -0
  44. data/rails_generators/nifty_scaffold/USAGE +51 -0
  45. data/rails_generators/nifty_scaffold/nifty_scaffold_generator.rb +227 -0
  46. data/rails_generators/nifty_scaffold/templates/actions/create.rb +9 -0
  47. data/rails_generators/nifty_scaffold/templates/actions/destroy.rb +6 -0
  48. data/rails_generators/nifty_scaffold/templates/actions/edit.rb +3 -0
  49. data/rails_generators/nifty_scaffold/templates/actions/index.rb +3 -0
  50. data/rails_generators/nifty_scaffold/templates/actions/new.rb +3 -0
  51. data/rails_generators/nifty_scaffold/templates/actions/show.rb +3 -0
  52. data/rails_generators/nifty_scaffold/templates/actions/update.rb +9 -0
  53. data/rails_generators/nifty_scaffold/templates/controller.rb +3 -0
  54. data/rails_generators/nifty_scaffold/templates/fixtures.yml +9 -0
  55. data/rails_generators/nifty_scaffold/templates/helper.rb +2 -0
  56. data/rails_generators/nifty_scaffold/templates/migration.rb +16 -0
  57. data/rails_generators/nifty_scaffold/templates/model.rb +2 -0
  58. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/create.rb +11 -0
  59. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/destroy.rb +6 -0
  60. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/edit.rb +4 -0
  61. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/index.rb +4 -0
  62. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/new.rb +4 -0
  63. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/show.rb +4 -0
  64. data/rails_generators/nifty_scaffold/templates/tests/rspec/actions/update.rb +11 -0
  65. data/rails_generators/nifty_scaffold/templates/tests/rspec/controller.rb +8 -0
  66. data/rails_generators/nifty_scaffold/templates/tests/rspec/model.rb +7 -0
  67. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb +13 -0
  68. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb +8 -0
  69. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb +6 -0
  70. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb +6 -0
  71. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb +6 -0
  72. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb +6 -0
  73. data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb +13 -0
  74. data/rails_generators/nifty_scaffold/templates/tests/shoulda/controller.rb +5 -0
  75. data/rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb +7 -0
  76. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/create.rb +11 -0
  77. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/destroy.rb +6 -0
  78. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/edit.rb +4 -0
  79. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/index.rb +4 -0
  80. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/new.rb +4 -0
  81. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/show.rb +4 -0
  82. data/rails_generators/nifty_scaffold/templates/tests/testunit/actions/update.rb +11 -0
  83. data/rails_generators/nifty_scaffold/templates/tests/testunit/controller.rb +5 -0
  84. data/rails_generators/nifty_scaffold/templates/tests/testunit/model.rb +7 -0
  85. data/rails_generators/nifty_scaffold/templates/views/erb/_form.html.erb +10 -0
  86. data/rails_generators/nifty_scaffold/templates/views/erb/edit.html.erb +14 -0
  87. data/rails_generators/nifty_scaffold/templates/views/erb/index.html.erb +29 -0
  88. data/rails_generators/nifty_scaffold/templates/views/erb/new.html.erb +7 -0
  89. data/rails_generators/nifty_scaffold/templates/views/erb/show.html.erb +20 -0
  90. data/rails_generators/nifty_scaffold/templates/views/haml/_form.html.haml +11 -0
  91. data/rails_generators/nifty_scaffold/templates/views/haml/edit.html.haml +1 -0
  92. data/rails_generators/nifty_scaffold/templates/views/haml/index.html.haml +1 -0
  93. data/rails_generators/nifty_scaffold/templates/views/haml/new.html.haml +2 -0
  94. data/rails_generators/nifty_scaffold/templates/views/haml/show.html.haml +6 -0
  95. data/tasks/deployment.rake +2 -0
  96. data/test/test_helper.rb +117 -0
  97. data/test/test_nifty_authentication_generator.rb +160 -0
  98. data/test/test_nifty_config_generator.rb +37 -0
  99. data/test/test_nifty_layout_generator.rb +42 -0
  100. data/test/test_nifty_scaffold_generator.rb +532 -0
  101. metadata +166 -0
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: twilson63-nifty-generators
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.5
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Bates
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-24 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A collection of useful generator scripts for Rails.
17
+ email: ryan (at) railscasts (dot) com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - CHANGELOG
24
+ - lib/nifty_generators.rb
25
+ - LICENSE
26
+ - README.rdoc
27
+ - tasks/deployment.rake
28
+ - TODO
29
+ files:
30
+ - CHANGELOG
31
+ - lib/nifty_generators.rb
32
+ - LICENSE
33
+ - Manifest
34
+ - nifty-generators.gemspec
35
+ - rails_generators/nifty_authentication/lib/insert_commands.rb
36
+ - rails_generators/nifty_authentication/nifty_authentication_generator.rb
37
+ - rails_generators/nifty_authentication/templates/authentication.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
+ - test/test_helper.rb
125
+ - test/test_nifty_authentication_generator.rb
126
+ - test/test_nifty_config_generator.rb
127
+ - test/test_nifty_layout_generator.rb
128
+ - test/test_nifty_scaffold_generator.rb
129
+ - TODO
130
+ has_rdoc: true
131
+ homepage: http://github.com/ryanb/nifty-generators
132
+ post_install_message:
133
+ rdoc_options:
134
+ - --line-numbers
135
+ - --inline-source
136
+ - --title
137
+ - Nifty-generators
138
+ - --main
139
+ - README.rdoc
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: "0"
147
+ version:
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: "1.2"
153
+ version:
154
+ requirements: []
155
+
156
+ rubyforge_project: niftygenerators
157
+ rubygems_version: 1.2.0
158
+ signing_key:
159
+ specification_version: 2
160
+ summary: A collection of useful generator scripts for Rails.
161
+ test_files:
162
+ - test/test_helper.rb
163
+ - test/test_nifty_authentication_generator.rb
164
+ - test/test_nifty_config_generator.rb
165
+ - test/test_nifty_layout_generator.rb
166
+ - test/test_nifty_scaffold_generator.rb