johnsbrn-has_many_polymorphs 2.13 → 2.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (10) hide show
  1. data/VERSION.yml +4 -0
  2. metadata +56 -32
  3. data/CHANGELOG +0 -84
  4. data/LICENSE +0 -184
  5. data/Manifest +0 -174
  6. data/README +0 -205
  7. data/TODO +0 -2
  8. data/examples/hmph.rb +0 -69
  9. data/has_many_polymorphs.gemspec +0 -100
  10. data/init.rb +0 -2
data/VERSION.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :patch: 1
3
+ :major: 2
4
+ :minor: 13
metadata CHANGED
@@ -1,26 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johnsbrn-has_many_polymorphs
3
3
  version: !ruby/object:Gem::Version
4
- version: "2.13"
4
+ version: 2.13.1
5
5
  platform: ruby
6
6
  authors:
7
- - ""
7
+ - Evan Weaver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-14 00:00:00 -08:00
12
+ date: 2009-01-25 00:00:00 -08:00
13
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:
14
+ dependencies: []
15
+
24
16
  description: An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
25
17
  email: ""
26
18
  executables: []
@@ -30,9 +22,10 @@ extensions: []
30
22
  extra_rdoc_files: []
31
23
 
32
24
  files:
33
- - CHANGELOG
34
- - examples/hmph.rb
25
+ - VERSION.yml
26
+ - generators/tagging
35
27
  - generators/tagging/tagging_generator.rb
28
+ - generators/tagging/templates
36
29
  - generators/tagging/templates/migration.rb
37
30
  - generators/tagging/templates/tag.rb
38
31
  - generators/tagging/templates/tag_test.rb
@@ -41,7 +34,7 @@ files:
41
34
  - generators/tagging/templates/tagging_test.rb
42
35
  - generators/tagging/templates/taggings.yml
43
36
  - generators/tagging/templates/tags.yml
44
- - init.rb
37
+ - lib/has_many_polymorphs
45
38
  - lib/has_many_polymorphs/association.rb
46
39
  - lib/has_many_polymorphs/autoload.rb
47
40
  - lib/has_many_polymorphs/base.rb
@@ -52,9 +45,7 @@ files:
52
45
  - lib/has_many_polymorphs/reflection.rb
53
46
  - lib/has_many_polymorphs/support_methods.rb
54
47
  - lib/has_many_polymorphs.rb
55
- - LICENSE
56
- - Manifest
57
- - README
48
+ - test/fixtures
58
49
  - test/fixtures/bow_wows.yml
59
50
  - test/fixtures/cats.yml
60
51
  - test/fixtures/eaters_foodstuffs.yml
@@ -66,15 +57,24 @@ files:
66
57
  - test/fixtures/petfoods.yml
67
58
  - test/fixtures/whales.yml
68
59
  - test/fixtures/wild_boars.yml
60
+ - test/generator
69
61
  - test/generator/tagging_generator_test.rb
62
+ - test/integration
63
+ - test/integration/app
64
+ - test/integration/app/README
65
+ - test/integration/app/Rakefile
66
+ - test/integration/app/app
67
+ - test/integration/app/app/controllers
70
68
  - test/integration/app/app/controllers/application.rb
71
69
  - test/integration/app/app/controllers/bones_controller.rb
70
+ - test/integration/app/app/helpers
72
71
  - test/integration/app/app/helpers/addresses_helper.rb
73
72
  - test/integration/app/app/helpers/application_helper.rb
74
73
  - test/integration/app/app/helpers/bones_helper.rb
75
74
  - test/integration/app/app/helpers/sellers_helper.rb
76
75
  - test/integration/app/app/helpers/states_helper.rb
77
76
  - test/integration/app/app/helpers/users_helper.rb
77
+ - test/integration/app/app/models
78
78
  - test/integration/app/app/models/bone.rb
79
79
  - test/integration/app/app/models/double_sti_parent.rb
80
80
  - test/integration/app/app/models/double_sti_parent_relationship.rb
@@ -83,38 +83,50 @@ files:
83
83
  - test/integration/app/app/models/single_sti_parent_relationship.rb
84
84
  - test/integration/app/app/models/stick.rb
85
85
  - test/integration/app/app/models/stone.rb
86
+ - test/integration/app/app/views
87
+ - test/integration/app/app/views/addresses
86
88
  - test/integration/app/app/views/addresses/edit.html.erb
87
89
  - test/integration/app/app/views/addresses/index.html.erb
88
90
  - test/integration/app/app/views/addresses/new.html.erb
89
91
  - test/integration/app/app/views/addresses/show.html.erb
92
+ - test/integration/app/app/views/bones
90
93
  - test/integration/app/app/views/bones/index.rhtml
94
+ - test/integration/app/app/views/layouts
91
95
  - test/integration/app/app/views/layouts/addresses.html.erb
92
96
  - test/integration/app/app/views/layouts/sellers.html.erb
93
97
  - test/integration/app/app/views/layouts/states.html.erb
94
98
  - test/integration/app/app/views/layouts/users.html.erb
99
+ - test/integration/app/app/views/sellers
95
100
  - test/integration/app/app/views/sellers/edit.html.erb
96
101
  - test/integration/app/app/views/sellers/index.html.erb
97
102
  - test/integration/app/app/views/sellers/new.html.erb
98
103
  - test/integration/app/app/views/sellers/show.html.erb
104
+ - test/integration/app/app/views/states
99
105
  - test/integration/app/app/views/states/edit.html.erb
100
106
  - test/integration/app/app/views/states/index.html.erb
101
107
  - test/integration/app/app/views/states/new.html.erb
102
108
  - test/integration/app/app/views/states/show.html.erb
109
+ - test/integration/app/app/views/users
103
110
  - test/integration/app/app/views/users/edit.html.erb
104
111
  - test/integration/app/app/views/users/index.html.erb
105
112
  - test/integration/app/app/views/users/new.html.erb
106
113
  - test/integration/app/app/views/users/show.html.erb
114
+ - test/integration/app/config
107
115
  - test/integration/app/config/boot.rb
108
116
  - test/integration/app/config/database.yml
109
117
  - test/integration/app/config/environment.rb
110
118
  - test/integration/app/config/environment.rb.canonical
119
+ - test/integration/app/config/environments
111
120
  - test/integration/app/config/environments/development.rb
112
121
  - test/integration/app/config/environments/production.rb
113
122
  - test/integration/app/config/environments/test.rb
114
123
  - test/integration/app/config/locomotive.yml
115
124
  - test/integration/app/config/routes.rb
125
+ - test/integration/app/config/ultrasphinx
116
126
  - test/integration/app/config/ultrasphinx/default.base
117
127
  - test/integration/app/config/ultrasphinx/development.conf.canonical
128
+ - test/integration/app/db
129
+ - test/integration/app/db/migrate
118
130
  - test/integration/app/db/migrate/001_create_sticks.rb
119
131
  - test/integration/app/db/migrate/002_create_stones.rb
120
132
  - test/integration/app/db/migrate/003_create_organic_substances.rb
@@ -124,41 +136,49 @@ files:
124
136
  - test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb
125
137
  - test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb
126
138
  - test/integration/app/db/migrate/009_create_library_model.rb
127
- - test/integration/app/db/schema.rb
139
+ - test/integration/app/doc
128
140
  - test/integration/app/doc/README_FOR_APP
141
+ - test/integration/app/generators
129
142
  - test/integration/app/generators/commenting_generator_test.rb
130
- - test/integration/app/hmp_development
143
+ - test/integration/app/lib
131
144
  - test/integration/app/lib/library_model.rb
145
+ - test/integration/app/public
132
146
  - test/integration/app/public/404.html
133
147
  - test/integration/app/public/500.html
134
148
  - test/integration/app/public/dispatch.cgi
135
149
  - test/integration/app/public/dispatch.fcgi
136
150
  - test/integration/app/public/dispatch.rb
137
151
  - test/integration/app/public/favicon.ico
152
+ - test/integration/app/public/images
138
153
  - test/integration/app/public/images/rails.png
139
154
  - test/integration/app/public/index.html
155
+ - test/integration/app/public/javascripts
140
156
  - test/integration/app/public/javascripts/application.js
141
157
  - test/integration/app/public/javascripts/controls.js
142
158
  - test/integration/app/public/javascripts/dragdrop.js
143
159
  - test/integration/app/public/javascripts/effects.js
144
160
  - test/integration/app/public/javascripts/prototype.js
145
161
  - test/integration/app/public/robots.txt
162
+ - test/integration/app/public/stylesheets
146
163
  - test/integration/app/public/stylesheets/scaffold.css
147
- - test/integration/app/Rakefile
148
- - test/integration/app/README
164
+ - test/integration/app/script
149
165
  - test/integration/app/script/about
150
166
  - test/integration/app/script/breakpointer
151
167
  - test/integration/app/script/console
152
168
  - test/integration/app/script/destroy
153
169
  - test/integration/app/script/generate
170
+ - test/integration/app/script/performance
154
171
  - test/integration/app/script/performance/benchmarker
155
172
  - test/integration/app/script/performance/profiler
156
173
  - test/integration/app/script/plugin
174
+ - test/integration/app/script/process
157
175
  - test/integration/app/script/process/inspector
158
176
  - test/integration/app/script/process/reaper
159
177
  - test/integration/app/script/process/spawner
160
178
  - test/integration/app/script/runner
161
179
  - test/integration/app/script/server
180
+ - test/integration/app/test
181
+ - test/integration/app/test/fixtures
162
182
  - test/integration/app/test/fixtures/double_sti_parent_relationships.yml
163
183
  - test/integration/app/test/fixtures/double_sti_parents.yml
164
184
  - test/integration/app/test/fixtures/organic_substances.yml
@@ -166,12 +186,14 @@ files:
166
186
  - test/integration/app/test/fixtures/single_sti_parents.yml
167
187
  - test/integration/app/test/fixtures/sticks.yml
168
188
  - test/integration/app/test/fixtures/stones.yml
189
+ - test/integration/app/test/functional
169
190
  - test/integration/app/test/functional/addresses_controller_test.rb
170
191
  - test/integration/app/test/functional/bones_controller_test.rb
171
192
  - test/integration/app/test/functional/sellers_controller_test.rb
172
193
  - test/integration/app/test/functional/states_controller_test.rb
173
194
  - test/integration/app/test/functional/users_controller_test.rb
174
195
  - test/integration/app/test/test_helper.rb
196
+ - test/integration/app/test/unit
175
197
  - test/integration/app/test/unit/bone_test.rb
176
198
  - test/integration/app/test/unit/double_sti_parent_relationship_test.rb
177
199
  - test/integration/app/test/unit/double_sti_parent_test.rb
@@ -181,6 +203,8 @@ files:
181
203
  - test/integration/app/test/unit/stick_test.rb
182
204
  - test/integration/app/test/unit/stone_test.rb
183
205
  - test/integration/server_test.rb
206
+ - test/models
207
+ - test/models/aquatic
184
208
  - test/models/aquatic/fish.rb
185
209
  - test/models/aquatic/pupils_whale.rb
186
210
  - test/models/aquatic/whale.rb
@@ -196,20 +220,22 @@ files:
196
220
  - test/models/petfood.rb
197
221
  - test/models/tabby.rb
198
222
  - test/models/wild_boar.rb
223
+ - test/modules
199
224
  - test/modules/extension_module.rb
200
225
  - test/modules/other_extension_module.rb
226
+ - test/patches
201
227
  - test/patches/symlinked_plugins_1.2.6.diff
202
228
  - test/schema.rb
203
229
  - test/setup.rb
204
230
  - test/test_helper.rb
231
+ - test/unit
205
232
  - test/unit/has_many_polymorphs_test.rb
206
- - TODO
207
- - has_many_polymorphs.gemspec
208
233
  has_rdoc: true
209
234
  homepage: http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/
210
235
  post_install_message:
211
- rdoc_options: []
212
-
236
+ rdoc_options:
237
+ - --inline-source
238
+ - --charset=UTF-8
213
239
  require_paths:
214
240
  - lib
215
241
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -226,12 +252,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
252
  version:
227
253
  requirements: []
228
254
 
229
- rubyforge_project: fauna
255
+ rubyforge_project:
230
256
  rubygems_version: 1.2.0
231
257
  signing_key:
232
258
  specification_version: 2
233
259
  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
260
+ test_files: []
261
+
data/CHANGELOG DELETED
@@ -1,84 +0,0 @@
1
- v2.13. Update for Rails 2.2 and create gem
2
-
3
- v2.12. Improvements to the test suite; bugfixes for STI children (rsl). Remove fancy dependency system in favor of using Dispatcher::to_prepare every time.
4
-
5
- v2.11. Rails 1.2.6 tagging generator compatibility; change test suite to use included integration app.
6
-
7
- v2.10. Add :parent_conditions option; bugfix for nullified conditions; bugfix for self-referential tagging generator; allow setting of has_many_polymorphs_options hash in Configuration's after_initialize if you need to adjust the autoload behavior; clear error message on missing or improperly namespaced models; fix .build on double-sided relationships; add :namespace key for easier set up of Camping apps or other unusual class structures.
8
-
9
- v2.9. Gem version renumbering; my apologies if this messes anyone up.
10
-
11
- v2.8. RDoc documentation; repository relocation; Rakefile cleanup; remove deprecated plugin-specific class caching.
12
-
13
- v2.7.5. Various bugfixes; Postgres problems may remain on edge.
14
-
15
- v2.7.3. Use new :source and :source_type options in 1.2.3 (David Lemstra); fix pluralization bug; add some tests; experimental tagging generator.
16
-
17
- v2.7.2. Deprecate has_many_polymorphs_cache_classes= option because it doesn't really work. Use config.cache_classes= instead to cache all reloadable items.
18
-
19
- v2.7.1. Dispatcher.to_prepare didn't fire in the console; now using a config.after_initialize wrapper instead.
20
-
21
- v2.7. Dependency injection framework elimates having to care about load order.
22
-
23
- v2.6. Make the logger act sane for the gem version.
24
-
25
- v2.5.2. Allow :skip_duplicates on double relationships.
26
-
27
- v2.5.1. Renamed :ignore_duplicates to :skip_duplicates to better express its non-passive behavior; made sure not to load target set on push unless necessary.
28
-
29
- v2.5. Activerecord compatibility branch becomes trunk: extra options now supported for double polymorphism; conditions nulled-out and propogated to child relationships; more tests; new :ignore_duplicates option on macro can be set to false if you want << to push duplicate associations.
30
-
31
- v2.4.1. Code split into multiple files; tests added for pluralization check; Rails 1.1.6 no longer supported.
32
-
33
- v2.4. Unlimited mixed class association extensions for both single and double targets and joins.
34
-
35
- v2.3. Gem version
36
-
37
- v2.2. API change; prefix on methods is now singular when using :rename_individual_collections.
38
-
39
- v2.1. Add configuration option to cache polymorphic classes in development mode.
40
-
41
- v2.0. Collection methods (push, delete, clear) now on individual collections.
42
-
43
- v1.9.2. Disjoint collection sides bugfix, don't raise on new records.
44
-
45
- v1.9.1. Double classify bugfix.
46
-
47
- v1.9. Large changes to properly support double polymorphism.
48
-
49
- v1.8.2. Bugfix to make sure the type gets checked on doubly polymorphic parents.
50
-
51
- v1.8.1. Bugfix for sqlite3 child attribute retrieval.
52
-
53
- v1.8. Bugfix for instantiating attributes of namespaced models.
54
-
55
- v1.7.1. Bugfix for double polymorphic relationships.
56
-
57
- v1.7. Double polymorphic relationships (includes new API method).
58
-
59
- v1.6. Namespaced model support.
60
-
61
- v1.5. Bugfix for Postgres and Mysql under 1.1.6; refactored tests (hildofur); properly handles legacy table names set with set_table_name().
62
-
63
- v1.4. STI support added (use the child class names, not the base class).
64
-
65
- v1.3. Bug regarding table names with underscores in SQL query fixed.
66
-
67
- v1.2. License change, again.
68
-
69
- v1.1. File_column bug fixed.
70
-
71
- v1.0. Tests written; after_find and after_initialize now correctly called.
72
-
73
- v0.5. SQL performance enhancements added.
74
-
75
- v0.4. Rewrote singletons as full-fledged proxy class so that marshalling works (e.g. in the session).
76
-
77
- v0.3. Caching added.
78
-
79
- v0.2. Fixed dependency reloading problem in development mode.
80
-
81
- v0.1. License change.
82
-
83
- v0. Added :dependent support on the join table; no changelog before this version.
84
-
data/LICENSE DELETED
@@ -1,184 +0,0 @@
1
- Academic Free License (AFL) v. 3.0
2
-
3
- This Academic Free License (the "License") applies to any original work
4
- of authorship (the "Original Work") whose owner (the "Licensor") has
5
- placed the following licensing notice adjacent to the copyright notice
6
- for the Original Work:
7
-
8
- Licensed under the Academic Free License version 3.0
9
-
10
- 1) Grant of Copyright License. Licensor grants You a worldwide,
11
- royalty-free, non-exclusive, sublicensable license, for the duration of
12
- the copyright, to do the following:
13
-
14
- a) to reproduce the Original Work in copies, either alone or as part of
15
- a collective work;
16
-
17
- b) to translate, adapt, alter, transform, modify, or arrange the
18
- Original Work, thereby creating derivative works ("Derivative Works")
19
- based upon the Original Work;
20
-
21
- c) to distribute or communicate copies of the Original Work and
22
- Derivative Works to the public, under any license of your choice that
23
- does not contradict the terms and conditions, including Licensor's
24
- reserved rights and remedies, in this Academic Free License;
25
-
26
- d) to perform the Original Work publicly; and
27
-
28
- e) to display the Original Work publicly.
29
-
30
- 2) Grant of Patent License. Licensor grants You a worldwide,
31
- royalty-free, non-exclusive, sublicensable license, under patent claims
32
- owned or controlled by the Licensor that are embodied in the Original
33
- Work as furnished by the Licensor, for the duration of the patents, to
34
- make, use, sell, offer for sale, have made, and import the Original Work
35
- and Derivative Works.
36
-
37
- 3) Grant of Source Code License. The term "Source Code" means the
38
- preferred form of the Original Work for making modifications to it and
39
- all available documentation describing how to modify the Original Work.
40
- Licensor agrees to provide a machine-readable copy of the Source Code of
41
- the Original Work along with each copy of the Original Work that
42
- Licensor distributes. Licensor reserves the right to satisfy this
43
- obligation by placing a machine-readable copy of the Source Code in an
44
- information repository reasonably calculated to permit inexpensive and
45
- convenient access by You for as long as Licensor continues to distribute
46
- the Original Work.
47
-
48
- 4) Exclusions From License Grant. Neither the names of Licensor, nor the
49
- names of any contributors to the Original Work, nor any of their
50
- trademarks or service marks, may be used to endorse or promote products
51
- derived from this Original Work without express prior permission of the
52
- Licensor. Except as expressly stated herein, nothing in this License
53
- grants any license to Licensor's trademarks, copyrights, patents, trade
54
- secrets or any other intellectual property. No patent license is granted
55
- to make, use, sell, offer for sale, have made, or import embodiments of
56
- any patent claims other than the licensed claims defined in Section 2.
57
- No license is granted to the trademarks of Licensor even if such marks
58
- are included in the Original Work. Nothing in this License shall be
59
- interpreted to prohibit Licensor from licensing under terms different
60
- from this License any Original Work that Licensor otherwise would have a
61
- right to license.
62
-
63
- 5) External Deployment. The term "External Deployment" means the use,
64
- distribution, or communication of the Original Work or Derivative Works
65
- in any way such that the Original Work or Derivative Works may be used
66
- by anyone other than You, whether those works are distributed or
67
- communicated to those persons or made available as an application
68
- intended for use over a network. As an express condition for the grants
69
- of license hereunder, You must treat any External Deployment by You of
70
- the Original Work or a Derivative Work as a distribution under section
71
- 1(c).
72
-
73
- 6) Attribution Rights. You must retain, in the Source Code of any
74
- Derivative Works that You create, all copyright, patent, or trademark
75
- notices from the Source Code of the Original Work, as well as any
76
- notices of licensing and any descriptive text identified therein as an
77
- "Attribution Notice." You must cause the Source Code for any Derivative
78
- Works that You create to carry a prominent Attribution Notice reasonably
79
- calculated to inform recipients that You have modified the Original
80
- Work.
81
-
82
- 7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
83
- that the copyright in and to the Original Work and the patent rights
84
- granted herein by Licensor are owned by the Licensor or are sublicensed
85
- to You under the terms of this License with the permission of the
86
- contributor(s) of those copyrights and patent rights. Except as
87
- expressly stated in the immediately preceding sentence, the Original
88
- Work is provided under this License on an "AS IS" BASIS and WITHOUT
89
- WARRANTY, either express or implied, including, without limitation, the
90
- warranties of non-infringement, merchantability or fitness for a
91
- particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
92
- WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
93
- part of this License. No license to the Original Work is granted by this
94
- License except under this disclaimer.
95
-
96
- 8) Limitation of Liability. Under no circumstances and under no legal
97
- theory, whether in tort (including negligence), contract, or otherwise,
98
- shall the Licensor be liable to anyone for any indirect, special,
99
- incidental, or consequential damages of any character arising as a
100
- result of this License or the use of the Original Work including,
101
- without limitation, damages for loss of goodwill, work stoppage,
102
- computer failure or malfunction, or any and all other commercial damages
103
- or losses. This limitation of liability shall not apply to the extent
104
- applicable law prohibits such limitation.
105
-
106
- 9) Acceptance and Termination. If, at any time, You expressly assented
107
- to this License, that assent indicates your clear and irrevocable
108
- acceptance of this License and all of its terms and conditions. If You
109
- distribute or communicate copies of the Original Work or a Derivative
110
- Work, You must make a reasonable effort under the circumstances to
111
- obtain the express assent of recipients to the terms of this License.
112
- This License conditions your rights to undertake the activities listed
113
- in Section 1, including your right to create Derivative Works based upon
114
- the Original Work, and doing so without honoring these terms and
115
- conditions is prohibited by copyright law and international treaty.
116
- Nothing in this License is intended to affect copyright exceptions and
117
- limitations (including "fair use" or "fair dealing"). This License shall
118
- terminate immediately and You may no longer exercise any of the rights
119
- granted to You by this License upon your failure to honor the conditions
120
- in Section 1(c).
121
-
122
- 10) Termination for Patent Action. This License shall terminate
123
- automatically and You may no longer exercise any of the rights granted
124
- to You by this License as of the date You commence an action, including
125
- a cross-claim or counterclaim, against Licensor or any licensee alleging
126
- that the Original Work infringes a patent. This termination provision
127
- shall not apply for an action alleging patent infringement by
128
- combinations of the Original Work with other software or hardware.
129
-
130
- 11) Jurisdiction, Venue and Governing Law. Any action or suit relating
131
- to this License may be brought only in the courts of a jurisdiction
132
- wherein the Licensor resides or in which Licensor conducts its primary
133
- business, and under the laws of that jurisdiction excluding its
134
- conflict-of-law provisions. The application of the United Nations
135
- Convention on Contracts for the International Sale of Goods is expressly
136
- excluded. Any use of the Original Work outside the scope of this License
137
- or after its termination shall be subject to the requirements and
138
- penalties of copyright or patent law in the appropriate jurisdiction.
139
- This section shall survive the termination of this License.
140
-
141
- 12) Attorneys' Fees. In any action to enforce the terms of this License
142
- or seeking damages relating thereto, the prevailing party shall be
143
- entitled to recover its costs and expenses, including, without
144
- limitation, reasonable attorneys' fees and costs incurred in connection
145
- with such action, including any appeal of such action. This section
146
- shall survive the termination of this License.
147
-
148
- 13) Miscellaneous. If any provision of this License is held to be
149
- unenforceable, such provision shall be reformed only to the extent
150
- necessary to make it enforceable.
151
-
152
- 14) Definition of "You" in This License. "You" throughout this License,
153
- whether in upper or lower case, means an individual or a legal entity
154
- exercising rights under, and complying with all of the terms of, this
155
- License. For legal entities, "You" includes any entity that controls, is
156
- controlled by, or is under common control with you. For purposes of this
157
- definition, "control" means (i) the power, direct or indirect, to cause
158
- the direction or management of such entity, whether by contract or
159
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
160
- outstanding shares, or (iii) beneficial ownership of such entity.
161
-
162
- 15) Right to Use. You may use the Original Work in all ways not
163
- otherwise restricted or conditioned by this License or by law, and
164
- Licensor promises not to interfere with or be responsible for such uses
165
- by You.
166
-
167
- 16) Modification of This License. This License is Copyright (c) 2005
168
- Lawrence Rosen. Permission is granted to copy, distribute, or
169
- communicate this License without modification. Nothing in this License
170
- permits You to modify this License as applied to the Original Work or to
171
- Derivative Works. However, You may modify the text of this License and
172
- copy, distribute or communicate your modified version (the "Modified
173
- License") and apply it to other original works of authorship subject to
174
- the following conditions: (i) You may not indicate in any way that your
175
- Modified License is the "Academic Free License" or "AFL" and you may not
176
- use those names in the name of your Modified License; (ii) You must
177
- replace the notice specified in the first paragraph above with the
178
- notice "Licensed under <insert your license name here>" or with a notice
179
- of your own that is not confusingly similar to the notice in this
180
- License; and (iii) You may not claim that your original works are open
181
- source software unless your Modified License has been approved by Open
182
- Source Initiative (OSI) and You comply with its license review and
183
- certification process.
184
-
data/Manifest DELETED
@@ -1,174 +0,0 @@
1
- CHANGELOG
2
- examples/hmph.rb
3
- generators/tagging/tagging_generator.rb
4
- generators/tagging/templates/migration.rb
5
- generators/tagging/templates/tag.rb
6
- generators/tagging/templates/tag_test.rb
7
- generators/tagging/templates/tagging.rb
8
- generators/tagging/templates/tagging_extensions.rb
9
- generators/tagging/templates/tagging_test.rb
10
- generators/tagging/templates/taggings.yml
11
- generators/tagging/templates/tags.yml
12
- init.rb
13
- lib/has_many_polymorphs/association.rb
14
- lib/has_many_polymorphs/autoload.rb
15
- lib/has_many_polymorphs/base.rb
16
- lib/has_many_polymorphs/class_methods.rb
17
- lib/has_many_polymorphs/configuration.rb
18
- lib/has_many_polymorphs/debugging_tools.rb
19
- lib/has_many_polymorphs/rake_task_redefine_task.rb
20
- lib/has_many_polymorphs/reflection.rb
21
- lib/has_many_polymorphs/support_methods.rb
22
- lib/has_many_polymorphs.rb
23
- LICENSE
24
- Manifest
25
- README
26
- test/fixtures/bow_wows.yml
27
- test/fixtures/cats.yml
28
- test/fixtures/eaters_foodstuffs.yml
29
- test/fixtures/fish.yml
30
- test/fixtures/frogs.yml
31
- test/fixtures/keep_your_enemies_close.yml
32
- test/fixtures/little_whale_pupils.yml
33
- test/fixtures/people.yml
34
- test/fixtures/petfoods.yml
35
- test/fixtures/whales.yml
36
- test/fixtures/wild_boars.yml
37
- test/generator/tagging_generator_test.rb
38
- test/integration/app/app/controllers/application.rb
39
- test/integration/app/app/controllers/bones_controller.rb
40
- test/integration/app/app/helpers/addresses_helper.rb
41
- test/integration/app/app/helpers/application_helper.rb
42
- test/integration/app/app/helpers/bones_helper.rb
43
- test/integration/app/app/helpers/sellers_helper.rb
44
- test/integration/app/app/helpers/states_helper.rb
45
- test/integration/app/app/helpers/users_helper.rb
46
- test/integration/app/app/models/bone.rb
47
- test/integration/app/app/models/double_sti_parent.rb
48
- test/integration/app/app/models/double_sti_parent_relationship.rb
49
- test/integration/app/app/models/organic_substance.rb
50
- test/integration/app/app/models/single_sti_parent.rb
51
- test/integration/app/app/models/single_sti_parent_relationship.rb
52
- test/integration/app/app/models/stick.rb
53
- test/integration/app/app/models/stone.rb
54
- test/integration/app/app/views/addresses/edit.html.erb
55
- test/integration/app/app/views/addresses/index.html.erb
56
- test/integration/app/app/views/addresses/new.html.erb
57
- test/integration/app/app/views/addresses/show.html.erb
58
- test/integration/app/app/views/bones/index.rhtml
59
- test/integration/app/app/views/layouts/addresses.html.erb
60
- test/integration/app/app/views/layouts/sellers.html.erb
61
- test/integration/app/app/views/layouts/states.html.erb
62
- test/integration/app/app/views/layouts/users.html.erb
63
- test/integration/app/app/views/sellers/edit.html.erb
64
- test/integration/app/app/views/sellers/index.html.erb
65
- test/integration/app/app/views/sellers/new.html.erb
66
- test/integration/app/app/views/sellers/show.html.erb
67
- test/integration/app/app/views/states/edit.html.erb
68
- test/integration/app/app/views/states/index.html.erb
69
- test/integration/app/app/views/states/new.html.erb
70
- test/integration/app/app/views/states/show.html.erb
71
- test/integration/app/app/views/users/edit.html.erb
72
- test/integration/app/app/views/users/index.html.erb
73
- test/integration/app/app/views/users/new.html.erb
74
- test/integration/app/app/views/users/show.html.erb
75
- test/integration/app/config/boot.rb
76
- test/integration/app/config/database.yml
77
- test/integration/app/config/environment.rb
78
- test/integration/app/config/environment.rb.canonical
79
- test/integration/app/config/environments/development.rb
80
- test/integration/app/config/environments/production.rb
81
- test/integration/app/config/environments/test.rb
82
- test/integration/app/config/locomotive.yml
83
- test/integration/app/config/routes.rb
84
- test/integration/app/config/ultrasphinx/default.base
85
- test/integration/app/config/ultrasphinx/development.conf.canonical
86
- test/integration/app/db/migrate/001_create_sticks.rb
87
- test/integration/app/db/migrate/002_create_stones.rb
88
- test/integration/app/db/migrate/003_create_organic_substances.rb
89
- test/integration/app/db/migrate/004_create_bones.rb
90
- test/integration/app/db/migrate/005_create_single_sti_parents.rb
91
- test/integration/app/db/migrate/006_create_double_sti_parents.rb
92
- test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb
93
- test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb
94
- test/integration/app/db/migrate/009_create_library_model.rb
95
- test/integration/app/db/schema.rb
96
- test/integration/app/doc/README_FOR_APP
97
- test/integration/app/generators/commenting_generator_test.rb
98
- test/integration/app/hmp_development
99
- test/integration/app/lib/library_model.rb
100
- test/integration/app/public/404.html
101
- test/integration/app/public/500.html
102
- test/integration/app/public/dispatch.cgi
103
- test/integration/app/public/dispatch.fcgi
104
- test/integration/app/public/dispatch.rb
105
- test/integration/app/public/favicon.ico
106
- test/integration/app/public/images/rails.png
107
- test/integration/app/public/index.html
108
- test/integration/app/public/javascripts/application.js
109
- test/integration/app/public/javascripts/controls.js
110
- test/integration/app/public/javascripts/dragdrop.js
111
- test/integration/app/public/javascripts/effects.js
112
- test/integration/app/public/javascripts/prototype.js
113
- test/integration/app/public/robots.txt
114
- test/integration/app/public/stylesheets/scaffold.css
115
- test/integration/app/Rakefile
116
- test/integration/app/README
117
- test/integration/app/script/about
118
- test/integration/app/script/breakpointer
119
- test/integration/app/script/console
120
- test/integration/app/script/destroy
121
- test/integration/app/script/generate
122
- test/integration/app/script/performance/benchmarker
123
- test/integration/app/script/performance/profiler
124
- test/integration/app/script/plugin
125
- test/integration/app/script/process/inspector
126
- test/integration/app/script/process/reaper
127
- test/integration/app/script/process/spawner
128
- test/integration/app/script/runner
129
- test/integration/app/script/server
130
- test/integration/app/test/fixtures/double_sti_parent_relationships.yml
131
- test/integration/app/test/fixtures/double_sti_parents.yml
132
- test/integration/app/test/fixtures/organic_substances.yml
133
- test/integration/app/test/fixtures/single_sti_parent_relationships.yml
134
- test/integration/app/test/fixtures/single_sti_parents.yml
135
- test/integration/app/test/fixtures/sticks.yml
136
- test/integration/app/test/fixtures/stones.yml
137
- test/integration/app/test/functional/addresses_controller_test.rb
138
- test/integration/app/test/functional/bones_controller_test.rb
139
- test/integration/app/test/functional/sellers_controller_test.rb
140
- test/integration/app/test/functional/states_controller_test.rb
141
- test/integration/app/test/functional/users_controller_test.rb
142
- test/integration/app/test/test_helper.rb
143
- test/integration/app/test/unit/bone_test.rb
144
- test/integration/app/test/unit/double_sti_parent_relationship_test.rb
145
- test/integration/app/test/unit/double_sti_parent_test.rb
146
- test/integration/app/test/unit/organic_substance_test.rb
147
- test/integration/app/test/unit/single_sti_parent_relationship_test.rb
148
- test/integration/app/test/unit/single_sti_parent_test.rb
149
- test/integration/app/test/unit/stick_test.rb
150
- test/integration/app/test/unit/stone_test.rb
151
- test/integration/server_test.rb
152
- test/models/aquatic/fish.rb
153
- test/models/aquatic/pupils_whale.rb
154
- test/models/aquatic/whale.rb
155
- test/models/beautiful_fight_relationship.rb
156
- test/models/canine.rb
157
- test/models/cat.rb
158
- test/models/dog.rb
159
- test/models/eaters_foodstuff.rb
160
- test/models/frog.rb
161
- test/models/kitten.rb
162
- test/models/parentship.rb
163
- test/models/person.rb
164
- test/models/petfood.rb
165
- test/models/tabby.rb
166
- test/models/wild_boar.rb
167
- test/modules/extension_module.rb
168
- test/modules/other_extension_module.rb
169
- test/patches/symlinked_plugins_1.2.6.diff
170
- test/schema.rb
171
- test/setup.rb
172
- test/test_helper.rb
173
- test/unit/has_many_polymorphs_test.rb
174
- TODO
data/README DELETED
@@ -1,205 +0,0 @@
1
- Has_many_polymorphs
2
-
3
- An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
4
-
5
- == License
6
-
7
- Copyright 2006-2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
8
-
9
- The public certificate for the gem is here[http://rubyforge.org/frs/download.php/25331/evan_weaver-original-public_cert.pem].
10
-
11
- If you use this software, please {make a donation}[http://blog.evanweaver.com/donate/], or {recommend Evan}[http://www.workingwithrails.com/person/7739-evan-weaver] at Working with Rails.
12
-
13
- == Description
14
-
15
- This plugin lets you define self-referential and double-sided polymorphic associations in your models. It is an extension of <tt>has_many :through</tt>.
16
-
17
- “Polymorphic” means an association can freely point to any of several unrelated model classes, instead of being tied to one particular class.
18
-
19
- == Features
20
-
21
- * self-references
22
- * double-sided polymorphism
23
- * efficient database usage
24
- * STI support
25
- * namespace support
26
- * automatic individual and reverse associations
27
-
28
- The plugin also includes a generator for a tagging system, a common use case (see below).
29
-
30
- == Requirements
31
-
32
- * Rails 1.2.3 or greater
33
-
34
- = Usage
35
-
36
- == Installation
37
-
38
- To install the Rails plugin, run:
39
- script/plugin install git://github.com/fauna/has_many_polymorphs.git
40
-
41
- There's also a gem version. To install it instead, run:
42
- sudo gem install johnsbrn-has_many_polymorphs
43
-
44
- If you are using the gem, make sure to add <tt>require 'has_many_polymorphs'</tt> to <tt>environment.rb</tt>, before Rails::Initializer block.
45
-
46
- == Configuration
47
-
48
- Setup the parent model as so:
49
-
50
- class Kennel < ActiveRecord::Base
51
- has_many_polymorphs :guests, :from => [:dogs, :cats, :birds]
52
- end
53
-
54
- The join model:
55
-
56
- class GuestsKennel < ActiveRecord::Base
57
- belongs_to :kennel
58
- belongs_to :guest, :polymorphic => true
59
- end
60
-
61
- One of the child models:
62
-
63
- class Dog < ActiveRecord::Base
64
- # nothing
65
- end
66
-
67
- For your parent and child models, you don't need any special fields in your migration. For the join model (GuestsKennel), use a migration like so:
68
-
69
- class CreateGuestsKennels < ActiveRecord::Migration
70
- def self.up
71
- create_table :guests_kennels do |t|
72
- t.references :guest, :polymorphic => true
73
- t.references :kennel
74
- end
75
- end
76
-
77
- def self.down
78
- drop_table :guests_kennels
79
- end
80
- end
81
-
82
- See ActiveRecord::Associations::PolymorphicClassMethods for more configuration options.
83
-
84
- == Helper methods example
85
-
86
- >> k = Kennel.find(1)
87
- #<Kennel id: 1, name: "Happy Paws">
88
- >> k.guests.map(&:class)
89
- [Dog, Cat, Cat, Bird]
90
-
91
- >> k.guests.push(Cat.create); k.cats.size
92
- 3
93
- >> k.guests << Cat.create; k.cats.size
94
- 4
95
- >> k.guests.size
96
- 6
97
-
98
- >> d = k.dogs.first
99
- #<Dog id: 3, name: "Rover">
100
- >> d.kennels
101
- [#<Kennel id: 1, name: "Happy Paws">]
102
-
103
- >> k.guests.delete(d); k.dogs.size
104
- 0
105
- >> k.guests.size
106
- 5
107
-
108
- Note that the parent method is always plural, even if there is only one parent (<tt>Dog#kennels</tt>, not <tt>Dog#kennel</tt>).
109
-
110
- See ActiveRecord::Associations::PolymorphicAssociation for more helper method details.
111
-
112
- = Extras
113
-
114
- == Double-sided polymorphism
115
-
116
- Double-sided relationships are defined on the join model:
117
-
118
- class Devouring < ActiveRecord::Base
119
- belongs_to :guest, :polymorphic => true
120
- belongs_to :eaten, :polymorphic => true
121
-
122
- acts_as_double_polymorphic_join(
123
- :guests =>[:dogs, :cats],
124
- :eatens => [:cats, :birds]
125
- )
126
- end
127
-
128
- Now, dogs and cats can eat birds and cats. Birds can't eat anything (they aren't <tt>guests</tt>) and dogs can't be eaten by anything (since they aren't <tt>eatens</tt>). The keys stand for what the models are, not what they do.
129
-
130
- In this case, each guest/eaten relationship is called a Devouring.
131
-
132
- In your migration, you need to declare both sides as polymorphic:
133
-
134
- class CreateDevourings < ActiveRecord::Migration
135
- def self.up
136
- create_table :devourings do |t|
137
- t.references :guest, :polymorphic => true
138
- t.references :eaten, :polymorphic => true
139
- end
140
- end
141
-
142
- def self.down
143
- drop_table :devourings
144
- end
145
- end
146
-
147
- See ActiveRecord::Associations::PolymorphicClassMethods for more.
148
-
149
- == Tagging generator
150
-
151
- Has_many_polymorphs includes a tagging system generator. Run:
152
- script/generate tagging Dog Cat [...MoreModels...]
153
-
154
- This adds a migration and new Tag and Tagging models in <tt>app/models</tt>. It configures Tag with an appropriate <tt>has_many_polymorphs</tt> call against the models you list at the command line. It also adds the file <tt>lib/tagging_extensions.rb</tt> and <tt>requires</tt> it in <tt>environment.rb</tt>.
155
-
156
- Tests will also be generated.
157
-
158
- Once you've run the generator, you can tag records as follows:
159
-
160
- >> d = Dog.create(:name => "Rover")
161
- #<Dog id: 3, name: "Rover">
162
- >> d.tag_list
163
- ""
164
- >> d.tag_with "fierce loud"
165
- #<Dog id: 3, name: "Rover">
166
- >> d.tag_list
167
- "fierce loud"
168
- >> c = Cat.create(:name => "Chloe")
169
- #<Cat id: 1, name: "Chloe">
170
- >> c.tag_with "fierce cute"
171
- #<Cat id: 1, name: "Chloe">
172
- >> c.tag_list
173
- "cute fierce"
174
- >> Tag.find_by_name("fierce").taggables
175
- [#<Cat id: 1, name: "Chloe">, #<Dog id: 3, name: "Rover">]
176
-
177
- The generator accepts the optional flag <tt>--skip-migration</tt> to skip generating a migration (for example, if you are converting from <tt>acts_as_taggable</tt>). It also accepts the flag <tt>--self-referential</tt> if you want to be able to tag tags.
178
-
179
- See ActiveRecord::Base::TaggingExtensions, Tag, and Tagging for more.
180
-
181
- == Troubleshooting
182
-
183
- Some debugging tools are available in <tt>lib/has_many_polymorphs/debugging_tools.rb</tt>.
184
-
185
- If you are having trouble, think very carefully about how your model classes, key columns, and table names relate. You may have to explicitly specify options on your join model such as <tt>:class_name</tt>, <tt>:foreign_key</tt>, or <tt>:as</tt>. The included tests are a good place to look for examples.
186
-
187
- Note that because of the way Rails reloads model classes, the plugin can sometimes bog down your development server. Set <tt>config.cache_classes = true</tt> in <tt>config/environments/development.rb</tt> to avoid this.
188
-
189
- == Reporting problems
190
-
191
- The support forum is here[http://rubyforge.org/forum/forum.php?forum_id=16450].
192
-
193
- Patches and contributions are very welcome. Please note that contributors are required to assign copyright for their additions to Cloudburst, LLC.
194
-
195
- == Further resources
196
-
197
- * http://blog.evanweaver.com/articles/2007/08/15/polymorphs-tutorial
198
- * http://blog.evanweaver.com/articles/2007/02/22/polymorphs-25-total-insanity-branch
199
- * http://blog.evanweaver.com/articles/2007/02/09/how-to-find-the-most-popular-tags
200
- * http://blog.evanweaver.com/articles/2007/01/13/growing-up-your-acts_as_taggable
201
- * http://blog.evanweaver.com/articles/2006/12/02/polymorphs-19
202
- * http://blog.evanweaver.com/articles/2006/11/05/directed-double-polymorphic-associations
203
- * http://blog.evanweaver.com/articles/2006/11/04/namespaced-model-support-in-has_many_polymorphs
204
- * http://blog.evanweaver.com/articles/2006/09/26/sti-support-in-has_many_polymorphs
205
- * http://blog.evanweaver.com/articles/2006/09/11/make-polymorphic-children-belong-to-only-one-parent
data/TODO DELETED
@@ -1,2 +0,0 @@
1
-
2
- * Tag cloud method
data/examples/hmph.rb DELETED
@@ -1,69 +0,0 @@
1
- require 'camping'
2
- require 'has_many_polymorphs'
3
-
4
- Camping.goes :Hmph
5
-
6
- module Hmph::Models
7
- class GuestsKennel < Base
8
- belongs_to :kennel
9
- belongs_to :guest, :polymorphic => true
10
- end
11
-
12
- class Dog < Base
13
- end
14
-
15
- class Cat < Base
16
- end
17
-
18
- class Bird < Base
19
- end
20
-
21
- class Kennel < Base
22
- has_many_polymorphs :guests,
23
- :from => [:dogs, :cats, :birds],
24
- :through => :guests_kennels,
25
- :namespace => :"hmph/models/"
26
- end
27
-
28
- class InitialSchema < V 1.0
29
- def self.up
30
- create_table :hmph_kennels do |t|
31
- t.column :created_at, :datetime
32
- t.column :modified_at, :datetime
33
- t.column :name, :string, :default => 'Anonymous Kennel'
34
- end
35
-
36
- create_table :hmph_guests_kennels do |t|
37
- t.column :guest_id, :integer
38
- t.column :guest_type, :string
39
- t.column :kennel_id, :integer
40
- end
41
-
42
- create_table :hmph_dogs do |t|
43
- t.column :name, :string, :default => 'Fido'
44
- end
45
-
46
- create_table :hmph_cats do |t|
47
- t.column :name, :string, :default => 'Morris'
48
- end
49
-
50
- create_table :hmph_birds do |t|
51
- t.column :name, :string, :default => 'Polly'
52
- end
53
- end
54
-
55
- def self.down
56
- drop_table :hmph_kennels
57
- drop_table :hmph_guests_kennels
58
- drop_table :hmph_dogs
59
- drop_table :hmph_cats
60
- drop_table :hmph_birds
61
- end
62
- end
63
- end
64
-
65
- module Hmph::Controllers
66
- end
67
-
68
- module Hmph::Views
69
- end
@@ -1,100 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- Gem::Specification.new do |s|
4
- s.name = %q{has_many_polymorphs}
5
- s.version = "2.13"
6
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = [""]
9
- #s.cert_chain = ["-----BEGIN CERTIFICATE-----\nMIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ0wCwYDVQQDDARldmFu\nMRgwFgYKCZImiZPyLGQBGRYIY2xvdWRidXIxEjAQBgoJkiaJk/IsZAEZFgJzdDAe\nFw0wNzA5MTYxMDMzMDBaFw0wODA5MTUxMDMzMDBaMD0xDTALBgNVBAMMBGV2YW4x\nGDAWBgoJkiaJk/IsZAEZFghjbG91ZGJ1cjESMBAGCgmSJomT8ixkARkWAnN0MIIB\nIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5C0Io89nyApnr+PvbNFge9Vs\nyRWAlGBUEMahpXp28VrrfXZT0rAW7JBo4PlCE3jl4nE4dzE6gAdItSycjTosrw7A\nIr5+xoyl4Vb35adv56TIQQXvNz+BzlqnkAY5JN0CSBRTQb6mxS3hFyD/h4qgDosj\nR2RFVzHqSxCS8xq4Ny8uzOwOi+Xyu4w67fI5JvnPvMxqrlR1eaIQHmxnf76RzC46\nQO5QhufjAYGGXd960XzbQsQyTDUYJzrvT7AdOfiyZzKQykKt8dEpDn+QPjFTnGnT\nQmgJBX5WJN0lHF2l1sbv3gh4Kn1tZu+kTUqeXY6ShAoDTyvZRiFqQdwh8w2lTQID\nAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU+WqJz3xQ\nXSea1hRvvHWcIMgeeC4wDQYJKoZIhvcNAQEFBQADggEBAGLZ75jfOEW8Nsl26CTt\nJFrWxQTcQT/UljeefVE3xYr7lc9oQjbqO3FOyued3qW7TaNEtZfSHoYeUSMYbpw1\nXAwocIPuSRFDGM4B+hgQGVDx8PMGiJKom4qLXjO40UZsR7QyN/u869Vj45LURm6h\nMBcPeqCASI+WNprj9+uZa2kmHiitrFqqfMBNlm5IFbn9XeYSta9AHVvs5QQqV2m5\nhIPfLqCyxsn/YgOGvo6iwyQTWyTswamaAC3HRWZxIS1sfn/Ssqa7E7oQMkv5FAXr\nx5rKePfXINf8XTJczkl9OBEYdE9aNdJsJpXD0asLgGVwBICS5Bjohp6mizJcDC1+\nyZ0=\n-----END CERTIFICATE-----\n"]
10
- s.date = %q{2009-01-14}
11
- s.description = %q{An ActiveRecord plugin for self-referential and double-sided polymorphic associations.}
12
- s.email = %q{}
13
- s.files = ["CHANGELOG",
14
- "examples/hmph.rb",
15
- "generators/tagging/tagging_generator.rb",
16
- "generators/tagging/templates/migration.rb",
17
- "generators/tagging/templates/tag.rb",
18
- "generators/tagging/templates/tag_test.rb",
19
- "generators/tagging/templates/tagging.rb",
20
- "generators/tagging/templates/tagging_extensions.rb",
21
- "generators/tagging/templates/tagging_test.rb",
22
- "generators/tagging/templates/taggings.yml",
23
- "generators/tagging/templates/tags.yml",
24
- "init.rb",
25
- "lib/has_many_polymorphs/association.rb",
26
- "lib/has_many_polymorphs/autoload.rb",
27
- "lib/has_many_polymorphs/base.rb",
28
- "lib/has_many_polymorphs/class_methods.rb",
29
- "lib/has_many_polymorphs/configuration.rb",
30
- "lib/has_many_polymorphs/debugging_tools.rb",
31
- "lib/has_many_polymorphs/rake_task_redefine_task.rb",
32
- "lib/has_many_polymorphs/reflection.rb",
33
- "lib/has_many_polymorphs/support_methods.rb",
34
- "lib/has_many_polymorphs.rb",
35
- "LICENSE", "Manifest", "README",
36
- "test/fixtures/bow_wows.yml",
37
- "test/fixtures/cats.yml",
38
- "test/fixtures/eaters_foodstuffs.yml",
39
- "test/fixtures/fish.yml",
40
- "test/fixtures/frogs.yml",
41
- "test/fixtures/keep_your_enemies_close.yml",
42
- "test/fixtures/little_whale_pupils.yml",
43
- "test/fixtures/people.yml",
44
- "test/fixtures/petfoods.yml",
45
- "test/fixtures/whales.yml",
46
- "test/fixtures/wild_boars.yml",
47
- "test/generator/tagging_generator_test.rb",
48
- "test/integration/app/app/controllers/application.rb",
49
- "test/integration/app/app/controllers/bones_controller.rb",
50
- "test/integration/app/app/helpers/addresses_helper.rb",
51
- "test/integration/app/app/helpers/application_helper.rb",
52
- "test/integration/app/app/helpers/bones_helper.rb",
53
- "test/integration/app/app/helpers/sellers_helper.rb",
54
- "test/integration/app/app/helpers/states_helper.rb",
55
- "test/integration/app/app/helpers/users_helper.rb",
56
- "test/integration/app/app/models/bone.rb",
57
- "test/integration/app/app/models/double_sti_parent.rb",
58
- "test/integration/app/app/models/double_sti_parent_relationship.rb",
59
- "test/integration/app/app/models/organic_substance.rb",
60
- "test/integration/app/app/models/single_sti_parent.rb",
61
- "test/integration/app/app/models/single_sti_parent_relationship.rb",
62
- "test/integration/app/app/models/stick.rb",
63
- "test/integration/app/app/models/stone.rb",
64
- "test/integration/app/app/views/addresses/edit.html.erb",
65
- "test/integration/app/app/views/addresses/index.html.erb",
66
- "test/integration/app/app/views/addresses/new.html.erb",
67
- "test/integration/app/app/views/addresses/show.html.erb",
68
- "test/integration/app/app/views/bones/index.rhtml",
69
- "test/integration/app/app/views/layouts/addresses.html.erb",
70
- "test/integration/app/app/views/layouts/sellers.html.erb",
71
- "test/integration/app/app/views/layouts/states.html.erb",
72
- "test/integration/app/app/views/layouts/users.html.erb",
73
- "test/integration/app/app/views/sellers/edit.html.erb",
74
- "test/integration/app/app/views/sellers/index.html.erb",
75
- "test/integration/app/app/views/sellers/new.html.erb",
76
- "test/integration/app/app/views/sellers/show.html.erb",
77
- "test/integration/app/app/views/states/edit.html.erb",
78
- "test/integration/app/app/views/states/index.html.erb",
79
- "test/integration/app/app/views/states/new.html.erb", "test/integration/app/app/views/states/show.html.erb", "test/integration/app/app/views/users/edit.html.erb", "test/integration/app/app/views/users/index.html.erb", "test/integration/app/app/views/users/new.html.erb", "test/integration/app/app/views/users/show.html.erb", "test/integration/app/config/boot.rb", "test/integration/app/config/database.yml", "test/integration/app/config/environment.rb", "test/integration/app/config/environment.rb.canonical", "test/integration/app/config/environments/development.rb", "test/integration/app/config/environments/production.rb", "test/integration/app/config/environments/test.rb", "test/integration/app/config/locomotive.yml", "test/integration/app/config/routes.rb", "test/integration/app/config/ultrasphinx/default.base", "test/integration/app/config/ultrasphinx/development.conf.canonical", "test/integration/app/db/migrate/001_create_sticks.rb", "test/integration/app/db/migrate/002_create_stones.rb", "test/integration/app/db/migrate/003_create_organic_substances.rb", "test/integration/app/db/migrate/004_create_bones.rb", "test/integration/app/db/migrate/005_create_single_sti_parents.rb", "test/integration/app/db/migrate/006_create_double_sti_parents.rb", "test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb", "test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb", "test/integration/app/db/migrate/009_create_library_model.rb", "test/integration/app/db/schema.rb", "test/integration/app/doc/README_FOR_APP", "test/integration/app/generators/commenting_generator_test.rb", "test/integration/app/hmp_development", "test/integration/app/lib/library_model.rb", "test/integration/app/public/404.html", "test/integration/app/public/500.html", "test/integration/app/public/dispatch.cgi", "test/integration/app/public/dispatch.fcgi", "test/integration/app/public/dispatch.rb", "test/integration/app/public/favicon.ico", "test/integration/app/public/images/rails.png", "test/integration/app/public/index.html", "test/integration/app/public/javascripts/application.js", "test/integration/app/public/javascripts/controls.js", "test/integration/app/public/javascripts/dragdrop.js", "test/integration/app/public/javascripts/effects.js", "test/integration/app/public/javascripts/prototype.js", "test/integration/app/public/robots.txt", "test/integration/app/public/stylesheets/scaffold.css", "test/integration/app/Rakefile", "test/integration/app/README", "test/integration/app/script/about", "test/integration/app/script/breakpointer", "test/integration/app/script/console", "test/integration/app/script/destroy", "test/integration/app/script/generate", "test/integration/app/script/performance/benchmarker", "test/integration/app/script/performance/profiler", "test/integration/app/script/plugin", "test/integration/app/script/process/inspector", "test/integration/app/script/process/reaper", "test/integration/app/script/process/spawner", "test/integration/app/script/runner", "test/integration/app/script/server", "test/integration/app/test/fixtures/double_sti_parent_relationships.yml", "test/integration/app/test/fixtures/double_sti_parents.yml", "test/integration/app/test/fixtures/organic_substances.yml", "test/integration/app/test/fixtures/single_sti_parent_relationships.yml", "test/integration/app/test/fixtures/single_sti_parents.yml", "test/integration/app/test/fixtures/sticks.yml", "test/integration/app/test/fixtures/stones.yml", "test/integration/app/test/functional/addresses_controller_test.rb", "test/integration/app/test/functional/bones_controller_test.rb", "test/integration/app/test/functional/sellers_controller_test.rb", "test/integration/app/test/functional/states_controller_test.rb", "test/integration/app/test/functional/users_controller_test.rb", "test/integration/app/test/test_helper.rb", "test/integration/app/test/unit/bone_test.rb", "test/integration/app/test/unit/double_sti_parent_relationship_test.rb", "test/integration/app/test/unit/double_sti_parent_test.rb", "test/integration/app/test/unit/organic_substance_test.rb", "test/integration/app/test/unit/single_sti_parent_relationship_test.rb", "test/integration/app/test/unit/single_sti_parent_test.rb", "test/integration/app/test/unit/stick_test.rb", "test/integration/app/test/unit/stone_test.rb", "test/integration/server_test.rb", "test/models/aquatic/fish.rb", "test/models/aquatic/pupils_whale.rb", "test/models/aquatic/whale.rb", "test/models/beautiful_fight_relationship.rb", "test/models/canine.rb", "test/models/cat.rb", "test/models/dog.rb", "test/models/eaters_foodstuff.rb", "test/models/frog.rb", "test/models/kitten.rb", "test/models/parentship.rb", "test/models/person.rb", "test/models/petfood.rb", "test/models/tabby.rb", "test/models/wild_boar.rb", "test/modules/extension_module.rb", "test/modules/other_extension_module.rb", "test/patches/symlinked_plugins_1.2.6.diff", "test/schema.rb", "test/setup.rb", "test/test_helper.rb", "test/unit/has_many_polymorphs_test.rb", "TODO", "has_many_polymorphs.gemspec"]
80
- s.has_rdoc = true
81
- s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/}
82
- s.require_paths = ["lib"]
83
- s.rubyforge_project = %q{fauna}
84
- s.rubygems_version = %q{1.3.1}
85
- s.summary = %q{An ActiveRecord plugin for self-referential and double-sided polymorphic associations.}
86
- s.test_files = ["test/generator/tagging_generator_test.rb", "test/integration/server_test.rb", "test/unit/has_many_polymorphs_test.rb"]
87
-
88
- if s.respond_to? :specification_version then
89
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
90
- s.specification_version = 2
91
-
92
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
93
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
94
- else
95
- s.add_dependency(%q<activerecord>, [">= 0"])
96
- end
97
- else
98
- s.add_dependency(%q<activerecord>, [">= 0"])
99
- end
100
- end
data/init.rb DELETED
@@ -1,2 +0,0 @@
1
-
2
- require 'has_many_polymorphs'