josevalim-inherited_resources 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/CHANGELOG +4 -0
  2. data/MIT-LICENSE +21 -0
  3. data/README +362 -0
  4. data/Rakefile +19 -0
  5. data/init.rb +1 -0
  6. data/lib/inherited_resources.rb +4 -0
  7. data/lib/inherited_resources/base.rb +272 -0
  8. data/lib/inherited_resources/base_helpers.rb +199 -0
  9. data/lib/inherited_resources/belongs_to.rb +227 -0
  10. data/lib/inherited_resources/belongs_to_helpers.rb +89 -0
  11. data/lib/inherited_resources/class_methods.rb +155 -0
  12. data/lib/inherited_resources/polymorphic_helpers.rb +19 -0
  13. data/lib/inherited_resources/respond_to.rb +324 -0
  14. data/lib/inherited_resources/singleton_helpers.rb +53 -0
  15. data/lib/inherited_resources/url_helpers.rb +147 -0
  16. data/test/aliases_test.rb +71 -0
  17. data/test/base_helpers_test.rb +130 -0
  18. data/test/base_test.rb +219 -0
  19. data/test/belongs_to_base_test.rb +268 -0
  20. data/test/belongs_to_test.rb +109 -0
  21. data/test/class_methods_test.rb +73 -0
  22. data/test/fixtures/en.yml +9 -0
  23. data/test/nested_belongs_to_test.rb +138 -0
  24. data/test/polymorphic_base_test.rb +282 -0
  25. data/test/respond_to_test.rb +282 -0
  26. data/test/singleton_base_test.rb +226 -0
  27. data/test/test_helper.rb +37 -0
  28. data/test/url_helpers_test.rb +284 -0
  29. data/test/views/cities/edit.html.erb +1 -0
  30. data/test/views/cities/index.html.erb +1 -0
  31. data/test/views/cities/new.html.erb +1 -0
  32. data/test/views/cities/show.html.erb +1 -0
  33. data/test/views/comments/edit.html.erb +1 -0
  34. data/test/views/comments/index.html.erb +1 -0
  35. data/test/views/comments/new.html.erb +1 -0
  36. data/test/views/comments/show.html.erb +1 -0
  37. data/test/views/employees/edit.html.erb +1 -0
  38. data/test/views/employees/index.html.erb +1 -0
  39. data/test/views/employees/new.html.erb +1 -0
  40. data/test/views/employees/show.html.erb +1 -0
  41. data/test/views/managers/edit.html.erb +1 -0
  42. data/test/views/managers/new.html.erb +1 -0
  43. data/test/views/managers/show.html.erb +1 -0
  44. data/test/views/pets/edit.html.erb +1 -0
  45. data/test/views/professors/edit.html.erb +1 -0
  46. data/test/views/professors/index.html.erb +1 -0
  47. data/test/views/professors/new.html.erb +1 -0
  48. data/test/views/professors/show.html.erb +1 -0
  49. data/test/views/projects/index.html.erb +1 -0
  50. data/test/views/projects/respond_to_with_resource.html.erb +1 -0
  51. data/test/views/students/edit.html.erb +1 -0
  52. data/test/views/students/new.html.erb +1 -0
  53. data/test/views/users/edit.html.erb +1 -0
  54. data/test/views/users/index.html.erb +1 -0
  55. data/test/views/users/new.html.erb +1 -0
  56. data/test/views/users/show.html.erb +1 -0
  57. metadata +108 -0
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ RespondTo HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Edit HTML
@@ -0,0 +1 @@
1
+ Index HTML
@@ -0,0 +1 @@
1
+ New HTML
@@ -0,0 +1 @@
1
+ Show HTML
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: josevalim-inherited_resources
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.1"
5
+ platform: ruby
6
+ authors:
7
+ - "Jos\xC3\xA9 Valim"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-02-04 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.
17
+ email: jose.valim@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README
24
+ files:
25
+ - CHANGELOG
26
+ - MIT-LICENSE
27
+ - README
28
+ - Rakefile
29
+ - init.rb
30
+ - lib/inherited_resources.rb
31
+ - lib/inherited_resources/base.rb
32
+ - lib/inherited_resources/base_helpers.rb
33
+ - lib/inherited_resources/belongs_to.rb
34
+ - lib/inherited_resources/belongs_to_helpers.rb
35
+ - lib/inherited_resources/class_methods.rb
36
+ - lib/inherited_resources/polymorphic_helpers.rb
37
+ - lib/inherited_resources/respond_to.rb
38
+ - lib/inherited_resources/singleton_helpers.rb
39
+ - lib/inherited_resources/url_helpers.rb
40
+ has_rdoc: true
41
+ homepage: http://github.com/josevalim/inherited_resources
42
+ post_install_message:
43
+ rdoc_options:
44
+ - --main
45
+ - README
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
53
+ version:
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.2.0
64
+ signing_key:
65
+ specification_version: 2
66
+ summary: Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.
67
+ test_files:
68
+ - test/aliases_test.rb
69
+ - test/base_helpers_test.rb
70
+ - test/base_test.rb
71
+ - test/belongs_to_base_test.rb
72
+ - test/belongs_to_test.rb
73
+ - test/class_methods_test.rb
74
+ - test/fixtures/en.yml
75
+ - test/nested_belongs_to_test.rb
76
+ - test/polymorphic_base_test.rb
77
+ - test/respond_to_test.rb
78
+ - test/singleton_base_test.rb
79
+ - test/test_helper.rb
80
+ - test/url_helpers_test.rb
81
+ - test/views/cities/edit.html.erb
82
+ - test/views/cities/index.html.erb
83
+ - test/views/cities/new.html.erb
84
+ - test/views/cities/show.html.erb
85
+ - test/views/comments/edit.html.erb
86
+ - test/views/comments/index.html.erb
87
+ - test/views/comments/new.html.erb
88
+ - test/views/comments/show.html.erb
89
+ - test/views/employees/edit.html.erb
90
+ - test/views/employees/index.html.erb
91
+ - test/views/employees/new.html.erb
92
+ - test/views/employees/show.html.erb
93
+ - test/views/managers/edit.html.erb
94
+ - test/views/managers/new.html.erb
95
+ - test/views/managers/show.html.erb
96
+ - test/views/pets/edit.html.erb
97
+ - test/views/professors/edit.html.erb
98
+ - test/views/professors/index.html.erb
99
+ - test/views/professors/new.html.erb
100
+ - test/views/professors/show.html.erb
101
+ - test/views/projects/index.html.erb
102
+ - test/views/projects/respond_to_with_resource.html.erb
103
+ - test/views/students/edit.html.erb
104
+ - test/views/students/new.html.erb
105
+ - test/views/users/edit.html.erb
106
+ - test/views/users/index.html.erb
107
+ - test/views/users/new.html.erb
108
+ - test/views/users/show.html.erb