dry_crud 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/README.rdoc +25 -10
  2. data/Rakefile +30 -8
  3. data/VERSION +1 -1
  4. data/lib/generators/dry_crud/dry_crud_generator.rb +15 -2
  5. data/lib/generators/dry_crud/templates/app/controllers/crud_controller.rb +18 -10
  6. data/lib/generators/dry_crud/templates/app/controllers/list_controller.rb +14 -11
  7. data/lib/generators/dry_crud/templates/app/helpers/crud_helper.rb +71 -29
  8. data/lib/generators/dry_crud/templates/app/helpers/standard_form_builder.rb +40 -3
  9. data/lib/generators/dry_crud/templates/app/helpers/standard_helper.rb +8 -27
  10. data/lib/generators/dry_crud/templates/app/helpers/standard_table_builder.rb +13 -6
  11. data/lib/generators/dry_crud/templates/app/views/crud/_form.html.erb +1 -1
  12. data/lib/generators/dry_crud/templates/app/views/crud/_form.html.haml +1 -1
  13. data/lib/generators/dry_crud/templates/app/views/layouts/crud.html.erb +4 -4
  14. data/lib/generators/dry_crud/templates/app/views/layouts/crud.html.haml +5 -5
  15. data/lib/generators/dry_crud/templates/spec/controllers/crud_test_models_controller_spec.rb +433 -0
  16. data/lib/generators/dry_crud/templates/spec/helpers/crud_helper_spec.rb +146 -0
  17. data/lib/generators/dry_crud/templates/spec/helpers/list_helper_spec.rb +154 -0
  18. data/lib/generators/dry_crud/templates/spec/helpers/standard_form_builder_spec.rb +215 -0
  19. data/lib/generators/dry_crud/templates/spec/helpers/standard_helper_spec.rb +387 -0
  20. data/lib/generators/dry_crud/templates/spec/helpers/standard_table_builder_spec.rb +120 -0
  21. data/lib/generators/dry_crud/templates/spec/support/crud_controller_examples.rb +244 -0
  22. data/lib/generators/dry_crud/templates/spec/support/crud_controller_test_helper.rb +160 -0
  23. data/lib/generators/dry_crud/templates/test/crud_test_model.rb +45 -18
  24. data/lib/generators/dry_crud/templates/test/functional/crud_controller_test_helper.rb +19 -9
  25. data/lib/generators/dry_crud/templates/test/functional/crud_test_models_controller_test.rb +11 -14
  26. data/lib/generators/dry_crud/templates/test/unit/helpers/crud_helper_test.rb +26 -13
  27. data/lib/generators/dry_crud/templates/test/unit/helpers/list_helper_test.rb +0 -4
  28. data/lib/generators/dry_crud/templates/test/unit/helpers/standard_form_builder_test.rb +6 -0
  29. data/lib/generators/dry_crud/templates/test/unit/helpers/standard_helper_test.rb +9 -35
  30. data/lib/generators/dry_crud/templates/test/unit/helpers/standard_table_builder_test.rb +5 -4
  31. data/test/templates/Gemfile +3 -1
  32. data/test/templates/app/controllers/people_controller.rb +1 -1
  33. data/test/templates/app/controllers/vips_controller.rb +1 -1
  34. data/test/templates/app/models/city.rb +1 -1
  35. data/test/templates/app/views/admin/cities/_form.html.erb +1 -1
  36. data/test/templates/app/views/admin/cities/_form.html.haml +1 -1
  37. data/test/templates/app/views/admin/countries/_list.html.erb +3 -4
  38. data/test/templates/app/views/admin/countries/_list.html.haml +3 -4
  39. data/test/templates/app/views/ajax/_form.html.erb +1 -1
  40. data/test/templates/app/views/ajax/_form.html.haml +1 -1
  41. data/test/templates/spec/controllers/admin/cities_controller_spec.rb +74 -0
  42. data/test/templates/spec/controllers/admin/countries_controller_spec.rb +56 -0
  43. data/test/templates/spec/controllers/people_controller_spec.rb +80 -0
  44. data/test/templates/spec/routing/cities_routing_spec.rb +11 -0
  45. data/test/templates/spec/routing/countries_routing_spec.rb +11 -0
  46. data/test/templates/test/functional/admin/cities_controller_test.rb +1 -1
  47. data/test/templates/test/functional/admin/countries_controller_test.rb +1 -1
  48. data/test/templates/test/functional/people_controller_test.rb +3 -3
  49. metadata +18 -7
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry_crud
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 6
8
+ - 7
9
9
  - 0
10
- version: 1.6.0
10
+ version: 1.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pascal Zumkehr
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-17 00:00:00 +02:00
19
- default_executable:
18
+ date: 2012-10-14 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rails
@@ -100,6 +99,14 @@ files:
100
99
  - lib/generators/dry_crud/templates/config/initializers/field_error_proc.rb
101
100
  - lib/generators/dry_crud/templates/config/locales/en_crud.yml
102
101
  - lib/generators/dry_crud/templates/INSTALL
102
+ - lib/generators/dry_crud/templates/spec/controllers/crud_test_models_controller_spec.rb
103
+ - lib/generators/dry_crud/templates/spec/helpers/crud_helper_spec.rb
104
+ - lib/generators/dry_crud/templates/spec/helpers/list_helper_spec.rb
105
+ - lib/generators/dry_crud/templates/spec/helpers/standard_form_builder_spec.rb
106
+ - lib/generators/dry_crud/templates/spec/helpers/standard_helper_spec.rb
107
+ - lib/generators/dry_crud/templates/spec/helpers/standard_table_builder_spec.rb
108
+ - lib/generators/dry_crud/templates/spec/support/crud_controller_examples.rb
109
+ - lib/generators/dry_crud/templates/spec/support/crud_controller_test_helper.rb
103
110
  - lib/generators/dry_crud/templates/test/crud_test_model.rb
104
111
  - lib/generators/dry_crud/templates/test/custom_assertions.rb
105
112
  - lib/generators/dry_crud/templates/test/functional/crud_controller_test_helper.rb
@@ -163,6 +170,11 @@ files:
163
170
  - test/templates/db/migrate/20100511174904_create_people_and_cities.rb
164
171
  - test/templates/db/seeds.rb
165
172
  - test/templates/Gemfile
173
+ - test/templates/spec/controllers/admin/cities_controller_spec.rb
174
+ - test/templates/spec/controllers/admin/countries_controller_spec.rb
175
+ - test/templates/spec/controllers/people_controller_spec.rb
176
+ - test/templates/spec/routing/cities_routing_spec.rb
177
+ - test/templates/spec/routing/countries_routing_spec.rb
166
178
  - test/templates/test/fixtures/cities.yml
167
179
  - test/templates/test/fixtures/countries.yml
168
180
  - test/templates/test/fixtures/people.yml
@@ -173,7 +185,6 @@ files:
173
185
  - MIT-LICENSE
174
186
  - README.rdoc
175
187
  - VERSION
176
- has_rdoc: true
177
188
  homepage: http://codez.ch/dry_crud
178
189
  licenses: []
179
190
 
@@ -207,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
218
  requirements: []
208
219
 
209
220
  rubyforge_project:
210
- rubygems_version: 1.5.2
221
+ rubygems_version: 1.8.24
211
222
  signing_key:
212
223
  specification_version: 3
213
224
  summary: Generates DRY and specifically extendable CRUD controller, views and helpers for Rails applications