globe-composite_primary_keys 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. data/History.txt +203 -0
  2. data/Manifest.txt +121 -0
  3. data/README.txt +41 -0
  4. data/README_DB2.txt +33 -0
  5. data/Rakefile +30 -0
  6. data/composite_primary_keys.gemspec +17 -0
  7. data/lib/adapter_helper/base.rb +63 -0
  8. data/lib/adapter_helper/mysql.rb +13 -0
  9. data/lib/adapter_helper/oracle.rb +12 -0
  10. data/lib/adapter_helper/oracle_enhanced.rb +12 -0
  11. data/lib/adapter_helper/postgresql.rb +13 -0
  12. data/lib/adapter_helper/sqlite3.rb +13 -0
  13. data/lib/composite_primary_keys.rb +63 -0
  14. data/lib/composite_primary_keys/association_preload.rb +162 -0
  15. data/lib/composite_primary_keys/associations.rb +159 -0
  16. data/lib/composite_primary_keys/attribute_methods.rb +84 -0
  17. data/lib/composite_primary_keys/base.rb +200 -0
  18. data/lib/composite_primary_keys/composite_arrays.rb +29 -0
  19. data/lib/composite_primary_keys/connection_adapters/abstract_adapter.rb +9 -0
  20. data/lib/composite_primary_keys/connection_adapters/ibm_db_adapter.rb +21 -0
  21. data/lib/composite_primary_keys/connection_adapters/oracle_adapter.rb +15 -0
  22. data/lib/composite_primary_keys/connection_adapters/oracle_enhanced_adapter.rb +17 -0
  23. data/lib/composite_primary_keys/connection_adapters/postgresql_adapter.rb +53 -0
  24. data/lib/composite_primary_keys/connection_adapters/sqlite3_adapter.rb +15 -0
  25. data/lib/composite_primary_keys/finder_methods.rb +68 -0
  26. data/lib/composite_primary_keys/fixtures.rb +8 -0
  27. data/lib/composite_primary_keys/read.rb +25 -0
  28. data/lib/composite_primary_keys/reflection.rb +39 -0
  29. data/lib/composite_primary_keys/relation.rb +31 -0
  30. data/lib/composite_primary_keys/through_association_scope.rb +212 -0
  31. data/lib/composite_primary_keys/validations/uniqueness.rb +118 -0
  32. data/lib/composite_primary_keys/version.rb +9 -0
  33. data/loader.rb +24 -0
  34. data/local/database_connections.rb.sample +12 -0
  35. data/local/paths.rb.sample +2 -0
  36. data/local/tasks.rb.sample +2 -0
  37. data/scripts/console.rb +48 -0
  38. data/scripts/txt2html +67 -0
  39. data/scripts/txt2js +59 -0
  40. data/tasks/activerecord_selection.rake +43 -0
  41. data/tasks/databases.rake +12 -0
  42. data/tasks/databases/mysql.rake +30 -0
  43. data/tasks/databases/oracle.rake +25 -0
  44. data/tasks/databases/postgresql.rake +25 -0
  45. data/tasks/databases/sqlite3.rake +28 -0
  46. data/tasks/deployment.rake +22 -0
  47. data/tasks/local_setup.rake +13 -0
  48. data/tasks/website.rake +18 -0
  49. data/test/README_tests.txt +67 -0
  50. data/test/abstract_unit.rb +103 -0
  51. data/test/connections/native_ibm_db/connection.rb +23 -0
  52. data/test/connections/native_mysql/connection.rb +13 -0
  53. data/test/connections/native_oracle/connection.rb +14 -0
  54. data/test/connections/native_oracle_enhanced/connection.rb +20 -0
  55. data/test/connections/native_postgresql/connection.rb +8 -0
  56. data/test/connections/native_sqlite/connection.rb +9 -0
  57. data/test/fixtures/article.rb +5 -0
  58. data/test/fixtures/article_group.rb +4 -0
  59. data/test/fixtures/article_groups.yml +7 -0
  60. data/test/fixtures/articles.yml +6 -0
  61. data/test/fixtures/comment.rb +6 -0
  62. data/test/fixtures/comments.yml +16 -0
  63. data/test/fixtures/db_definitions/db2-create-tables.sql +113 -0
  64. data/test/fixtures/db_definitions/db2-drop-tables.sql +16 -0
  65. data/test/fixtures/db_definitions/mysql.sql +181 -0
  66. data/test/fixtures/db_definitions/oracle.drop.sql +39 -0
  67. data/test/fixtures/db_definitions/oracle.sql +188 -0
  68. data/test/fixtures/db_definitions/postgresql.sql +206 -0
  69. data/test/fixtures/db_definitions/sqlite.sql +166 -0
  70. data/test/fixtures/department.rb +5 -0
  71. data/test/fixtures/departments.yml +3 -0
  72. data/test/fixtures/dorm.rb +3 -0
  73. data/test/fixtures/dorms.yml +2 -0
  74. data/test/fixtures/employee.rb +4 -0
  75. data/test/fixtures/employees.yml +9 -0
  76. data/test/fixtures/group.rb +3 -0
  77. data/test/fixtures/groups.yml +3 -0
  78. data/test/fixtures/hack.rb +6 -0
  79. data/test/fixtures/hacks.yml +2 -0
  80. data/test/fixtures/kitchen_sink.rb +3 -0
  81. data/test/fixtures/kitchen_sinks.yml +5 -0
  82. data/test/fixtures/membership.rb +10 -0
  83. data/test/fixtures/membership_status.rb +3 -0
  84. data/test/fixtures/membership_statuses.yml +10 -0
  85. data/test/fixtures/memberships.yml +6 -0
  86. data/test/fixtures/product.rb +7 -0
  87. data/test/fixtures/product_tariff.rb +5 -0
  88. data/test/fixtures/product_tariffs.yml +12 -0
  89. data/test/fixtures/products.yml +6 -0
  90. data/test/fixtures/reading.rb +4 -0
  91. data/test/fixtures/readings.yml +10 -0
  92. data/test/fixtures/reference_code.rb +7 -0
  93. data/test/fixtures/reference_codes.yml +28 -0
  94. data/test/fixtures/reference_type.rb +7 -0
  95. data/test/fixtures/reference_types.yml +9 -0
  96. data/test/fixtures/restaurant.rb +6 -0
  97. data/test/fixtures/restaurants.yml +5 -0
  98. data/test/fixtures/restaurants_suburbs.yml +11 -0
  99. data/test/fixtures/room.rb +10 -0
  100. data/test/fixtures/room_assignment.rb +4 -0
  101. data/test/fixtures/room_assignments.yml +4 -0
  102. data/test/fixtures/room_attribute.rb +3 -0
  103. data/test/fixtures/room_attribute_assignment.rb +5 -0
  104. data/test/fixtures/room_attribute_assignments.yml +4 -0
  105. data/test/fixtures/room_attributes.yml +3 -0
  106. data/test/fixtures/rooms.yml +3 -0
  107. data/test/fixtures/seat.rb +5 -0
  108. data/test/fixtures/seats.yml +4 -0
  109. data/test/fixtures/street.rb +3 -0
  110. data/test/fixtures/streets.yml +15 -0
  111. data/test/fixtures/student.rb +4 -0
  112. data/test/fixtures/students.yml +2 -0
  113. data/test/fixtures/suburb.rb +6 -0
  114. data/test/fixtures/suburbs.yml +9 -0
  115. data/test/fixtures/tariff.rb +6 -0
  116. data/test/fixtures/tariffs.yml +13 -0
  117. data/test/fixtures/user.rb +10 -0
  118. data/test/fixtures/users.yml +6 -0
  119. data/test/hash_tricks.rb +34 -0
  120. data/test/plugins/pagination.rb +405 -0
  121. data/test/plugins/pagination_helper.rb +135 -0
  122. data/test/test_associations.rb +178 -0
  123. data/test/test_attribute_methods.rb +22 -0
  124. data/test/test_attributes.rb +80 -0
  125. data/test/test_clone.rb +34 -0
  126. data/test/test_composite_arrays.rb +32 -0
  127. data/test/test_create.rb +68 -0
  128. data/test/test_delete.rb +83 -0
  129. data/test/test_exists.rb +25 -0
  130. data/test/test_find.rb +73 -0
  131. data/test/test_ids.rb +90 -0
  132. data/test/test_miscellaneous.rb +39 -0
  133. data/test/test_pagination.rb +38 -0
  134. data/test/test_polymorphic.rb +32 -0
  135. data/test/test_santiago.rb +27 -0
  136. data/test/test_suite.rb +19 -0
  137. data/test/test_tutorial_example.rb +26 -0
  138. data/test/test_update.rb +40 -0
  139. data/test/test_validations.rb +11 -0
  140. data/website/index.html +195 -0
  141. data/website/index.txt +159 -0
  142. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  143. data/website/stylesheets/screen.css +126 -0
  144. data/website/template.js +3 -0
  145. data/website/template.rhtml +53 -0
  146. data/website/version-raw.js +3 -0
  147. data/website/version-raw.txt +2 -0
  148. data/website/version.js +4 -0
  149. data/website/version.txt +3 -0
  150. metadata +339 -0
@@ -0,0 +1,3 @@
1
+ // Announcement JS file
2
+ var version = "2.3.5.1";
3
+ MagicAnnouncement.show('compositekeys', version);
@@ -0,0 +1,2 @@
1
+ h1. Announcement JS file
2
+ MagicAnnouncement.show('compositekeys', version);
@@ -0,0 +1,4 @@
1
+ // Version JS file
2
+ var version = "2.3.5.1";
3
+
4
+ document.write(" - " + version);
@@ -0,0 +1,3 @@
1
+ h1. Version JS file
2
+
3
+ document.write(" - " + version);
metadata ADDED
@@ -0,0 +1,339 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: globe-composite_primary_keys
3
+ version: !ruby/object:Gem::Version
4
+ hash: 5
5
+ prerelease: false
6
+ segments:
7
+ - 3
8
+ - 0
9
+ - 1
10
+ version: 3.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Daniel Berger
14
+ - Ying Hong
15
+ - Charlie O'Keefe
16
+ - Ardith Falkner
17
+ autorequire:
18
+ bindir: bin
19
+ cert_chain: []
20
+
21
+ date: 2010-11-04 00:00:00 -06:00
22
+ default_executable:
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
25
+ name: activerecord
26
+ prerelease: false
27
+ requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ hash: 7
33
+ segments:
34
+ - 3
35
+ - 0
36
+ - 0
37
+ version: 3.0.0
38
+ type: :runtime
39
+ version_requirements: *id001
40
+ - !ruby/object:Gem::Dependency
41
+ name: rspec
42
+ prerelease: false
43
+ requirement: &id002 !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ hash: 3
49
+ segments:
50
+ - 0
51
+ version: "0"
52
+ type: :development
53
+ version_requirements: *id002
54
+ description: Adds support for composite primary keys to ActiveRecord.
55
+ email: globedev-auto@globe.gov
56
+ executables: []
57
+
58
+ extensions: []
59
+
60
+ extra_rdoc_files: []
61
+
62
+ files:
63
+ - composite_primary_keys.gemspec
64
+ - History.txt
65
+ - lib/adapter_helper/base.rb
66
+ - lib/adapter_helper/mysql.rb
67
+ - lib/adapter_helper/oracle.rb
68
+ - lib/adapter_helper/oracle_enhanced.rb
69
+ - lib/adapter_helper/postgresql.rb
70
+ - lib/adapter_helper/sqlite3.rb
71
+ - lib/composite_primary_keys/association_preload.rb
72
+ - lib/composite_primary_keys/associations.rb
73
+ - lib/composite_primary_keys/attribute_methods.rb
74
+ - lib/composite_primary_keys/base.rb
75
+ - lib/composite_primary_keys/composite_arrays.rb
76
+ - lib/composite_primary_keys/connection_adapters/abstract_adapter.rb
77
+ - lib/composite_primary_keys/connection_adapters/ibm_db_adapter.rb
78
+ - lib/composite_primary_keys/connection_adapters/oracle_adapter.rb
79
+ - lib/composite_primary_keys/connection_adapters/oracle_enhanced_adapter.rb
80
+ - lib/composite_primary_keys/connection_adapters/postgresql_adapter.rb
81
+ - lib/composite_primary_keys/connection_adapters/sqlite3_adapter.rb
82
+ - lib/composite_primary_keys/finder_methods.rb
83
+ - lib/composite_primary_keys/fixtures.rb
84
+ - lib/composite_primary_keys/read.rb
85
+ - lib/composite_primary_keys/reflection.rb
86
+ - lib/composite_primary_keys/relation.rb
87
+ - lib/composite_primary_keys/through_association_scope.rb
88
+ - lib/composite_primary_keys/validations/uniqueness.rb
89
+ - lib/composite_primary_keys/version.rb
90
+ - lib/composite_primary_keys.rb
91
+ - loader.rb
92
+ - local/database_connections.rb.sample
93
+ - local/paths.rb.sample
94
+ - local/tasks.rb.sample
95
+ - Manifest.txt
96
+ - Rakefile
97
+ - README.txt
98
+ - README_DB2.txt
99
+ - scripts/console.rb
100
+ - scripts/txt2html
101
+ - scripts/txt2js
102
+ - tasks/activerecord_selection.rake
103
+ - tasks/databases/mysql.rake
104
+ - tasks/databases/oracle.rake
105
+ - tasks/databases/postgresql.rake
106
+ - tasks/databases/sqlite3.rake
107
+ - tasks/databases.rake
108
+ - tasks/deployment.rake
109
+ - tasks/local_setup.rake
110
+ - tasks/website.rake
111
+ - test/abstract_unit.rb
112
+ - test/connections/native_ibm_db/connection.rb
113
+ - test/connections/native_mysql/connection.rb
114
+ - test/connections/native_oracle/connection.rb
115
+ - test/connections/native_oracle_enhanced/connection.rb
116
+ - test/connections/native_postgresql/connection.rb
117
+ - test/connections/native_sqlite/connection.rb
118
+ - test/fixtures/article.rb
119
+ - test/fixtures/article_group.rb
120
+ - test/fixtures/article_groups.yml
121
+ - test/fixtures/articles.yml
122
+ - test/fixtures/comment.rb
123
+ - test/fixtures/comments.yml
124
+ - test/fixtures/db_definitions/db2-create-tables.sql
125
+ - test/fixtures/db_definitions/db2-drop-tables.sql
126
+ - test/fixtures/db_definitions/mysql.sql
127
+ - test/fixtures/db_definitions/oracle.drop.sql
128
+ - test/fixtures/db_definitions/oracle.sql
129
+ - test/fixtures/db_definitions/postgresql.sql
130
+ - test/fixtures/db_definitions/sqlite.sql
131
+ - test/fixtures/department.rb
132
+ - test/fixtures/departments.yml
133
+ - test/fixtures/dorm.rb
134
+ - test/fixtures/dorms.yml
135
+ - test/fixtures/employee.rb
136
+ - test/fixtures/employees.yml
137
+ - test/fixtures/group.rb
138
+ - test/fixtures/groups.yml
139
+ - test/fixtures/hack.rb
140
+ - test/fixtures/hacks.yml
141
+ - test/fixtures/kitchen_sink.rb
142
+ - test/fixtures/kitchen_sinks.yml
143
+ - test/fixtures/membership.rb
144
+ - test/fixtures/membership_status.rb
145
+ - test/fixtures/membership_statuses.yml
146
+ - test/fixtures/memberships.yml
147
+ - test/fixtures/product.rb
148
+ - test/fixtures/product_tariff.rb
149
+ - test/fixtures/product_tariffs.yml
150
+ - test/fixtures/products.yml
151
+ - test/fixtures/reading.rb
152
+ - test/fixtures/readings.yml
153
+ - test/fixtures/reference_code.rb
154
+ - test/fixtures/reference_codes.yml
155
+ - test/fixtures/reference_type.rb
156
+ - test/fixtures/reference_types.yml
157
+ - test/fixtures/restaurant.rb
158
+ - test/fixtures/restaurants.yml
159
+ - test/fixtures/restaurants_suburbs.yml
160
+ - test/fixtures/room.rb
161
+ - test/fixtures/room_assignment.rb
162
+ - test/fixtures/room_assignments.yml
163
+ - test/fixtures/room_attribute.rb
164
+ - test/fixtures/room_attribute_assignment.rb
165
+ - test/fixtures/room_attribute_assignments.yml
166
+ - test/fixtures/room_attributes.yml
167
+ - test/fixtures/rooms.yml
168
+ - test/fixtures/seat.rb
169
+ - test/fixtures/seats.yml
170
+ - test/fixtures/street.rb
171
+ - test/fixtures/streets.yml
172
+ - test/fixtures/student.rb
173
+ - test/fixtures/students.yml
174
+ - test/fixtures/suburb.rb
175
+ - test/fixtures/suburbs.yml
176
+ - test/fixtures/tariff.rb
177
+ - test/fixtures/tariffs.yml
178
+ - test/fixtures/user.rb
179
+ - test/fixtures/users.yml
180
+ - test/hash_tricks.rb
181
+ - test/plugins/pagination.rb
182
+ - test/plugins/pagination_helper.rb
183
+ - test/README_tests.txt
184
+ - test/test_associations.rb
185
+ - test/test_attribute_methods.rb
186
+ - test/test_attributes.rb
187
+ - test/test_clone.rb
188
+ - test/test_composite_arrays.rb
189
+ - test/test_create.rb
190
+ - test/test_delete.rb
191
+ - test/test_exists.rb
192
+ - test/test_find.rb
193
+ - test/test_ids.rb
194
+ - test/test_miscellaneous.rb
195
+ - test/test_pagination.rb
196
+ - test/test_polymorphic.rb
197
+ - test/test_santiago.rb
198
+ - test/test_suite.rb
199
+ - test/test_tutorial_example.rb
200
+ - test/test_update.rb
201
+ - test/test_validations.rb
202
+ - website/index.html
203
+ - website/index.txt
204
+ - website/javascripts/rounded_corners_lite.inc.js
205
+ - website/stylesheets/screen.css
206
+ - website/template.js
207
+ - website/template.rhtml
208
+ - website/version-raw.js
209
+ - website/version-raw.txt
210
+ - website/version.js
211
+ - website/version.txt
212
+ has_rdoc: true
213
+ homepage: http://github.com/globegit/composite_primary_keys
214
+ licenses: []
215
+
216
+ post_install_message:
217
+ rdoc_options: []
218
+
219
+ require_paths:
220
+ - lib
221
+ required_ruby_version: !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 3
227
+ segments:
228
+ - 0
229
+ version: "0"
230
+ required_rubygems_version: !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ hash: 23
236
+ segments:
237
+ - 1
238
+ - 3
239
+ - 6
240
+ version: 1.3.6
241
+ requirements: []
242
+
243
+ rubyforge_project:
244
+ rubygems_version: 1.3.7
245
+ signing_key:
246
+ specification_version: 3
247
+ summary: The GLOBE Program fork of the composite_primary_keys library
248
+ test_files:
249
+ - test/abstract_unit.rb
250
+ - test/connections/native_ibm_db/connection.rb
251
+ - test/connections/native_mysql/connection.rb
252
+ - test/connections/native_oracle/connection.rb
253
+ - test/connections/native_oracle_enhanced/connection.rb
254
+ - test/connections/native_postgresql/connection.rb
255
+ - test/connections/native_sqlite/connection.rb
256
+ - test/fixtures/article.rb
257
+ - test/fixtures/article_group.rb
258
+ - test/fixtures/article_groups.yml
259
+ - test/fixtures/articles.yml
260
+ - test/fixtures/comment.rb
261
+ - test/fixtures/comments.yml
262
+ - test/fixtures/db_definitions/db2-create-tables.sql
263
+ - test/fixtures/db_definitions/db2-drop-tables.sql
264
+ - test/fixtures/db_definitions/mysql.sql
265
+ - test/fixtures/db_definitions/oracle.drop.sql
266
+ - test/fixtures/db_definitions/oracle.sql
267
+ - test/fixtures/db_definitions/postgresql.sql
268
+ - test/fixtures/db_definitions/sqlite.sql
269
+ - test/fixtures/department.rb
270
+ - test/fixtures/departments.yml
271
+ - test/fixtures/dorm.rb
272
+ - test/fixtures/dorms.yml
273
+ - test/fixtures/employee.rb
274
+ - test/fixtures/employees.yml
275
+ - test/fixtures/group.rb
276
+ - test/fixtures/groups.yml
277
+ - test/fixtures/hack.rb
278
+ - test/fixtures/hacks.yml
279
+ - test/fixtures/kitchen_sink.rb
280
+ - test/fixtures/kitchen_sinks.yml
281
+ - test/fixtures/membership.rb
282
+ - test/fixtures/membership_status.rb
283
+ - test/fixtures/membership_statuses.yml
284
+ - test/fixtures/memberships.yml
285
+ - test/fixtures/product.rb
286
+ - test/fixtures/product_tariff.rb
287
+ - test/fixtures/product_tariffs.yml
288
+ - test/fixtures/products.yml
289
+ - test/fixtures/reading.rb
290
+ - test/fixtures/readings.yml
291
+ - test/fixtures/reference_code.rb
292
+ - test/fixtures/reference_codes.yml
293
+ - test/fixtures/reference_type.rb
294
+ - test/fixtures/reference_types.yml
295
+ - test/fixtures/restaurant.rb
296
+ - test/fixtures/restaurants.yml
297
+ - test/fixtures/restaurants_suburbs.yml
298
+ - test/fixtures/room.rb
299
+ - test/fixtures/room_assignment.rb
300
+ - test/fixtures/room_assignments.yml
301
+ - test/fixtures/room_attribute.rb
302
+ - test/fixtures/room_attribute_assignment.rb
303
+ - test/fixtures/room_attribute_assignments.yml
304
+ - test/fixtures/room_attributes.yml
305
+ - test/fixtures/rooms.yml
306
+ - test/fixtures/seat.rb
307
+ - test/fixtures/seats.yml
308
+ - test/fixtures/street.rb
309
+ - test/fixtures/streets.yml
310
+ - test/fixtures/student.rb
311
+ - test/fixtures/students.yml
312
+ - test/fixtures/suburb.rb
313
+ - test/fixtures/suburbs.yml
314
+ - test/fixtures/tariff.rb
315
+ - test/fixtures/tariffs.yml
316
+ - test/fixtures/user.rb
317
+ - test/fixtures/users.yml
318
+ - test/hash_tricks.rb
319
+ - test/plugins/pagination.rb
320
+ - test/plugins/pagination_helper.rb
321
+ - test/README_tests.txt
322
+ - test/test_associations.rb
323
+ - test/test_attribute_methods.rb
324
+ - test/test_attributes.rb
325
+ - test/test_clone.rb
326
+ - test/test_composite_arrays.rb
327
+ - test/test_create.rb
328
+ - test/test_delete.rb
329
+ - test/test_exists.rb
330
+ - test/test_find.rb
331
+ - test/test_ids.rb
332
+ - test/test_miscellaneous.rb
333
+ - test/test_pagination.rb
334
+ - test/test_polymorphic.rb
335
+ - test/test_santiago.rb
336
+ - test/test_suite.rb
337
+ - test/test_tutorial_example.rb
338
+ - test/test_update.rb
339
+ - test/test_validations.rb