karsthammer-inherited_resources 1.1.2

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.
Files changed (36) hide show
  1. data/CHANGELOG +119 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +516 -0
  4. data/Rakefile +43 -0
  5. data/lib/generators/rails/USAGE +10 -0
  6. data/lib/generators/rails/inherited_resources_controller_generator.rb +11 -0
  7. data/lib/generators/rails/templates/controller.rb +5 -0
  8. data/lib/inherited_resources.rb +37 -0
  9. data/lib/inherited_resources/actions.rb +67 -0
  10. data/lib/inherited_resources/base.rb +44 -0
  11. data/lib/inherited_resources/base_helpers.rb +270 -0
  12. data/lib/inherited_resources/belongs_to_helpers.rb +97 -0
  13. data/lib/inherited_resources/blank_slate.rb +12 -0
  14. data/lib/inherited_resources/class_methods.rb +267 -0
  15. data/lib/inherited_resources/dsl.rb +26 -0
  16. data/lib/inherited_resources/polymorphic_helpers.rb +155 -0
  17. data/lib/inherited_resources/responder.rb +6 -0
  18. data/lib/inherited_resources/singleton_helpers.rb +95 -0
  19. data/lib/inherited_resources/url_helpers.rb +188 -0
  20. data/lib/inherited_resources/version.rb +3 -0
  21. data/test/aliases_test.rb +144 -0
  22. data/test/association_chain_test.rb +125 -0
  23. data/test/base_test.rb +278 -0
  24. data/test/belongs_to_test.rb +105 -0
  25. data/test/class_methods_test.rb +132 -0
  26. data/test/customized_base_test.rb +168 -0
  27. data/test/customized_belongs_to_test.rb +76 -0
  28. data/test/defaults_test.rb +70 -0
  29. data/test/nested_belongs_to_test.rb +108 -0
  30. data/test/optional_belongs_to_test.rb +164 -0
  31. data/test/polymorphic_test.rb +186 -0
  32. data/test/redirect_to_test.rb +51 -0
  33. data/test/singleton_test.rb +83 -0
  34. data/test/test_helper.rb +40 -0
  35. data/test/url_helpers_test.rb +665 -0
  36. metadata +142 -0
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: karsthammer-inherited_resources
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 2
9
+ version: 1.1.2
10
+ platform: ruby
11
+ authors:
12
+ - "Jos\xC3\xA9 Valim"
13
+ - Karst Hammer
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-04-03 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: responders
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 0
31
+ - 6
32
+ - 0
33
+ version: 0.6.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: has_scope
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
46
+ - 5
47
+ - 0
48
+ version: 0.5.0
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ description: Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.
52
+ email: jose.valim@gmail.com
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ extra_rdoc_files:
58
+ - README.rdoc
59
+ files:
60
+ - CHANGELOG
61
+ - MIT-LICENSE
62
+ - README.rdoc
63
+ - Rakefile
64
+ - lib/generators/rails/USAGE
65
+ - lib/generators/rails/inherited_resources_controller_generator.rb
66
+ - lib/generators/rails/templates/controller.rb
67
+ - lib/inherited_resources.rb
68
+ - lib/inherited_resources/actions.rb
69
+ - lib/inherited_resources/base.rb
70
+ - lib/inherited_resources/base_helpers.rb
71
+ - lib/inherited_resources/belongs_to_helpers.rb
72
+ - lib/inherited_resources/blank_slate.rb
73
+ - lib/inherited_resources/class_methods.rb
74
+ - lib/inherited_resources/dsl.rb
75
+ - lib/inherited_resources/polymorphic_helpers.rb
76
+ - lib/inherited_resources/responder.rb
77
+ - lib/inherited_resources/singleton_helpers.rb
78
+ - lib/inherited_resources/url_helpers.rb
79
+ - lib/inherited_resources/version.rb
80
+ - test/aliases_test.rb
81
+ - test/association_chain_test.rb
82
+ - test/base_test.rb
83
+ - test/belongs_to_test.rb
84
+ - test/class_methods_test.rb
85
+ - test/customized_base_test.rb
86
+ - test/customized_belongs_to_test.rb
87
+ - test/defaults_test.rb
88
+ - test/nested_belongs_to_test.rb
89
+ - test/optional_belongs_to_test.rb
90
+ - test/polymorphic_test.rb
91
+ - test/redirect_to_test.rb
92
+ - test/singleton_test.rb
93
+ - test/test_helper.rb
94
+ - test/url_helpers_test.rb
95
+ has_rdoc: true
96
+ homepage: http://github.com/karsthammer/inherited_resources
97
+ licenses: []
98
+
99
+ post_install_message:
100
+ rdoc_options:
101
+ - --charset=UTF-8
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ segments:
110
+ - 0
111
+ version: "0"
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ requirements: []
121
+
122
+ rubyforge_project: inherited_resources
123
+ rubygems_version: 1.3.7
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: Inherited Resources speeds up development by making your controllers inherit all restful actions so you just have to focus on what is important.
127
+ test_files:
128
+ - test/aliases_test.rb
129
+ - test/association_chain_test.rb
130
+ - test/base_test.rb
131
+ - test/belongs_to_test.rb
132
+ - test/class_methods_test.rb
133
+ - test/customized_base_test.rb
134
+ - test/customized_belongs_to_test.rb
135
+ - test/defaults_test.rb
136
+ - test/nested_belongs_to_test.rb
137
+ - test/optional_belongs_to_test.rb
138
+ - test/polymorphic_test.rb
139
+ - test/redirect_to_test.rb
140
+ - test/singleton_test.rb
141
+ - test/test_helper.rb
142
+ - test/url_helpers_test.rb