johnsbrn-has_many_polymorphs 2.13

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 (174) hide show
  1. data/CHANGELOG +84 -0
  2. data/LICENSE +184 -0
  3. data/Manifest +174 -0
  4. data/README +205 -0
  5. data/TODO +2 -0
  6. data/examples/hmph.rb +69 -0
  7. data/generators/tagging/tagging_generator.rb +97 -0
  8. data/generators/tagging/templates/migration.rb +28 -0
  9. data/generators/tagging/templates/tag.rb +39 -0
  10. data/generators/tagging/templates/tag_test.rb +15 -0
  11. data/generators/tagging/templates/tagging.rb +16 -0
  12. data/generators/tagging/templates/tagging_extensions.rb +159 -0
  13. data/generators/tagging/templates/tagging_test.rb +85 -0
  14. data/generators/tagging/templates/taggings.yml +23 -0
  15. data/generators/tagging/templates/tags.yml +7 -0
  16. data/has_many_polymorphs.gemspec +100 -0
  17. data/init.rb +2 -0
  18. data/lib/has_many_polymorphs.rb +27 -0
  19. data/lib/has_many_polymorphs/association.rb +159 -0
  20. data/lib/has_many_polymorphs/autoload.rb +70 -0
  21. data/lib/has_many_polymorphs/base.rb +60 -0
  22. data/lib/has_many_polymorphs/class_methods.rb +600 -0
  23. data/lib/has_many_polymorphs/configuration.rb +19 -0
  24. data/lib/has_many_polymorphs/debugging_tools.rb +103 -0
  25. data/lib/has_many_polymorphs/rake_task_redefine_task.rb +35 -0
  26. data/lib/has_many_polymorphs/reflection.rb +58 -0
  27. data/lib/has_many_polymorphs/support_methods.rb +84 -0
  28. data/test/fixtures/bow_wows.yml +10 -0
  29. data/test/fixtures/cats.yml +18 -0
  30. data/test/fixtures/eaters_foodstuffs.yml +0 -0
  31. data/test/fixtures/fish.yml +12 -0
  32. data/test/fixtures/frogs.yml +5 -0
  33. data/test/fixtures/keep_your_enemies_close.yml +0 -0
  34. data/test/fixtures/little_whale_pupils.yml +0 -0
  35. data/test/fixtures/people.yml +7 -0
  36. data/test/fixtures/petfoods.yml +11 -0
  37. data/test/fixtures/whales.yml +5 -0
  38. data/test/fixtures/wild_boars.yml +10 -0
  39. data/test/generator/tagging_generator_test.rb +42 -0
  40. data/test/integration/app/README +182 -0
  41. data/test/integration/app/Rakefile +19 -0
  42. data/test/integration/app/app/controllers/application.rb +7 -0
  43. data/test/integration/app/app/controllers/bones_controller.rb +5 -0
  44. data/test/integration/app/app/helpers/addresses_helper.rb +2 -0
  45. data/test/integration/app/app/helpers/application_helper.rb +3 -0
  46. data/test/integration/app/app/helpers/bones_helper.rb +2 -0
  47. data/test/integration/app/app/helpers/sellers_helper.rb +28 -0
  48. data/test/integration/app/app/helpers/states_helper.rb +2 -0
  49. data/test/integration/app/app/helpers/users_helper.rb +2 -0
  50. data/test/integration/app/app/models/bone.rb +2 -0
  51. data/test/integration/app/app/models/double_sti_parent.rb +2 -0
  52. data/test/integration/app/app/models/double_sti_parent_relationship.rb +2 -0
  53. data/test/integration/app/app/models/organic_substance.rb +2 -0
  54. data/test/integration/app/app/models/single_sti_parent.rb +4 -0
  55. data/test/integration/app/app/models/single_sti_parent_relationship.rb +4 -0
  56. data/test/integration/app/app/models/stick.rb +2 -0
  57. data/test/integration/app/app/models/stone.rb +2 -0
  58. data/test/integration/app/app/views/addresses/edit.html.erb +12 -0
  59. data/test/integration/app/app/views/addresses/index.html.erb +18 -0
  60. data/test/integration/app/app/views/addresses/new.html.erb +11 -0
  61. data/test/integration/app/app/views/addresses/show.html.erb +3 -0
  62. data/test/integration/app/app/views/bones/index.rhtml +5 -0
  63. data/test/integration/app/app/views/layouts/addresses.html.erb +17 -0
  64. data/test/integration/app/app/views/layouts/sellers.html.erb +17 -0
  65. data/test/integration/app/app/views/layouts/states.html.erb +17 -0
  66. data/test/integration/app/app/views/layouts/users.html.erb +17 -0
  67. data/test/integration/app/app/views/sellers/edit.html.erb +12 -0
  68. data/test/integration/app/app/views/sellers/index.html.erb +20 -0
  69. data/test/integration/app/app/views/sellers/new.html.erb +11 -0
  70. data/test/integration/app/app/views/sellers/show.html.erb +3 -0
  71. data/test/integration/app/app/views/states/edit.html.erb +12 -0
  72. data/test/integration/app/app/views/states/index.html.erb +19 -0
  73. data/test/integration/app/app/views/states/new.html.erb +11 -0
  74. data/test/integration/app/app/views/states/show.html.erb +3 -0
  75. data/test/integration/app/app/views/users/edit.html.erb +12 -0
  76. data/test/integration/app/app/views/users/index.html.erb +22 -0
  77. data/test/integration/app/app/views/users/new.html.erb +11 -0
  78. data/test/integration/app/app/views/users/show.html.erb +3 -0
  79. data/test/integration/app/config/boot.rb +110 -0
  80. data/test/integration/app/config/database.yml +17 -0
  81. data/test/integration/app/config/environment.rb +19 -0
  82. data/test/integration/app/config/environment.rb.canonical +19 -0
  83. data/test/integration/app/config/environments/development.rb +8 -0
  84. data/test/integration/app/config/environments/production.rb +18 -0
  85. data/test/integration/app/config/environments/test.rb +19 -0
  86. data/test/integration/app/config/locomotive.yml +6 -0
  87. data/test/integration/app/config/routes.rb +33 -0
  88. data/test/integration/app/config/ultrasphinx/default.base +56 -0
  89. data/test/integration/app/config/ultrasphinx/development.conf.canonical +155 -0
  90. data/test/integration/app/db/migrate/001_create_sticks.rb +11 -0
  91. data/test/integration/app/db/migrate/002_create_stones.rb +11 -0
  92. data/test/integration/app/db/migrate/003_create_organic_substances.rb +11 -0
  93. data/test/integration/app/db/migrate/004_create_bones.rb +8 -0
  94. data/test/integration/app/db/migrate/005_create_single_sti_parents.rb +11 -0
  95. data/test/integration/app/db/migrate/006_create_double_sti_parents.rb +11 -0
  96. data/test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb +13 -0
  97. data/test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb +14 -0
  98. data/test/integration/app/db/migrate/009_create_library_model.rb +11 -0
  99. data/test/integration/app/doc/README_FOR_APP +2 -0
  100. data/test/integration/app/generators/commenting_generator_test.rb +83 -0
  101. data/test/integration/app/lib/library_model.rb +2 -0
  102. data/test/integration/app/public/404.html +30 -0
  103. data/test/integration/app/public/500.html +30 -0
  104. data/test/integration/app/public/dispatch.cgi +10 -0
  105. data/test/integration/app/public/dispatch.fcgi +24 -0
  106. data/test/integration/app/public/dispatch.rb +10 -0
  107. data/test/integration/app/public/favicon.ico +0 -0
  108. data/test/integration/app/public/images/rails.png +0 -0
  109. data/test/integration/app/public/index.html +277 -0
  110. data/test/integration/app/public/javascripts/application.js +2 -0
  111. data/test/integration/app/public/javascripts/controls.js +833 -0
  112. data/test/integration/app/public/javascripts/dragdrop.js +942 -0
  113. data/test/integration/app/public/javascripts/effects.js +1088 -0
  114. data/test/integration/app/public/javascripts/prototype.js +2515 -0
  115. data/test/integration/app/public/robots.txt +1 -0
  116. data/test/integration/app/public/stylesheets/scaffold.css +74 -0
  117. data/test/integration/app/script/about +3 -0
  118. data/test/integration/app/script/breakpointer +3 -0
  119. data/test/integration/app/script/console +3 -0
  120. data/test/integration/app/script/destroy +3 -0
  121. data/test/integration/app/script/generate +3 -0
  122. data/test/integration/app/script/performance/benchmarker +3 -0
  123. data/test/integration/app/script/performance/profiler +3 -0
  124. data/test/integration/app/script/plugin +3 -0
  125. data/test/integration/app/script/process/inspector +3 -0
  126. data/test/integration/app/script/process/reaper +3 -0
  127. data/test/integration/app/script/process/spawner +3 -0
  128. data/test/integration/app/script/runner +3 -0
  129. data/test/integration/app/script/server +3 -0
  130. data/test/integration/app/test/fixtures/double_sti_parent_relationships.yml +7 -0
  131. data/test/integration/app/test/fixtures/double_sti_parents.yml +7 -0
  132. data/test/integration/app/test/fixtures/organic_substances.yml +5 -0
  133. data/test/integration/app/test/fixtures/single_sti_parent_relationships.yml +7 -0
  134. data/test/integration/app/test/fixtures/single_sti_parents.yml +7 -0
  135. data/test/integration/app/test/fixtures/sticks.yml +7 -0
  136. data/test/integration/app/test/fixtures/stones.yml +7 -0
  137. data/test/integration/app/test/functional/addresses_controller_test.rb +57 -0
  138. data/test/integration/app/test/functional/bones_controller_test.rb +8 -0
  139. data/test/integration/app/test/functional/sellers_controller_test.rb +57 -0
  140. data/test/integration/app/test/functional/states_controller_test.rb +57 -0
  141. data/test/integration/app/test/functional/users_controller_test.rb +57 -0
  142. data/test/integration/app/test/test_helper.rb +8 -0
  143. data/test/integration/app/test/unit/bone_test.rb +8 -0
  144. data/test/integration/app/test/unit/double_sti_parent_relationship_test.rb +8 -0
  145. data/test/integration/app/test/unit/double_sti_parent_test.rb +8 -0
  146. data/test/integration/app/test/unit/organic_substance_test.rb +8 -0
  147. data/test/integration/app/test/unit/single_sti_parent_relationship_test.rb +8 -0
  148. data/test/integration/app/test/unit/single_sti_parent_test.rb +8 -0
  149. data/test/integration/app/test/unit/stick_test.rb +8 -0
  150. data/test/integration/app/test/unit/stone_test.rb +8 -0
  151. data/test/integration/server_test.rb +43 -0
  152. data/test/models/aquatic/fish.rb +5 -0
  153. data/test/models/aquatic/pupils_whale.rb +7 -0
  154. data/test/models/aquatic/whale.rb +15 -0
  155. data/test/models/beautiful_fight_relationship.rb +26 -0
  156. data/test/models/canine.rb +9 -0
  157. data/test/models/cat.rb +5 -0
  158. data/test/models/dog.rb +18 -0
  159. data/test/models/eaters_foodstuff.rb +10 -0
  160. data/test/models/frog.rb +4 -0
  161. data/test/models/kitten.rb +3 -0
  162. data/test/models/parentship.rb +4 -0
  163. data/test/models/person.rb +9 -0
  164. data/test/models/petfood.rb +39 -0
  165. data/test/models/tabby.rb +2 -0
  166. data/test/models/wild_boar.rb +3 -0
  167. data/test/modules/extension_module.rb +9 -0
  168. data/test/modules/other_extension_module.rb +9 -0
  169. data/test/patches/symlinked_plugins_1.2.6.diff +46 -0
  170. data/test/schema.rb +87 -0
  171. data/test/setup.rb +14 -0
  172. data/test/test_helper.rb +51 -0
  173. data/test/unit/has_many_polymorphs_test.rb +714 -0
  174. metadata +237 -0
metadata ADDED
@@ -0,0 +1,237 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: johnsbrn-has_many_polymorphs
3
+ version: !ruby/object:Gem::Version
4
+ version: "2.13"
5
+ platform: ruby
6
+ authors:
7
+ - ""
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-01-14 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activerecord
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ version:
24
+ description: An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
25
+ email: ""
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - CHANGELOG
34
+ - examples/hmph.rb
35
+ - generators/tagging/tagging_generator.rb
36
+ - generators/tagging/templates/migration.rb
37
+ - generators/tagging/templates/tag.rb
38
+ - generators/tagging/templates/tag_test.rb
39
+ - generators/tagging/templates/tagging.rb
40
+ - generators/tagging/templates/tagging_extensions.rb
41
+ - generators/tagging/templates/tagging_test.rb
42
+ - generators/tagging/templates/taggings.yml
43
+ - generators/tagging/templates/tags.yml
44
+ - init.rb
45
+ - lib/has_many_polymorphs/association.rb
46
+ - lib/has_many_polymorphs/autoload.rb
47
+ - lib/has_many_polymorphs/base.rb
48
+ - lib/has_many_polymorphs/class_methods.rb
49
+ - lib/has_many_polymorphs/configuration.rb
50
+ - lib/has_many_polymorphs/debugging_tools.rb
51
+ - lib/has_many_polymorphs/rake_task_redefine_task.rb
52
+ - lib/has_many_polymorphs/reflection.rb
53
+ - lib/has_many_polymorphs/support_methods.rb
54
+ - lib/has_many_polymorphs.rb
55
+ - LICENSE
56
+ - Manifest
57
+ - README
58
+ - test/fixtures/bow_wows.yml
59
+ - test/fixtures/cats.yml
60
+ - test/fixtures/eaters_foodstuffs.yml
61
+ - test/fixtures/fish.yml
62
+ - test/fixtures/frogs.yml
63
+ - test/fixtures/keep_your_enemies_close.yml
64
+ - test/fixtures/little_whale_pupils.yml
65
+ - test/fixtures/people.yml
66
+ - test/fixtures/petfoods.yml
67
+ - test/fixtures/whales.yml
68
+ - test/fixtures/wild_boars.yml
69
+ - test/generator/tagging_generator_test.rb
70
+ - test/integration/app/app/controllers/application.rb
71
+ - test/integration/app/app/controllers/bones_controller.rb
72
+ - test/integration/app/app/helpers/addresses_helper.rb
73
+ - test/integration/app/app/helpers/application_helper.rb
74
+ - test/integration/app/app/helpers/bones_helper.rb
75
+ - test/integration/app/app/helpers/sellers_helper.rb
76
+ - test/integration/app/app/helpers/states_helper.rb
77
+ - test/integration/app/app/helpers/users_helper.rb
78
+ - test/integration/app/app/models/bone.rb
79
+ - test/integration/app/app/models/double_sti_parent.rb
80
+ - test/integration/app/app/models/double_sti_parent_relationship.rb
81
+ - test/integration/app/app/models/organic_substance.rb
82
+ - test/integration/app/app/models/single_sti_parent.rb
83
+ - test/integration/app/app/models/single_sti_parent_relationship.rb
84
+ - test/integration/app/app/models/stick.rb
85
+ - test/integration/app/app/models/stone.rb
86
+ - test/integration/app/app/views/addresses/edit.html.erb
87
+ - test/integration/app/app/views/addresses/index.html.erb
88
+ - test/integration/app/app/views/addresses/new.html.erb
89
+ - test/integration/app/app/views/addresses/show.html.erb
90
+ - test/integration/app/app/views/bones/index.rhtml
91
+ - test/integration/app/app/views/layouts/addresses.html.erb
92
+ - test/integration/app/app/views/layouts/sellers.html.erb
93
+ - test/integration/app/app/views/layouts/states.html.erb
94
+ - test/integration/app/app/views/layouts/users.html.erb
95
+ - test/integration/app/app/views/sellers/edit.html.erb
96
+ - test/integration/app/app/views/sellers/index.html.erb
97
+ - test/integration/app/app/views/sellers/new.html.erb
98
+ - test/integration/app/app/views/sellers/show.html.erb
99
+ - test/integration/app/app/views/states/edit.html.erb
100
+ - test/integration/app/app/views/states/index.html.erb
101
+ - test/integration/app/app/views/states/new.html.erb
102
+ - test/integration/app/app/views/states/show.html.erb
103
+ - test/integration/app/app/views/users/edit.html.erb
104
+ - test/integration/app/app/views/users/index.html.erb
105
+ - test/integration/app/app/views/users/new.html.erb
106
+ - test/integration/app/app/views/users/show.html.erb
107
+ - test/integration/app/config/boot.rb
108
+ - test/integration/app/config/database.yml
109
+ - test/integration/app/config/environment.rb
110
+ - test/integration/app/config/environment.rb.canonical
111
+ - test/integration/app/config/environments/development.rb
112
+ - test/integration/app/config/environments/production.rb
113
+ - test/integration/app/config/environments/test.rb
114
+ - test/integration/app/config/locomotive.yml
115
+ - test/integration/app/config/routes.rb
116
+ - test/integration/app/config/ultrasphinx/default.base
117
+ - test/integration/app/config/ultrasphinx/development.conf.canonical
118
+ - test/integration/app/db/migrate/001_create_sticks.rb
119
+ - test/integration/app/db/migrate/002_create_stones.rb
120
+ - test/integration/app/db/migrate/003_create_organic_substances.rb
121
+ - test/integration/app/db/migrate/004_create_bones.rb
122
+ - test/integration/app/db/migrate/005_create_single_sti_parents.rb
123
+ - test/integration/app/db/migrate/006_create_double_sti_parents.rb
124
+ - test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb
125
+ - test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb
126
+ - test/integration/app/db/migrate/009_create_library_model.rb
127
+ - test/integration/app/db/schema.rb
128
+ - test/integration/app/doc/README_FOR_APP
129
+ - test/integration/app/generators/commenting_generator_test.rb
130
+ - test/integration/app/hmp_development
131
+ - test/integration/app/lib/library_model.rb
132
+ - test/integration/app/public/404.html
133
+ - test/integration/app/public/500.html
134
+ - test/integration/app/public/dispatch.cgi
135
+ - test/integration/app/public/dispatch.fcgi
136
+ - test/integration/app/public/dispatch.rb
137
+ - test/integration/app/public/favicon.ico
138
+ - test/integration/app/public/images/rails.png
139
+ - test/integration/app/public/index.html
140
+ - test/integration/app/public/javascripts/application.js
141
+ - test/integration/app/public/javascripts/controls.js
142
+ - test/integration/app/public/javascripts/dragdrop.js
143
+ - test/integration/app/public/javascripts/effects.js
144
+ - test/integration/app/public/javascripts/prototype.js
145
+ - test/integration/app/public/robots.txt
146
+ - test/integration/app/public/stylesheets/scaffold.css
147
+ - test/integration/app/Rakefile
148
+ - test/integration/app/README
149
+ - test/integration/app/script/about
150
+ - test/integration/app/script/breakpointer
151
+ - test/integration/app/script/console
152
+ - test/integration/app/script/destroy
153
+ - test/integration/app/script/generate
154
+ - test/integration/app/script/performance/benchmarker
155
+ - test/integration/app/script/performance/profiler
156
+ - test/integration/app/script/plugin
157
+ - test/integration/app/script/process/inspector
158
+ - test/integration/app/script/process/reaper
159
+ - test/integration/app/script/process/spawner
160
+ - test/integration/app/script/runner
161
+ - test/integration/app/script/server
162
+ - test/integration/app/test/fixtures/double_sti_parent_relationships.yml
163
+ - test/integration/app/test/fixtures/double_sti_parents.yml
164
+ - test/integration/app/test/fixtures/organic_substances.yml
165
+ - test/integration/app/test/fixtures/single_sti_parent_relationships.yml
166
+ - test/integration/app/test/fixtures/single_sti_parents.yml
167
+ - test/integration/app/test/fixtures/sticks.yml
168
+ - test/integration/app/test/fixtures/stones.yml
169
+ - test/integration/app/test/functional/addresses_controller_test.rb
170
+ - test/integration/app/test/functional/bones_controller_test.rb
171
+ - test/integration/app/test/functional/sellers_controller_test.rb
172
+ - test/integration/app/test/functional/states_controller_test.rb
173
+ - test/integration/app/test/functional/users_controller_test.rb
174
+ - test/integration/app/test/test_helper.rb
175
+ - test/integration/app/test/unit/bone_test.rb
176
+ - test/integration/app/test/unit/double_sti_parent_relationship_test.rb
177
+ - test/integration/app/test/unit/double_sti_parent_test.rb
178
+ - test/integration/app/test/unit/organic_substance_test.rb
179
+ - test/integration/app/test/unit/single_sti_parent_relationship_test.rb
180
+ - test/integration/app/test/unit/single_sti_parent_test.rb
181
+ - test/integration/app/test/unit/stick_test.rb
182
+ - test/integration/app/test/unit/stone_test.rb
183
+ - test/integration/server_test.rb
184
+ - test/models/aquatic/fish.rb
185
+ - test/models/aquatic/pupils_whale.rb
186
+ - test/models/aquatic/whale.rb
187
+ - test/models/beautiful_fight_relationship.rb
188
+ - test/models/canine.rb
189
+ - test/models/cat.rb
190
+ - test/models/dog.rb
191
+ - test/models/eaters_foodstuff.rb
192
+ - test/models/frog.rb
193
+ - test/models/kitten.rb
194
+ - test/models/parentship.rb
195
+ - test/models/person.rb
196
+ - test/models/petfood.rb
197
+ - test/models/tabby.rb
198
+ - test/models/wild_boar.rb
199
+ - test/modules/extension_module.rb
200
+ - test/modules/other_extension_module.rb
201
+ - test/patches/symlinked_plugins_1.2.6.diff
202
+ - test/schema.rb
203
+ - test/setup.rb
204
+ - test/test_helper.rb
205
+ - test/unit/has_many_polymorphs_test.rb
206
+ - TODO
207
+ - has_many_polymorphs.gemspec
208
+ has_rdoc: true
209
+ homepage: http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/
210
+ post_install_message:
211
+ rdoc_options: []
212
+
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: "0"
220
+ version:
221
+ required_rubygems_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: "0"
226
+ version:
227
+ requirements: []
228
+
229
+ rubyforge_project: fauna
230
+ rubygems_version: 1.2.0
231
+ signing_key:
232
+ specification_version: 2
233
+ summary: An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
234
+ test_files:
235
+ - test/generator/tagging_generator_test.rb
236
+ - test/integration/server_test.rb
237
+ - test/unit/has_many_polymorphs_test.rb