composite_primary_keys 11.0.0.rc2 → 11.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/History.rdoc +774 -763
  3. data/Rakefile +37 -37
  4. data/lib/composite_primary_keys.rb +120 -122
  5. data/lib/composite_primary_keys/arel/sqlserver.rb +37 -37
  6. data/lib/composite_primary_keys/arel/to_sql.rb +32 -32
  7. data/lib/composite_primary_keys/associations/association.rb +23 -23
  8. data/lib/composite_primary_keys/associations/association_scope.rb +68 -68
  9. data/lib/composite_primary_keys/associations/collection_association.rb +31 -31
  10. data/lib/composite_primary_keys/associations/foreign_association.rb +15 -15
  11. data/lib/composite_primary_keys/associations/has_many_association.rb +34 -34
  12. data/lib/composite_primary_keys/associations/join_dependency.rb +102 -102
  13. data/lib/composite_primary_keys/associations/preloader/association.rb +117 -117
  14. data/lib/composite_primary_keys/attribute_methods.rb +9 -9
  15. data/lib/composite_primary_keys/attribute_methods/read.rb +27 -27
  16. data/lib/composite_primary_keys/attribute_methods/write.rb +44 -44
  17. data/lib/composite_primary_keys/autosave_association.rb +32 -32
  18. data/lib/composite_primary_keys/base.rb +130 -130
  19. data/lib/composite_primary_keys/composite_arrays.rb +51 -51
  20. data/lib/composite_primary_keys/composite_predicates.rb +69 -69
  21. data/lib/composite_primary_keys/composite_relation.rb +29 -29
  22. data/lib/composite_primary_keys/connection_adapters/abstract_adapter.rb +10 -10
  23. data/lib/composite_primary_keys/connection_adapters/abstract_mysql_adapter.rb +29 -29
  24. data/lib/composite_primary_keys/connection_adapters/postgresql/database_statements.rb +26 -26
  25. data/lib/composite_primary_keys/connection_adapters/sqlite3_adapter.rb +22 -22
  26. data/lib/composite_primary_keys/core.rb +54 -54
  27. data/lib/composite_primary_keys/counter_cache.rb +28 -28
  28. data/lib/composite_primary_keys/fixtures.rb +26 -26
  29. data/lib/composite_primary_keys/persistence.rb +120 -112
  30. data/lib/composite_primary_keys/reflection.rb +20 -20
  31. data/lib/composite_primary_keys/relation.rb +88 -88
  32. data/lib/composite_primary_keys/relation/calculations.rb +79 -79
  33. data/lib/composite_primary_keys/relation/finder_methods.rb +229 -229
  34. data/lib/composite_primary_keys/relation/predicate_builder/association_query_value.rb +20 -20
  35. data/lib/composite_primary_keys/relation/query_methods.rb +42 -42
  36. data/lib/composite_primary_keys/relation/where_clause.rb +24 -24
  37. data/lib/composite_primary_keys/sanitization.rb +42 -42
  38. data/lib/composite_primary_keys/validations/uniqueness.rb +32 -32
  39. data/lib/composite_primary_keys/version.rb +8 -8
  40. data/scripts/console.rb +48 -48
  41. data/scripts/txt2html +76 -76
  42. data/scripts/txt2js +65 -65
  43. data/tasks/databases/mysql.rake +40 -40
  44. data/tasks/databases/oracle.rake +41 -41
  45. data/tasks/databases/postgresql.rake +38 -38
  46. data/tasks/databases/sqlite.rake +25 -25
  47. data/tasks/databases/sqlserver.rake +43 -43
  48. data/tasks/website.rake +18 -18
  49. data/test/README_tests.rdoc +56 -56
  50. data/test/abstract_unit.rb +120 -120
  51. data/test/connections/connection_spec.rb +27 -27
  52. data/test/connections/databases.ci.yml +16 -16
  53. data/test/connections/databases.example.yml +40 -40
  54. data/test/connections/databases.yml +40 -40
  55. data/test/db_test.rb +52 -52
  56. data/test/fixtures/article.rb +6 -6
  57. data/test/fixtures/articles.yml +6 -6
  58. data/test/fixtures/capitol.rb +3 -3
  59. data/test/fixtures/capitols.yml +16 -16
  60. data/test/fixtures/comment.rb +7 -7
  61. data/test/fixtures/comments.yml +15 -15
  62. data/test/fixtures/db_definitions/db2-create-tables.sql +126 -126
  63. data/test/fixtures/db_definitions/db2-drop-tables.sql +18 -18
  64. data/test/fixtures/db_definitions/mysql.sql +226 -226
  65. data/test/fixtures/db_definitions/oracle.drop.sql +49 -49
  66. data/test/fixtures/db_definitions/oracle.sql +246 -246
  67. data/test/fixtures/db_definitions/postgresql.sql +229 -229
  68. data/test/fixtures/db_definitions/sqlite.sql +214 -214
  69. data/test/fixtures/db_definitions/sqlserver.sql +211 -211
  70. data/test/fixtures/department.rb +5 -5
  71. data/test/fixtures/departments.yml +15 -15
  72. data/test/fixtures/dorm.rb +2 -2
  73. data/test/fixtures/dorms.yml +4 -4
  74. data/test/fixtures/employee.rb +10 -10
  75. data/test/fixtures/employees.yml +18 -18
  76. data/test/fixtures/group.rb +2 -2
  77. data/test/fixtures/groups.yml +6 -6
  78. data/test/fixtures/hack.rb +4 -4
  79. data/test/fixtures/hacks.yml +2 -2
  80. data/test/fixtures/membership.rb +6 -6
  81. data/test/fixtures/membership_status.rb +2 -2
  82. data/test/fixtures/membership_statuses.yml +16 -16
  83. data/test/fixtures/memberships.yml +10 -10
  84. data/test/fixtures/pk_called_id.rb +5 -5
  85. data/test/fixtures/pk_called_ids.yml +11 -11
  86. data/test/fixtures/product.rb +9 -9
  87. data/test/fixtures/product_tariff.rb +5 -5
  88. data/test/fixtures/product_tariffs.yml +14 -14
  89. data/test/fixtures/products.yml +11 -11
  90. data/test/fixtures/reading.rb +4 -4
  91. data/test/fixtures/readings.yml +10 -10
  92. data/test/fixtures/reference_code.rb +7 -7
  93. data/test/fixtures/reference_code_using_composite_key_alias.rb +8 -8
  94. data/test/fixtures/reference_code_using_simple_key_alias.rb +8 -8
  95. data/test/fixtures/reference_codes.yml +28 -28
  96. data/test/fixtures/reference_type.rb +12 -12
  97. data/test/fixtures/reference_types.yml +9 -9
  98. data/test/fixtures/restaurant.rb +9 -9
  99. data/test/fixtures/restaurants.yml +14 -14
  100. data/test/fixtures/restaurants_suburb.rb +2 -2
  101. data/test/fixtures/restaurants_suburbs.yml +10 -10
  102. data/test/fixtures/room.rb +11 -11
  103. data/test/fixtures/room_assignment.rb +13 -13
  104. data/test/fixtures/room_assignments.yml +24 -24
  105. data/test/fixtures/room_attribute.rb +2 -2
  106. data/test/fixtures/room_attribute_assignment.rb +4 -4
  107. data/test/fixtures/room_attribute_assignments.yml +4 -4
  108. data/test/fixtures/room_attributes.yml +2 -2
  109. data/test/fixtures/rooms.yml +12 -12
  110. data/test/fixtures/salary.rb +5 -5
  111. data/test/fixtures/seat.rb +5 -5
  112. data/test/fixtures/seats.yml +8 -8
  113. data/test/fixtures/street.rb +2 -2
  114. data/test/fixtures/streets.yml +16 -16
  115. data/test/fixtures/student.rb +3 -3
  116. data/test/fixtures/students.yml +15 -15
  117. data/test/fixtures/suburb.rb +5 -5
  118. data/test/fixtures/suburbs.yml +14 -14
  119. data/test/fixtures/tariff.rb +5 -5
  120. data/test/fixtures/tariffs.yml +14 -14
  121. data/test/fixtures/topic.rb +5 -5
  122. data/test/fixtures/topic_source.rb +6 -6
  123. data/test/fixtures/topic_sources.yml +3 -3
  124. data/test/fixtures/topics.yml +8 -8
  125. data/test/fixtures/user.rb +10 -10
  126. data/test/fixtures/users.yml +10 -10
  127. data/test/plugins/pagination.rb +405 -405
  128. data/test/plugins/pagination_helper.rb +135 -135
  129. data/test/setup.rb +50 -50
  130. data/test/test_aliases.rb +18 -18
  131. data/test/test_associations.rb +345 -345
  132. data/test/test_attribute_methods.rb +63 -63
  133. data/test/test_attributes.rb +60 -60
  134. data/test/test_calculations.rb +42 -42
  135. data/test/test_callbacks.rb +99 -99
  136. data/test/test_composite_arrays.rb +24 -24
  137. data/test/test_counter_cache.rb +30 -30
  138. data/test/test_create.rb +164 -164
  139. data/test/test_delete.rb +167 -167
  140. data/test/test_dumpable.rb +15 -15
  141. data/test/test_dup.rb +37 -37
  142. data/test/test_enum.rb +21 -21
  143. data/test/test_equal.rb +26 -26
  144. data/test/test_exists.rb +39 -39
  145. data/test/test_find.rb +137 -137
  146. data/test/test_habtm.rb +141 -141
  147. data/test/test_ids.rb +113 -113
  148. data/test/test_miscellaneous.rb +32 -32
  149. data/test/test_nested_attributes.rb +124 -124
  150. data/test/test_optimistic.rb +18 -18
  151. data/test/test_pagination.rb +35 -35
  152. data/test/test_polymorphic.rb +27 -27
  153. data/test/test_predicates.rb +59 -59
  154. data/test/test_preload.rb +94 -94
  155. data/test/test_santiago.rb +23 -23
  156. data/test/test_suite.rb +34 -34
  157. data/test/test_touch.rb +23 -23
  158. data/test/test_tutorial_example.rb +25 -25
  159. data/test/test_update.rb +76 -76
  160. data/test/test_validations.rb +13 -13
  161. metadata +32 -33
  162. data/lib/composite_primary_keys/locking/optimistic.rb +0 -56
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e58d4db5b713a54b84bae9bf3cd54b70bc80781545a10a63690f1dcf26f4ce20
4
- data.tar.gz: 1d4895ced37cb15df9db2befc95bda27d23351d5741cbb7c113e777120e1a42f
3
+ metadata.gz: '09c1654a22421c134dada5504263aa6bcb99f358a47e96476917027f1d692818'
4
+ data.tar.gz: 31ce78f246ace36159863eb16215311b3ad5dd8c70a10825ae9413b6062770b7
5
5
  SHA512:
6
- metadata.gz: 95cdfe614c0ff2e1c5aa5101cc27107667cebf2b3cc7918fc8e58166e3f3e38981a88f69252be742625489e2f17cad62cbdee8a529b7377c539ab80843c35df0
7
- data.tar.gz: 39a94c4bf5685f4408a15a3fc031c99b7ab74fc92e44afd20c9ce4d5d14e83ff4e53810e1dddcceb17cf50b0643f9944304b825c02fcbaea54c2d6a6429dc878
6
+ metadata.gz: 4a1bb8d41dad76559c1034e7f9957bf2c3583fb8ab6a67856f05f3e34a1f535463332ce7fac0b922c0ebeaa4f82f59ffea188c6306eebb9535614ecee3a2123b
7
+ data.tar.gz: e924ffffedde42aa9220213fd3b0cb1253d6aff7c6fd4d84a5240356133ffaf89ba0d777e72294fb97bbc90cc1f4f8f6756420bba879fbe1f3cec9e4babd9220
@@ -1,763 +1,774 @@
1
- == 11.0.0.rc2 (2018-02-25)
2
-
3
- * Fix mysql deletion failure (Charlie Savage)
4
- * Clean test run for postgresql, mysql and sqlite3 (Charlie Savage)
5
-
6
- == 11.0.0.rc1 (2018-02-25)
7
-
8
- * Update to ActiveRecord 5.2.rc1 (Charlie Savage)
9
- * Fix uniquness check (Charlie Savage)
10
-
11
- == 11.0.0.beta4 (2018-01-08)
12
-
13
- * Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
14
-
15
- == 11.0.0.beta3 (2018-01-07)
16
-
17
- * Fix typo in Readme.doc (Lopez Lucien)
18
- * Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
19
-
20
- == 11.0.0.beta2 (2017-12-10)
21
-
22
- * Minor updates for ActiveRecord 5.2.beta2 support (Charlie Savage)
23
-
24
- == 11.0.0.beta1 (2017-12-03)
25
-
26
- * ActiveRecord 5.2.beta2 support (Charlie Savage)
27
-
28
- == 10.0.3 (2018-02-25)
29
-
30
- * Require a minimum of activerecord version 5.1.5 (Tom Hughes)
31
-
32
- == 10.0.2 (2017-12-02)
33
-
34
- * Fix frozen string mutation for mysql (Sergey Sein)
35
- * Fix autosave for belongs_to associations (Fabian Mersch)
36
- * Require a minimum of activerecord version 5.1.4 (Charlie Savage)
37
-
38
- == 10.0.1 (2017-10-08)
39
-
40
- * Fixed an error that happened when a table attribute had the same name as the table (Taishi Kasuga)
41
-
42
- == 10.0.0 (2017-10-08)
43
-
44
- * Support ActiveRecord 5.1.x (Pinak Thakkar, Jordan Owens)
45
- * Fix Paper Trail compatibility (Sean Linsley)
46
- * Fix typo in Readme (Mike Gunderloy)
47
- * Improved sql server support (Artyom Nikolaev)
48
-
49
- == 9.0.8 (2017-10-11)
50
-
51
- * Fix Paper Trail compatibility (Sean Linsley)
52
-
53
- == 9.0.7 (2017-05-22)
54
-
55
- * Update sqlite3 to support deletes and updates (Charlie Savage)
56
- * Specify version for sql server gem so it works with Rails 5.0 (Charlie Savage)
57
- * Use `datetime` datatype to address Invalid default value for updated_at (Yasuo Honda)
58
- * Fix ORA-00900 error when it attempts to execute blank statement (pustomytnyk)
59
- * Override ActiveRecord::Associations::CollectionAssociation#ids_reader (pustomytnyk)
60
- * Only define #primary_keys if #primary_keys=(value) is called (Charlie Savage)
61
- * Change `timestamp` to `datetime` for MySQL as ActiveRecord timestamps type does (Oriol Collel)
62
- * Fix incorrect case statement to get PK for SQLServer (Oriol Collel)
63
- * Fixes random failures in test_preload_of_polymorphic_association (Boris Peterbarg)
64
-
65
- == 9.0.6 (2017-01-08)
66
-
67
- * Uncomment tests (Sammy Larbi)
68
- * Update readme (Charlie Savage)
69
-
70
- == 9.0.5 (2017-01-02)
71
-
72
- * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
73
- * Simplify database setup for tests (Charlie Savage)
74
- * Revamp gem management (Charlie Savage)
75
- * Add support for Relation#update_all when using joins (Charlie Savage)
76
- * Add erb support to test database.yml files (Charlie Savage)
77
- * Sqlserver fixes for ordering (Charlie Savage)
78
- * Sqlserver refresh (Charlie Savage)
79
- * Oracle refresh (Charlie Savage)
80
- * Fix delete_all for MySql (Charlie Savage)
81
- * Added test cases for preloading associations with and without conditions (Martin Körner)
82
- * Revamp single association handling to correctly setup SQL binds (Charlie Savage)
83
- * Remove references to ActiveModel - #352 (Charlie Savage)
84
- * Fixes for #232, #359, #367 and #371 (Charlie Savage)
85
-
86
- == 9.0.4 (2016-08-17)
87
- * Do not set associations to readonly. See https://github.com/rails/rails/issues/24093 (Charlie Savage)
88
-
89
- == 9.0.2 (2016-08-10)
90
- * Fix delete_all when used with a join (Charlie Savage)
91
-
92
- == 9.0.1 (2016-07-27)
93
- * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
94
-
95
- == 9.0.0 (2016-07-06)
96
- * Support connection_specification_name in rails5.0.0.rc1 (pocari)
97
-
98
- == 9.0.0.beta1 (2016-04-16)
99
- * Rails 5 beta support (Sammy Larbi)
100
-
101
- == 8.1.5 (2017-01-01)
102
-
103
- * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
104
-
105
- == 8.1.4 (2016-07-27)
106
-
107
- * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
108
- * Fix find in batches (apurvis)
109
-
110
- == 8.1.3 (2016-04-16)
111
-
112
- * Make CPK work for Arel::Attributes::Attribute (Rick Xing)
113
- * Change autosave_association.rb so that association autosave can work (Rick Xing)
114
- * Fix exception when saving "other_ids=" with a has_many :through association where the source
115
- association is polymorphic (Tye Shavik)
116
- * Fix Arel::Nodes::In where left side is not a column (Tye Shavik)
117
-
118
- == 8.1.2 (2015-12-13)
119
-
120
- * Fix failing tests
121
-
122
- == 8.1.1 (2015-08-04)
123
-
124
- * Updates to make Travis CI green (Laust Rud Jacobsen)
125
- * Travis CI support (Laust Rud Jacobsen)
126
- * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
127
- for non-peristed objects (Charlie Savage)
128
- * Update support for Uniquenes validations (Avi Leavitt)
129
- * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
130
- * Aligned the establish connection paramater handling to be similar to latest version of rails (Harish Shetty)
131
-
132
-
133
- == 8.1.0 (2014-03-23)
134
-
135
- * ActiveRecord 4.2.1 support (Charlie Savage)
136
- * Change parsing of composite ids to fix #290 (Charlie Savage)
137
- * Add sqlserver setting for test suite (Joachim Herb)
138
- * Fix sqlserver adapater, isse #224 (Joachim Herb)
139
- * Update readme file to include version 8.* information (David Silva)
140
-
141
- == 8.0.1 (2014-01-24)
142
-
143
- * Support optimistic lock and lock_version added to existing fixtures (Kirika)
144
-
145
- == 8.0.0 (2014-01-10)
146
-
147
- * ActiveRecord 4.2.* support (Sammy Larbi)
148
-
149
- == 7.0.14 (2015-08-04)
150
-
151
- * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
152
- for non-peristed objects (Charlie Savage)
153
- * Update support for Uniquenes validations (Avi Leavitt)
154
- * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
155
-
156
- == 7.0.13 (2015-01-24)
157
-
158
- * Support optimistic lock and lock_version added to existing fixtures (Kirika)
159
- * README change to convey finding available versions (Aaron Bartell)
160
- * Fixes indentation in product_tariffs (Zaldabus)
161
-
162
- == 7.0.12 (2014-11-09)
163
-
164
- * ActiveRecord 4.1.7 support (Tom Hughes)
165
- * Extract CPK methods to its own module and extending instead of opening the singleton class
166
- which fixes Marshal#dump (Nicolás Hock Isaza)
167
-
168
- == 7.0.11 (2014-10-10)
169
-
170
- * ActiveRecord 4.1.6 support (Tom Hughes, Charlie Savage)
171
- * Verify MariaDB support and update docs (Isi Robayna)
172
- * Postgresql binary column support (Piotr Gębala)
173
- * Fix deleting of records from collection association (akeuk and Charlie Savage)
174
- * Fix invalid include (shiro16)
175
- * Improve tests (Yann Marquet)
176
-
177
- == 7.0.10 (2014-08-07)
178
-
179
- * Update attribute dirty methods to allow attribute *_was
180
- fields to be calculated correctly for enum fields (Zachary Salzbank)
181
- * Update read/write methods to match latest version of ActiveRecord (Charlie Savage)
182
-
183
- == 7.0.9 (2014-08-03)
184
-
185
- * Second attemp at fixing instantiation of has_many records via :includes that use composite keys - this
186
- time take into account no target records (Charlie Savage)
187
-
188
- == 7.0.8 (2014-08-03)
189
-
190
- * Fix instantiation of has_many records via :includes that use composite keys (Charlie Savage)
191
-
192
- == 7.0.7 (2014-07-29)
193
-
194
- * Add back support for calling find like this (Sammy Larbi):
195
-
196
- Membership.find('1,1')
197
-
198
- == 7.0.7 (2014-07-29)
199
-
200
- * Add back support for calling find like this (Sammy Larbi):
201
-
202
- Membership.find('1,1')
203
-
204
- == 7.0.6 (2014-07-22)
205
-
206
- * Change the way we override ActiveRecord::Persistence to call sequence of included modules such
207
- as callbacks (Charlie Savage)
208
-
209
- == 7.0.5 (2014-07-21)
210
-
211
- * Remove overriden Postgresql adapter code (Charlie Savage)
212
-
213
- == 7.0.4 (2014-07-09)
214
-
215
- * Fix overriding of Relation#where_values_hash (Pavel)
216
- * Add travis CI support (Pavel)
217
- * Run AR's original relation_for_destroy when primary key is not composite (Pavel)
218
-
219
- == 7.0.3 (2014-07-04)
220
-
221
- * Fixes for Rails 4.1.2+ compatibility (Tom Hughes)
222
- * Nested attribute fix (Sammy Larb)
223
- * Test fixes (Sammy Larb)
224
- * Fixes instantiating join records (Charlie Savage)
225
-
226
- == 7.0.2 (2014-06-01)
227
-
228
- * Fix id_was when one of the column names is called id (Adrian Hooper)
229
- * Fix queries that use ActiveRecord objects in the where clause (Adrian Hooper)
230
-
231
- == 7.0.1 (2014-05-27)
232
-
233
- * Fix setting of timestamps automatically by Rails (Charlie Savage)
234
-
235
- == 7.0.0 (2014-05-26)
236
-
237
- * Active Record 4.1 support! (Charlie Savage, Tom Hughes, Simon South)
238
-
239
- Note there is one big api change. Previously, CPK supported both of these calls:
240
-
241
- Membership.find(1,1)
242
- Membership.find([1,1])
243
-
244
- The first one no longer works. It was removed because it made the internal code simpler
245
- and makes the intention of the code clearer (especially when finding multiple records).
246
- If this change causes too much pain then please submit a ticket on Github.
247
-
248
- == 6.0.08 (2015-01-24)
249
-
250
- * Fix habtm association #delete_records (Uros Jurglic)
251
- * Support optimistic locking (Toshio Maki)
252
- * Remove singleton classes on CPK relations (Nicolás Hock Isaza)
253
-
254
- == 6.0.7 (2014-10-06)
255
-
256
- * Support Rails 4.0.6 (Tom Hughes)
257
-
258
- == 6.0.6 (2014-05-26)
259
-
260
- * Don't refer to deprecated set_primary_keys in README (Henare Degan)
261
- * Fix gemspec dependency (Charlie Savage)
262
-
263
- == 6.0.5 (2014-05-20)
264
-
265
- * Removed debugging output (Dan Draper)
266
- * Fixes to ensure that has_one associations work correctly (Dan Draper)
267
- * Fix postgres db migration failure since no result is returned in some cases (seashell-qd)
268
- * Fix exception raised in method "id=" (seashell.qd@hotmail.com)
269
-
270
- == 6.0.3 (2014-04-28)
271
-
272
- * Fixes setting of primary key when CPK is not used for a given model (see #191)
273
-
274
- == 6.0.2 (2014-04-28)
275
-
276
- * Fixes relating to ActiveRecord 4.0.x compatibility (Dan Draper)
277
- * Ensure that primary key is set on instance when creating new records (Dan Draper)
278
-
279
- == 6.0.1 (2013-11-29)
280
-
281
- * Handle records == :all in HasManyAssociation#delete_records. Without this calling
282
- delete or clear on a has_many assocation can result in an exception (Tom Hughes)
283
- * Don't include cpk key as an attributes - fixes json serialization - #168 (Charlie Savage)
284
- * Fix tests running on ruby 1.9.3 (Charlie Savage)
285
- * Update nested_attributes to work with activerecord 4.0.x (Nick DeLuca)
286
-
287
- == 6.0.0 (2013-08-04)
288
- * ActiveRecord 4.0 support (Sammy Larbi)
289
-
290
- == 5.0.13 2013-04-27
291
- * Batch query improvements (Jordan Byron)
292
- * Support nested attributes (aiasfina and Charlie Savage)
293
-
294
- == 5.0.12 2013-01-21
295
- * Fix HasManyAssociation foreign_key_present? method to work with non CPK assocations (Charlie Savage)
296
-
297
- == 5.0.11 2013-01-19
298
- * Patch HasManyAssociation foreign_key_present? method to work with array of keys (tbeauvais)
299
- * Patch reverse_sql_order method to break apart CPKs (tbeauvais)
300
- * Add test and fix for nested_attributes update (Dinshaw Gobhai)
301
- * Add test and fix for to_sym exception (Dinshaw Gobhai)
302
- * Add missing timestamp columns for mysql test_touch.rb (Dinshaw Gobhai)
303
-
304
- == 5.0.10 2012-11-21
305
- * ActiveRecord 3.2.9 compatability (Tom Hughes, Chris Heald, Jack Tang)
306
- * Add support for find_in_batches (Charlie Savage)
307
- * Add support for touch method (Macario Ortega)
308
- * Remove symbolized representation of primary keys to be consistent with ActiveRecord (Tiago Cardoso)
309
- * Update destroy method to use hash of primary keys over an array. This allows the proper SQL
310
- (using IS NULL) to be generated when one of the primary key attributes is nil (Scott Hunter).
311
-
312
- == 5.0.9 2012-09-29
313
- * Enable tests for MS SQL Servder (Enderson Maia)
314
- * Update ActiveRecord::Base#initialize_dup override in line with ActiveRecord::Base 3.2.5+ (Lucas Maxwell)
315
- * Require postgresql_adapter.rb also when using activerecord-postgis-adapter (Torsti Schulz)
316
- * Make cpk_in_predicate build a simple IN when possible (Tom Hughes)
317
- * Fixed problem loading jdbcpostgresql adapter (Troy Caldwell)
318
- * Add support for counter cache (Charlie Savage)
319
- * Fix recreating postgresql database (Charlie Savage)
320
- * Update dependency to ActiveRecord 3.2.8 or higher (Charlie Savage)
321
-
322
- == 5.0.8 2012-07-01
323
- * Enabled tests for MS SQL Server (Enderson Maia)
324
- * Update establish_connection to work with Rails 3.2.6 (Ivan Schneider)
325
- * Fix typos in rake tasks names in README_tests.rdoc (Ivan Schneider)
326
- * Fix problem with deleting non-CPK in Rails 3.2.5 (Sammy Larbi)
327
- * Fixes relationship deletion for HABTM in Rails when it passes :all flag instead of
328
- an array of IDs. Also adds new tests and test fixtures (Sammy Larbi)
329
- * Change mysql db creation to execute one statement each time, since in some setups
330
- it will not run multiple statements (Sammy Larbi)
331
- * Fix multiple assignments to same column due to duplicate keys in @changed_attributes.
332
- Includes test fixes (Jan Vlnas)
333
-
334
- == 5.0.7 2012-06-03
335
- * Fixed bug where validates_uniqueness failed for 3 or more primary keys. (Charlie Savage)
336
-
337
- == 5.0.6 2012-05-20
338
- * Fixed bug where setting a belongs_to association to nil would raise an error (Tyler Rick)
339
- * Remove special case code for 1 column selects and just choose to use Rails version of the
340
- method unless we need ours to deal with an Array (Sammy Larbi)
341
- * Change count tests to actually check for distinct, fix resulting error it
342
- demonstrated in the code (Sammy Larbi)
343
- * Specify mysql2 driver by default (Charlie Savage)
344
- * Update sqlite tests to run on Windows (Charlie Savage)
345
-
346
- == 5.0.5 2012-05-05
347
- * Count without slower subquery in cases where that is possible (Sammy Larbi)
348
- * When you call association.build for a has_many association that uses a
349
- composite foreign key, the newly built child record should have the values
350
- in its belongs_to foreign_key populated from its owner's values (Tyler Rick).
351
- * Removed test_has_many_with_primary_key method that wasn't being used because
352
- another method by the same name was defined below it (Tyler Rick).
353
- * Fixed a bug that was causing object.changes to raise TypeError (Tyler Rick)
354
- * Fix error when running rake mysql:rebuild_databases (Tyler Rick)
355
- * to_param should join with comma instead of minus sign (Tsutomu Kuroda)
356
- * Fix the "Factories" section of README.rdoc (Tsutomu Kuroda)
357
-
358
- == 5.0.4 2012-03-23
359
- * Update ActiveRecord::AttributeMethods#Write for Rails 3.2.2 (Travis Warlick)
360
-
361
- == 5.0.4 2012-03-23
362
- * Yanked
363
-
364
- == 5.0.2 2012-03-16
365
- * Use .rdoc extension on RDoc files (Elia Schito)
366
- * Update documentation to use self.primary_keys instead of set_primary_keys (Miguel Fonseca)
367
- * Added tests for comparing composite ids (Jim Jones)
368
- * Updating the README for clarity (Brett Fishman)
369
- * Fix method signature mismatch with active_record (Miguel Fonseca)
370
- * Fix ref in README (Elia Schito)
371
- * Add test for habm create (Charlie Savage)
372
-
373
- == 5.0.1 2012-02-13
374
- * Fix deprecation warning that was exactly backwards (Tom Hughes)
375
- * Fix primary_keys handling in models that inherit from other models
376
- but don't redefine their primary_key. Problem was the inherited
377
- models didn't correctly reference their parents primary_keys (Charlie Savage)
378
-
379
- == 5.0.0 2012-02-12
380
- * Fix tests so they pass on MySql (Charlie Savage)
381
- * Fix calculations to work with duplicate column names (cleesmith)
382
- * Switch rake tasks for Postgresql and MySql to use ActiveRecord API for
383
- creating and dropping databases (Charlie Savage)
384
- * Follow AR 3.2 lead and introduce self.primary_keys and deprecate set_primary_keys (Charlie Savage)
385
- * Switch from set_primary_key to self.primary_key= to avoid Rails deprecation (Charlie Savage)
386
- * Fix issue when using multiple database connections (David Doan)
387
- * Fix homepage in gemspec and remove email address (Charlie Savage)
388
- * Add support for string keys to exists? (Jan Vlnas)
389
- * Fix typo (Jason Karns)
390
-
391
- == 5.0.0.rc1 2012-01-16
392
- * ActiveRecord 3.2 support
393
-
394
- == 4.1.2 2012-01-12
395
- * Helper to allow the same tests to be used for both Oracle and other DBs
396
- by replacing quoted identifiers with all-caps equivalents on Oracle (Rhett Sutphin)
397
- * Update Oracle tests (Rhett Sutphin)
398
-
399
- == 4.1.1 2011-08-31
400
- * Support for AR 3.1.1
401
- * Make polymorphic belongs_to work in rails 3.1.1 (Tom Hughes)
402
- * Eliminate relative paths from the test suite (Rhett Sutphin)
403
- * Minor improvements to the CPK test runner w/o relative path changes (Rhett Sutphin)
404
- * Remove stray puts (Rhett Sutphin)
405
- * Allow AR logs to go to a file when running tests. This commit allows you to
406
- specify a file to use instead via the CPK_LOGFILE environment variable.
407
- STDOUT is still the default. (Rhett Sutphin)
408
- * Use ADAPTER env variable to select database to test. For example:
409
-
410
- ADAPTER=sqlite3 ruby test/test_suite.rb
411
- (Rhett Sutphin)
412
-
413
- * Eliminate constant redef warnings during test runs (Rhett Sutphin)
414
- * Add missing fixture declarations (Rhett Sutphin)
415
- * Standardize on integer PKs in polymorphic fixtures (Rhett Sutphin)
416
- * Fix tiny file name typos (Buck)
417
-
418
- == 4.0.0 2011-08-31
419
- * Support for AR 3.1
420
-
421
- == 4.0.0.beta9 2011-08-22
422
- * Fix eager-loading in AR 3.1.rc6.
423
-
424
- == 4.0.0.beta9 2011-082-22
425
- * Fix eager-loading in AR 3.1.rc6.
426
-
427
- == 4.0.0.beta8 2011-082-22
428
- * Sqlite 3 fixes (Jan Vlnas)
429
- * Fixes for to_key method (Jan Vlnas)
430
- * Compatible with Rails 3.1 RC6 (Ari Epstein, Travis Warlick)
431
-
432
- == 4.0.0.beta7 2011-07-26
433
- * Compatible with Rails 3.1 RC5 (TycoooN)
434
- * Do not use Arel::Nodes::Or to combine predicates because it creates a
435
- deeply nested stack that blows up.
436
-
437
- == 4.0.0.beta4 2011-07-22
438
- * Compatible with Rails 3.1 stable branch. No longer works with RC4 (Charlie Savage)
439
- * Do not require loading of postgresql gem unless needed (Charlie Savage)
440
-
441
- == 4.0.0.beta3 2011-07-08
442
- * Fix the ability to update the values of a primary key (Travis Warlick)
443
- * Support port and host configurations for postgres rake tasks (Travis Warlick)
444
-
445
- == 4.0.0.beta2 2011-06-21
446
- * ActiveRecord 3.1 RC4 compatibility.
447
- * Fix instantiation of CPK models with included associations
448
-
449
- == 4.0.0.beta1 2011-06-09
450
- * ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
451
- all the changes in AR 3.1 versus 3.0.
452
-
453
- == 3.1.11 2012-05-20
454
- Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
455
-
456
- == 3.1.10 2011-07-08
457
- * Bugfix for belongs_to with includes (John Ash)
458
- * Improved tests for calling clear on a habtm association, which involved (David Rueck)
459
- * Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
460
- * Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
461
-
462
-
463
- == 3.1.9 2011-06-04
464
- * Improve HABTM association tests (David Rueck)
465
- * Remove deprecated Rake tasks (Charlie Savage)
466
-
467
- == 3.1.8 2011-05-26
468
- * Fix calling clear on a HABTM associate (David Rueck)
469
-
470
- == 3.1.7 2011-05-26
471
- * Support regular AR models having one or many composite models (Jacques Fuentes)
472
- * Minor test cleanup (Charlie Savage)
473
- * Make version requirements more explicit (Charlie Savage)
474
- * Remove Arel extensions used for calculations (Charlie Savage)
475
- * Fix test that included wrong error constant
476
-
477
- == 3.1.6 2011-04-03
478
- * Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
479
- base models (Jacques Fuentes)
480
- * Fix uniqueness check (David Rueck)
481
- * Fix write issue when one of they keys in a composite key is
482
- called id (Tom Hughes)
483
-
484
-
485
- == 3.1.5 2011-03-24
486
- * Fix simple calculation methods (Charlie Savage)
487
- * Fix instantiation of cpk records via associations (Charlie Savage)
488
- * Fix Relation#delete (Charlie Savage)
489
- * Fix Relation#destroy (Charlie Savage)
490
-
491
-
492
- == 3.1.4 2011-03-06
493
- * Support ActiveRecord 3.0.5 - interpolate_sql was removed and
494
- replaced by interpolate_and_sanitize_sql (Charlie Savage)
495
- * Fix persistence methods to support destroy callbacks (Charlie Savage)
496
- * Support rake 0.9.0 beta (Charlie Savage)
497
-
498
-
499
- == 3.1.2 2011-02-26
500
- * Add back in support for find('3,3') which makes it possible to
501
- do find(params[id]). This implementation is simpler than earlier version
502
- improving code readability.
503
- * Support for finding multiple records either via find([1,2], [3,4])
504
- * Remove to_composite_ids method which is no longer needed
505
-
506
-
507
- == 3.1.1 2011-02-07
508
- * Implement id_before_type_cast (Jason Lewis)
509
- * Add in tests for Model.includes(:other_model)
510
- * Fix object comparison with nil in composite primary keys (StackNG)
511
- * Make it easier to run tests with different database adapters (Toby Cabot)
512
- * Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
513
-
514
-
515
- == 3.1.0 2010-12-17
516
- * Add back in rake test tasks (Toby Cabot)
517
- * Add support for multiple string composite keys (wouter)
518
- * Remove support for find('3,3'). Instead use find([3,3])
519
-
520
-
521
- == 3.0.9 2010-12-04
522
- * Fix up support for composite key fixtures.
523
-
524
-
525
- == 3.0.8 2010-12-04
526
- * Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
527
- * Fix to support child classes of composite primary key models
528
-
529
-
530
- == 3.0.7 2010-11-29
531
- * Fix has and belongs to many associations implementation.
532
-
533
-
534
- == 3.0.6 2010-11-29 (yanked)
535
- * Add full support for has and belongs to many associations.
536
-
537
-
538
- == 3.0.5 2010-11-28 (yanked)
539
- * Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
540
- * Apply patch from Toby Cabot to fix up various sqlite3 issues
541
- * Add partial support for has and belongs to many associations. Currently a cpk model
542
- can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
543
- not too hard to add, but one step at a time...)
544
-
545
-
546
- == 3.0.4 2010-11-21
547
- * Support deleting records when dependent is set to :delete_all
548
- * Switch the method #id to return a CompositeKeys instance (thus going back to how
549
- this was done in previous CPK versions)
550
-
551
-
552
- == 3.0.3 2010-11-19
553
- * Support ActiveRecord 3.0.3 and Arel 2+
554
- * Require ActiveRecord 3.0.3 as minimum dependency
555
- * Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
556
- * Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
557
-
558
-
559
- == 3.0.1.b3 2010-11-07
560
-
561
- * Fix bug in joining to :has_one association
562
- * Added support for Model.find(:last)
563
- * Added support for finding via associations with
564
- limited ids. For example find(:include => :foo, :limit => 1)
565
-
566
- == 3.0.1.b2 2010-11-06
567
-
568
- * Port to Rails 3.0 and Ruby 1.9.2
569
-
570
- * Backwards compatability issues
571
- + You can no longer define a composite primary key with a single field. If you
572
- try, your model will just default to a standard active record model. Removing
573
- this corner case simplified the code.
574
- + Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
575
- method on composite ids, such as [1,2], returns "[1, 2]". This in turns
576
- reduces the amount of core Rails code that needs to be overridden.
577
- + Setting attribute values by string is no longer supported. For example, this
578
- no longer works:
579
- my_record[[:main_id, :secondary_id]] = '1,2'
580
- Instead, do this:
581
- my_record[[:main_id, :secondary_id]] = [1,2]
582
- Once again, this was done to reduce the amount of overridden Rails code
583
- + At the moment, complex finds with nested arrays do not work. For example
584
- find([[1,2], [3,4]))
585
- + Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
586
- in the TestAssociations#test_count test returns an error. This is because Rails 3.0
587
- uses Arel to perform such calculations, and its not obvious (at least to me) how to
588
- hook into this new mechanism to support tables with composite keys.
589
- + The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
590
- looks like an ActiveRecord 3.0 bug to me.
591
-
592
- == 2.3.5.1 2010-02-13
593
-
594
- * Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
595
-
596
- == 2.3.5 2009-12-16
597
-
598
- * Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
599
-
600
- == 2.3.2 2009-07-16
601
-
602
- * explicitly load associations.rb due to some getting an unitialized constant error
603
-
604
- == 2.3.2 2009-05-28
605
-
606
- * get tests working again with AR 2.3.2
607
-
608
- == 2.2.1 2009-01-21
609
-
610
- * fix ActiveRecord#exists? to work when passing conditions instead of ids
611
-
612
- == 2.2.0 2008-10-29
613
-
614
- * Rails 2.2.0 compatibility
615
-
616
- == 1.1.0 2008-10-29
617
-
618
- * fixes to get cpk working for Rails 2.1.2
619
-
620
- == 1.0.10 2008-10-22
621
-
622
- * add composite key where clause creator method [timurv]
623
-
624
- == 1.0.9 2008-09-08
625
-
626
- * fix postgres tests
627
- * fix for delete_records when has_many association has composite keys [darxriggs]
628
- * more consistent table/column name quoting [pbrant]
629
-
630
- == 1.0.8 2008-08-27
631
-
632
- * fix has_many :through for non composite models [thx rcarver]
633
-
634
- == 1.0.7 2008-08-12
635
-
636
- * fix for the last fix -- when has_many is composite and belongs_to is single
637
-
638
- == 1.0.6 2008-08-06
639
-
640
- * fix associations create
641
-
642
- == 1.0.5 2008-07-25
643
-
644
- * fix for calculations with a group by clause [thx Sirius Black]
645
-
646
- == 1.0.4 2008-07-15
647
-
648
- * support for oracle_enhanced adapter [thx Raimonds Simanovskis]
649
-
650
- == 1.0.3 2008-07-13
651
-
652
- * more fixes and tests for has many through [thx Menno van der Sman]
653
-
654
- == 1.0.2 2008-06-07
655
-
656
- * fix for has many through when through association has composite keys
657
-
658
- == 1.0.1 2008-06-06
659
-
660
- * Oracle fixes
661
-
662
- == 1.0.0 2008-06-05
663
-
664
- * Support for Rails 2.1
665
-
666
- == 0.9.93 2008-06-01
667
-
668
- * set fixed dependency on activerecord 2.0.2
669
-
670
- == 0.9.92 2008-02-22
671
-
672
- * Support for has_and_belongs_to_many
673
-
674
- == 0.9.91 2008-01-27
675
-
676
- * Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
677
-
678
- == 0.9.90 2008-01-27
679
-
680
- * Trial release for rails/activerecord 2.0.2 supported
681
-
682
- == 0.9.1 2007-10-28
683
-
684
- * Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
685
-
686
- == 0.9.0 2007-09-28
687
-
688
- * Added support for polymorphs [thx nerdrew]
689
- * init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
690
- * Added ibm_db support [thx K Venkatasubramaniyan]
691
- * Support for cleaning dependents [thx K Venkatasubramaniyan]
692
- * Rafactored db rake tasks into namespaces
693
- * Added namespaced tests (e.g. mysql:test for test_mysql)
694
-
695
- == 0.8.6 / 2007-6-12
696
-
697
- * 1 emergency fix due to Rails Core change
698
- * Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
699
-
700
- == 0.8.5 / 2007-6-5
701
-
702
- * 1 change due to Rails Core change
703
- * Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
704
- * 7 dev improvement:
705
- * Changed History.txt syntax to rdoc format
706
- * Added deploy tasks
707
- * Removed CHANGELOG + migrated into History.txt
708
- * Changed PKG_NAME -> GEM_NAME in Rakefile
709
- * Renamed README -> README.txt for :publish_docs task
710
- * Added :check_version task
711
- * VER => VERS in rakefile
712
- * 1 website improvement:
713
- * website/index.txt includes link to "8 steps to fix other ppls code"
714
-
715
- == 0.8.4 / 2007-5-3
716
-
717
- * 1 bugfix
718
- * Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
719
-
720
- == 0.8.3 / 2007-5-3
721
-
722
- * 1 bugfix
723
- * Explicit reference to ::ActiveRecord::RecordNotFound
724
- * 1 website addition:
725
- * Added routing help [Pete Sumskas]
726
-
727
- == 0.8.2 / 2007-4-11
728
-
729
- * 1 major enhancement:
730
- * Oracle unit tests!! [Darrin Holst]
731
- * And they work too
732
-
733
- == 0.8.1 / 2007-4-10
734
-
735
- * 1 bug fix:
736
- * Fixed the distinct(count) for oracle (removed 'as')
737
-
738
- == 0.8.0 / 2007-4-6
739
-
740
- * 1 major enhancement:
741
- * Support for calcualtions on associations
742
- * 2 new DB supported:
743
- * Tests run on sqlite
744
- * Tests run on postgresql
745
- * History.txt to keep track of changes like these
746
- * Using Hoe for Rakefile
747
- * Website generator rake tasks
748
-
749
- == 0.3.3
750
- * id=
751
- * create now work
752
-
753
- == 0.1.4
754
- * it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
755
-
756
- == 0.0.1
757
- * Initial version
758
- * set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
759
- * find(*ids) supports the passing of
760
- * id sets: Foo.find(2,1),
761
- * lists of id sets: Foo.find([2,1], [7,3], [8,12]),
762
- * and even stringified versions of the above:
763
- * Foo.find '2,1' or Foo.find '2,1;7,3'
1
+ == 11.0.0 (2018-06-18)
2
+ * Update to ActiveRecord 5.2 (Charlie Savage)
3
+ * Fixes for AR 5.2 persistence changes (Erik Rothoff, Charlie Savage)
4
+ * Fix system stack error (i2bskn)
5
+
6
+ == 11.0.0.rc2 (2018-02-25)
7
+
8
+ * Fix mysql deletion failure (Charlie Savage)
9
+ * Clean test run for postgresql, mysql and sqlite3 (Charlie Savage)
10
+
11
+ == 11.0.0.rc1 (2018-02-25)
12
+
13
+ * Update to ActiveRecord 5.2.rc1 (Charlie Savage)
14
+ * Fix uniquness check (Charlie Savage)
15
+
16
+ == 11.0.0.beta4 (2018-01-08)
17
+
18
+ * Try again on Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
19
+
20
+ == 11.0.0.beta3 (2018-01-07)
21
+
22
+ * Fix typo in Readme.doc (Lopez Lucien)
23
+ * Fix Calculations#execute_simple_calculation for ActiveRecord 5.2.beta2 (Charlie Savage)
24
+
25
+ == 11.0.0.beta2 (2017-12-10)
26
+
27
+ * Minor updates for ActiveRecord 5.2.beta2 support (Charlie Savage)
28
+
29
+ == 11.0.0.beta1 (2017-12-03)
30
+
31
+ * ActiveRecord 5.2.beta2 support (Charlie Savage)
32
+
33
+ == 10.0.4 (2018-06-17)
34
+
35
+ * Lock mysql2 gem to 0.4.x (Le Trung Kien)
36
+ * Set inversion when using preload (Le Trung Kien)
37
+ * Fixes for AR 5.1.6 (Tim Morgan)
38
+
39
+ == 10.0.3 (2018-02-25)
40
+
41
+ * Require a minimum of activerecord version 5.1.5 (Tom Hughes)
42
+
43
+ == 10.0.2 (2017-12-02)
44
+
45
+ * Fix frozen string mutation for mysql (Sergey Sein)
46
+ * Fix autosave for belongs_to associations (Fabian Mersch)
47
+ * Require a minimum of activerecord version 5.1.4 (Charlie Savage)
48
+
49
+ == 10.0.1 (2017-10-08)
50
+
51
+ * Fixed an error that happened when a table attribute had the same name as the table (Taishi Kasuga)
52
+
53
+ == 10.0.0 (2017-10-08)
54
+
55
+ * Support ActiveRecord 5.1.x (Pinak Thakkar, Jordan Owens)
56
+ * Fix Paper Trail compatibility (Sean Linsley)
57
+ * Fix typo in Readme (Mike Gunderloy)
58
+ * Improved sql server support (Artyom Nikolaev)
59
+
60
+ == 9.0.8 (2017-10-11)
61
+
62
+ * Fix Paper Trail compatibility (Sean Linsley)
63
+
64
+ == 9.0.7 (2017-05-22)
65
+
66
+ * Update sqlite3 to support deletes and updates (Charlie Savage)
67
+ * Specify version for sql server gem so it works with Rails 5.0 (Charlie Savage)
68
+ * Use `datetime` datatype to address Invalid default value for updated_at (Yasuo Honda)
69
+ * Fix ORA-00900 error when it attempts to execute blank statement (pustomytnyk)
70
+ * Override ActiveRecord::Associations::CollectionAssociation#ids_reader (pustomytnyk)
71
+ * Only define #primary_keys if #primary_keys=(value) is called (Charlie Savage)
72
+ * Change `timestamp` to `datetime` for MySQL as ActiveRecord timestamps type does (Oriol Collel)
73
+ * Fix incorrect case statement to get PK for SQLServer (Oriol Collel)
74
+ * Fixes random failures in test_preload_of_polymorphic_association (Boris Peterbarg)
75
+
76
+ == 9.0.6 (2017-01-08)
77
+
78
+ * Uncomment tests (Sammy Larbi)
79
+ * Update readme (Charlie Savage)
80
+
81
+ == 9.0.5 (2017-01-02)
82
+
83
+ * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
84
+ * Simplify database setup for tests (Charlie Savage)
85
+ * Revamp gem management (Charlie Savage)
86
+ * Add support for Relation#update_all when using joins (Charlie Savage)
87
+ * Add erb support to test database.yml files (Charlie Savage)
88
+ * Sqlserver fixes for ordering (Charlie Savage)
89
+ * Sqlserver refresh (Charlie Savage)
90
+ * Oracle refresh (Charlie Savage)
91
+ * Fix delete_all for MySql (Charlie Savage)
92
+ * Added test cases for preloading associations with and without conditions (Martin Körner)
93
+ * Revamp single association handling to correctly setup SQL binds (Charlie Savage)
94
+ * Remove references to ActiveModel - #352 (Charlie Savage)
95
+ * Fixes for #232, #359, #367 and #371 (Charlie Savage)
96
+
97
+ == 9.0.4 (2016-08-17)
98
+ * Do not set associations to readonly. See https://github.com/rails/rails/issues/24093 (Charlie Savage)
99
+
100
+ == 9.0.2 (2016-08-10)
101
+ * Fix delete_all when used with a join (Charlie Savage)
102
+
103
+ == 9.0.1 (2016-07-27)
104
+ * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
105
+
106
+ == 9.0.0 (2016-07-06)
107
+ * Support connection_specification_name in rails5.0.0.rc1 (pocari)
108
+
109
+ == 9.0.0.beta1 (2016-04-16)
110
+ * Rails 5 beta support (Sammy Larbi)
111
+
112
+ == 8.1.5 (2017-01-01)
113
+
114
+ * Don't nest PK twice when looking up id, fixes #319 (Kerey Roper)
115
+
116
+ == 8.1.4 (2016-07-27)
117
+
118
+ * Create OR predicates in a nicely balanced tree fixing #320 (Nathan Samson)
119
+ * Fix find in batches (apurvis)
120
+
121
+ == 8.1.3 (2016-04-16)
122
+
123
+ * Make CPK work for Arel::Attributes::Attribute (Rick Xing)
124
+ * Change autosave_association.rb so that association autosave can work (Rick Xing)
125
+ * Fix exception when saving "other_ids=" with a has_many :through association where the source
126
+ association is polymorphic (Tye Shavik)
127
+ * Fix Arel::Nodes::In where left side is not a column (Tye Shavik)
128
+
129
+ == 8.1.2 (2015-12-13)
130
+
131
+ * Fix failing tests
132
+
133
+ == 8.1.1 (2015-08-04)
134
+
135
+ * Updates to make Travis CI green (Laust Rud Jacobsen)
136
+ * Travis CI support (Laust Rud Jacobsen)
137
+ * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
138
+ for non-peristed objects (Charlie Savage)
139
+ * Update support for Uniquenes validations (Avi Leavitt)
140
+ * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
141
+ * Aligned the establish connection paramater handling to be similar to latest version of rails (Harish Shetty)
142
+
143
+
144
+ == 8.1.0 (2014-03-23)
145
+
146
+ * ActiveRecord 4.2.1 support (Charlie Savage)
147
+ * Change parsing of composite ids to fix #290 (Charlie Savage)
148
+ * Add sqlserver setting for test suite (Joachim Herb)
149
+ * Fix sqlserver adapater, isse #224 (Joachim Herb)
150
+ * Update readme file to include version 8.* information (David Silva)
151
+
152
+ == 8.0.1 (2014-01-24)
153
+
154
+ * Support optimistic lock and lock_version added to existing fixtures (Kirika)
155
+
156
+ == 8.0.0 (2014-01-10)
157
+
158
+ * ActiveRecord 4.2.* support (Sammy Larbi)
159
+
160
+ == 7.0.14 (2015-08-04)
161
+
162
+ * Remove overriden Base#==(comparison_object) which had a different behavior than stock AR method
163
+ for non-peristed objects (Charlie Savage)
164
+ * Update support for Uniquenes validations (Avi Leavitt)
165
+ * Remove call to verify_active_connections! which was removed from AR 4.1 (Steve Pletcher)
166
+
167
+ == 7.0.13 (2015-01-24)
168
+
169
+ * Support optimistic lock and lock_version added to existing fixtures (Kirika)
170
+ * README change to convey finding available versions (Aaron Bartell)
171
+ * Fixes indentation in product_tariffs (Zaldabus)
172
+
173
+ == 7.0.12 (2014-11-09)
174
+
175
+ * ActiveRecord 4.1.7 support (Tom Hughes)
176
+ * Extract CPK methods to its own module and extending instead of opening the singleton class
177
+ which fixes Marshal#dump (Nicolás Hock Isaza)
178
+
179
+ == 7.0.11 (2014-10-10)
180
+
181
+ * ActiveRecord 4.1.6 support (Tom Hughes, Charlie Savage)
182
+ * Verify MariaDB support and update docs (Isi Robayna)
183
+ * Postgresql binary column support (Piotr Gębala)
184
+ * Fix deleting of records from collection association (akeuk and Charlie Savage)
185
+ * Fix invalid include (shiro16)
186
+ * Improve tests (Yann Marquet)
187
+
188
+ == 7.0.10 (2014-08-07)
189
+
190
+ * Update attribute dirty methods to allow attribute *_was
191
+ fields to be calculated correctly for enum fields (Zachary Salzbank)
192
+ * Update read/write methods to match latest version of ActiveRecord (Charlie Savage)
193
+
194
+ == 7.0.9 (2014-08-03)
195
+
196
+ * Second attemp at fixing instantiation of has_many records via :includes that use composite keys - this
197
+ time take into account no target records (Charlie Savage)
198
+
199
+ == 7.0.8 (2014-08-03)
200
+
201
+ * Fix instantiation of has_many records via :includes that use composite keys (Charlie Savage)
202
+
203
+ == 7.0.7 (2014-07-29)
204
+
205
+ * Add back support for calling find like this (Sammy Larbi):
206
+
207
+ Membership.find('1,1')
208
+
209
+ == 7.0.7 (2014-07-29)
210
+
211
+ * Add back support for calling find like this (Sammy Larbi):
212
+
213
+ Membership.find('1,1')
214
+
215
+ == 7.0.6 (2014-07-22)
216
+
217
+ * Change the way we override ActiveRecord::Persistence to call sequence of included modules such
218
+ as callbacks (Charlie Savage)
219
+
220
+ == 7.0.5 (2014-07-21)
221
+
222
+ * Remove overriden Postgresql adapter code (Charlie Savage)
223
+
224
+ == 7.0.4 (2014-07-09)
225
+
226
+ * Fix overriding of Relation#where_values_hash (Pavel)
227
+ * Add travis CI support (Pavel)
228
+ * Run AR's original relation_for_destroy when primary key is not composite (Pavel)
229
+
230
+ == 7.0.3 (2014-07-04)
231
+
232
+ * Fixes for Rails 4.1.2+ compatibility (Tom Hughes)
233
+ * Nested attribute fix (Sammy Larb)
234
+ * Test fixes (Sammy Larb)
235
+ * Fixes instantiating join records (Charlie Savage)
236
+
237
+ == 7.0.2 (2014-06-01)
238
+
239
+ * Fix id_was when one of the column names is called id (Adrian Hooper)
240
+ * Fix queries that use ActiveRecord objects in the where clause (Adrian Hooper)
241
+
242
+ == 7.0.1 (2014-05-27)
243
+
244
+ * Fix setting of timestamps automatically by Rails (Charlie Savage)
245
+
246
+ == 7.0.0 (2014-05-26)
247
+
248
+ * Active Record 4.1 support! (Charlie Savage, Tom Hughes, Simon South)
249
+
250
+ Note there is one big api change. Previously, CPK supported both of these calls:
251
+
252
+ Membership.find(1,1)
253
+ Membership.find([1,1])
254
+
255
+ The first one no longer works. It was removed because it made the internal code simpler
256
+ and makes the intention of the code clearer (especially when finding multiple records).
257
+ If this change causes too much pain then please submit a ticket on Github.
258
+
259
+ == 6.0.08 (2015-01-24)
260
+
261
+ * Fix habtm association #delete_records (Uros Jurglic)
262
+ * Support optimistic locking (Toshio Maki)
263
+ * Remove singleton classes on CPK relations (Nicolás Hock Isaza)
264
+
265
+ == 6.0.7 (2014-10-06)
266
+
267
+ * Support Rails 4.0.6 (Tom Hughes)
268
+
269
+ == 6.0.6 (2014-05-26)
270
+
271
+ * Don't refer to deprecated set_primary_keys in README (Henare Degan)
272
+ * Fix gemspec dependency (Charlie Savage)
273
+
274
+ == 6.0.5 (2014-05-20)
275
+
276
+ * Removed debugging output (Dan Draper)
277
+ * Fixes to ensure that has_one associations work correctly (Dan Draper)
278
+ * Fix postgres db migration failure since no result is returned in some cases (seashell-qd)
279
+ * Fix exception raised in method "id=" (seashell.qd@hotmail.com)
280
+
281
+ == 6.0.3 (2014-04-28)
282
+
283
+ * Fixes setting of primary key when CPK is not used for a given model (see #191)
284
+
285
+ == 6.0.2 (2014-04-28)
286
+
287
+ * Fixes relating to ActiveRecord 4.0.x compatibility (Dan Draper)
288
+ * Ensure that primary key is set on instance when creating new records (Dan Draper)
289
+
290
+ == 6.0.1 (2013-11-29)
291
+
292
+ * Handle records == :all in HasManyAssociation#delete_records. Without this calling
293
+ delete or clear on a has_many assocation can result in an exception (Tom Hughes)
294
+ * Don't include cpk key as an attributes - fixes json serialization - #168 (Charlie Savage)
295
+ * Fix tests running on ruby 1.9.3 (Charlie Savage)
296
+ * Update nested_attributes to work with activerecord 4.0.x (Nick DeLuca)
297
+
298
+ == 6.0.0 (2013-08-04)
299
+ * ActiveRecord 4.0 support (Sammy Larbi)
300
+
301
+ == 5.0.13 2013-04-27
302
+ * Batch query improvements (Jordan Byron)
303
+ * Support nested attributes (aiasfina and Charlie Savage)
304
+
305
+ == 5.0.12 2013-01-21
306
+ * Fix HasManyAssociation foreign_key_present? method to work with non CPK assocations (Charlie Savage)
307
+
308
+ == 5.0.11 2013-01-19
309
+ * Patch HasManyAssociation foreign_key_present? method to work with array of keys (tbeauvais)
310
+ * Patch reverse_sql_order method to break apart CPKs (tbeauvais)
311
+ * Add test and fix for nested_attributes update (Dinshaw Gobhai)
312
+ * Add test and fix for to_sym exception (Dinshaw Gobhai)
313
+ * Add missing timestamp columns for mysql test_touch.rb (Dinshaw Gobhai)
314
+
315
+ == 5.0.10 2012-11-21
316
+ * ActiveRecord 3.2.9 compatability (Tom Hughes, Chris Heald, Jack Tang)
317
+ * Add support for find_in_batches (Charlie Savage)
318
+ * Add support for touch method (Macario Ortega)
319
+ * Remove symbolized representation of primary keys to be consistent with ActiveRecord (Tiago Cardoso)
320
+ * Update destroy method to use hash of primary keys over an array. This allows the proper SQL
321
+ (using IS NULL) to be generated when one of the primary key attributes is nil (Scott Hunter).
322
+
323
+ == 5.0.9 2012-09-29
324
+ * Enable tests for MS SQL Servder (Enderson Maia)
325
+ * Update ActiveRecord::Base#initialize_dup override in line with ActiveRecord::Base 3.2.5+ (Lucas Maxwell)
326
+ * Require postgresql_adapter.rb also when using activerecord-postgis-adapter (Torsti Schulz)
327
+ * Make cpk_in_predicate build a simple IN when possible (Tom Hughes)
328
+ * Fixed problem loading jdbcpostgresql adapter (Troy Caldwell)
329
+ * Add support for counter cache (Charlie Savage)
330
+ * Fix recreating postgresql database (Charlie Savage)
331
+ * Update dependency to ActiveRecord 3.2.8 or higher (Charlie Savage)
332
+
333
+ == 5.0.8 2012-07-01
334
+ * Enabled tests for MS SQL Server (Enderson Maia)
335
+ * Update establish_connection to work with Rails 3.2.6 (Ivan Schneider)
336
+ * Fix typos in rake tasks names in README_tests.rdoc (Ivan Schneider)
337
+ * Fix problem with deleting non-CPK in Rails 3.2.5 (Sammy Larbi)
338
+ * Fixes relationship deletion for HABTM in Rails when it passes :all flag instead of
339
+ an array of IDs. Also adds new tests and test fixtures (Sammy Larbi)
340
+ * Change mysql db creation to execute one statement each time, since in some setups
341
+ it will not run multiple statements (Sammy Larbi)
342
+ * Fix multiple assignments to same column due to duplicate keys in @changed_attributes.
343
+ Includes test fixes (Jan Vlnas)
344
+
345
+ == 5.0.7 2012-06-03
346
+ * Fixed bug where validates_uniqueness failed for 3 or more primary keys. (Charlie Savage)
347
+
348
+ == 5.0.6 2012-05-20
349
+ * Fixed bug where setting a belongs_to association to nil would raise an error (Tyler Rick)
350
+ * Remove special case code for 1 column selects and just choose to use Rails version of the
351
+ method unless we need ours to deal with an Array (Sammy Larbi)
352
+ * Change count tests to actually check for distinct, fix resulting error it
353
+ demonstrated in the code (Sammy Larbi)
354
+ * Specify mysql2 driver by default (Charlie Savage)
355
+ * Update sqlite tests to run on Windows (Charlie Savage)
356
+
357
+ == 5.0.5 2012-05-05
358
+ * Count without slower subquery in cases where that is possible (Sammy Larbi)
359
+ * When you call association.build for a has_many association that uses a
360
+ composite foreign key, the newly built child record should have the values
361
+ in its belongs_to foreign_key populated from its owner's values (Tyler Rick).
362
+ * Removed test_has_many_with_primary_key method that wasn't being used because
363
+ another method by the same name was defined below it (Tyler Rick).
364
+ * Fixed a bug that was causing object.changes to raise TypeError (Tyler Rick)
365
+ * Fix error when running rake mysql:rebuild_databases (Tyler Rick)
366
+ * to_param should join with comma instead of minus sign (Tsutomu Kuroda)
367
+ * Fix the "Factories" section of README.rdoc (Tsutomu Kuroda)
368
+
369
+ == 5.0.4 2012-03-23
370
+ * Update ActiveRecord::AttributeMethods#Write for Rails 3.2.2 (Travis Warlick)
371
+
372
+ == 5.0.4 2012-03-23
373
+ * Yanked
374
+
375
+ == 5.0.2 2012-03-16
376
+ * Use .rdoc extension on RDoc files (Elia Schito)
377
+ * Update documentation to use self.primary_keys instead of set_primary_keys (Miguel Fonseca)
378
+ * Added tests for comparing composite ids (Jim Jones)
379
+ * Updating the README for clarity (Brett Fishman)
380
+ * Fix method signature mismatch with active_record (Miguel Fonseca)
381
+ * Fix ref in README (Elia Schito)
382
+ * Add test for habm create (Charlie Savage)
383
+
384
+ == 5.0.1 2012-02-13
385
+ * Fix deprecation warning that was exactly backwards (Tom Hughes)
386
+ * Fix primary_keys handling in models that inherit from other models
387
+ but don't redefine their primary_key. Problem was the inherited
388
+ models didn't correctly reference their parents primary_keys (Charlie Savage)
389
+
390
+ == 5.0.0 2012-02-12
391
+ * Fix tests so they pass on MySql (Charlie Savage)
392
+ * Fix calculations to work with duplicate column names (cleesmith)
393
+ * Switch rake tasks for Postgresql and MySql to use ActiveRecord API for
394
+ creating and dropping databases (Charlie Savage)
395
+ * Follow AR 3.2 lead and introduce self.primary_keys and deprecate set_primary_keys (Charlie Savage)
396
+ * Switch from set_primary_key to self.primary_key= to avoid Rails deprecation (Charlie Savage)
397
+ * Fix issue when using multiple database connections (David Doan)
398
+ * Fix homepage in gemspec and remove email address (Charlie Savage)
399
+ * Add support for string keys to exists? (Jan Vlnas)
400
+ * Fix typo (Jason Karns)
401
+
402
+ == 5.0.0.rc1 2012-01-16
403
+ * ActiveRecord 3.2 support
404
+
405
+ == 4.1.2 2012-01-12
406
+ * Helper to allow the same tests to be used for both Oracle and other DBs
407
+ by replacing quoted identifiers with all-caps equivalents on Oracle (Rhett Sutphin)
408
+ * Update Oracle tests (Rhett Sutphin)
409
+
410
+ == 4.1.1 2011-08-31
411
+ * Support for AR 3.1.1
412
+ * Make polymorphic belongs_to work in rails 3.1.1 (Tom Hughes)
413
+ * Eliminate relative paths from the test suite (Rhett Sutphin)
414
+ * Minor improvements to the CPK test runner w/o relative path changes (Rhett Sutphin)
415
+ * Remove stray puts (Rhett Sutphin)
416
+ * Allow AR logs to go to a file when running tests. This commit allows you to
417
+ specify a file to use instead via the CPK_LOGFILE environment variable.
418
+ STDOUT is still the default. (Rhett Sutphin)
419
+ * Use ADAPTER env variable to select database to test. For example:
420
+
421
+ ADAPTER=sqlite3 ruby test/test_suite.rb
422
+ (Rhett Sutphin)
423
+
424
+ * Eliminate constant redef warnings during test runs (Rhett Sutphin)
425
+ * Add missing fixture declarations (Rhett Sutphin)
426
+ * Standardize on integer PKs in polymorphic fixtures (Rhett Sutphin)
427
+ * Fix tiny file name typos (Buck)
428
+
429
+ == 4.0.0 2011-08-31
430
+ * Support for AR 3.1
431
+
432
+ == 4.0.0.beta9 2011-08-22
433
+ * Fix eager-loading in AR 3.1.rc6.
434
+
435
+ == 4.0.0.beta9 2011-082-22
436
+ * Fix eager-loading in AR 3.1.rc6.
437
+
438
+ == 4.0.0.beta8 2011-082-22
439
+ * Sqlite 3 fixes (Jan Vlnas)
440
+ * Fixes for to_key method (Jan Vlnas)
441
+ * Compatible with Rails 3.1 RC6 (Ari Epstein, Travis Warlick)
442
+
443
+ == 4.0.0.beta7 2011-07-26
444
+ * Compatible with Rails 3.1 RC5 (TycoooN)
445
+ * Do not use Arel::Nodes::Or to combine predicates because it creates a
446
+ deeply nested stack that blows up.
447
+
448
+ == 4.0.0.beta4 2011-07-22
449
+ * Compatible with Rails 3.1 stable branch. No longer works with RC4 (Charlie Savage)
450
+ * Do not require loading of postgresql gem unless needed (Charlie Savage)
451
+
452
+ == 4.0.0.beta3 2011-07-08
453
+ * Fix the ability to update the values of a primary key (Travis Warlick)
454
+ * Support port and host configurations for postgres rake tasks (Travis Warlick)
455
+
456
+ == 4.0.0.beta2 2011-06-21
457
+ * ActiveRecord 3.1 RC4 compatibility.
458
+ * Fix instantiation of CPK models with included associations
459
+
460
+ == 4.0.0.beta1 2011-06-09
461
+ * ActiveRecord 3.1 RC1 compatibility. This required a significant rewrite due to
462
+ all the changes in AR 3.1 versus 3.0.
463
+
464
+ == 3.1.11 2012-05-20
465
+ Fix AssociationReflection#derive_primary_key for belongs_to relationships (Heinrich Lee Yu).
466
+
467
+ == 3.1.10 2011-07-08
468
+ * Bugfix for belongs_to with includes (John Ash)
469
+ * Improved tests for calling clear on a habtm association, which involved (David Rueck)
470
+ * Fixed bug that resulted in unrelated records being deleted when calling (David Rueck)
471
+ * Output deprecation warnings about extra columns in join table CPK-aware (David Rueck)
472
+
473
+
474
+ == 3.1.9 2011-06-04
475
+ * Improve HABTM association tests (David Rueck)
476
+ * Remove deprecated Rake tasks (Charlie Savage)
477
+
478
+ == 3.1.8 2011-05-26
479
+ * Fix calling clear on a HABTM associate (David Rueck)
480
+
481
+ == 3.1.7 2011-05-26
482
+ * Support regular AR models having one or many composite models (Jacques Fuentes)
483
+ * Minor test cleanup (Charlie Savage)
484
+ * Make version requirements more explicit (Charlie Savage)
485
+ * Remove Arel extensions used for calculations (Charlie Savage)
486
+ * Fix test that included wrong error constant
487
+
488
+ == 3.1.6 2011-04-03
489
+ * Updated belongs_to association to be a bit more flexible with non-CPK (Charlie Savage)
490
+ base models (Jacques Fuentes)
491
+ * Fix uniqueness check (David Rueck)
492
+ * Fix write issue when one of they keys in a composite key is
493
+ called id (Tom Hughes)
494
+
495
+
496
+ == 3.1.5 2011-03-24
497
+ * Fix simple calculation methods (Charlie Savage)
498
+ * Fix instantiation of cpk records via associations (Charlie Savage)
499
+ * Fix Relation#delete (Charlie Savage)
500
+ * Fix Relation#destroy (Charlie Savage)
501
+
502
+
503
+ == 3.1.4 2011-03-06
504
+ * Support ActiveRecord 3.0.5 - interpolate_sql was removed and
505
+ replaced by interpolate_and_sanitize_sql (Charlie Savage)
506
+ * Fix persistence methods to support destroy callbacks (Charlie Savage)
507
+ * Support rake 0.9.0 beta (Charlie Savage)
508
+
509
+
510
+ == 3.1.2 2011-02-26
511
+ * Add back in support for find('3,3') which makes it possible to
512
+ do find(params[id]). This implementation is simpler than earlier version
513
+ improving code readability.
514
+ * Support for finding multiple records either via find([1,2], [3,4])
515
+ * Remove to_composite_ids method which is no longer needed
516
+
517
+
518
+ == 3.1.1 2011-02-07
519
+ * Implement id_before_type_cast (Jason Lewis)
520
+ * Add in tests for Model.includes(:other_model)
521
+ * Fix object comparison with nil in composite primary keys (StackNG)
522
+ * Make it easier to run tests with different database adapters (Toby Cabot)
523
+ * Fix AssociationReflection#primary_key_name for polymorphic relationships (Dave Doan)
524
+
525
+
526
+ == 3.1.0 2010-12-17
527
+ * Add back in rake test tasks (Toby Cabot)
528
+ * Add support for multiple string composite keys (wouter)
529
+ * Remove support for find('3,3'). Instead use find([3,3])
530
+
531
+
532
+ == 3.0.9 2010-12-04
533
+ * Fix up support for composite key fixtures.
534
+
535
+
536
+ == 3.0.8 2010-12-04
537
+ * Fix for translation issue in unique validation. Thanks to Daniel Berger for the patch.
538
+ * Fix to support child classes of composite primary key models
539
+
540
+
541
+ == 3.0.7 2010-11-29
542
+ * Fix has and belongs to many associations implementation.
543
+
544
+
545
+ == 3.0.6 2010-11-29 (yanked)
546
+ * Add full support for has and belongs to many associations.
547
+
548
+
549
+ == 3.0.5 2010-11-28 (yanked)
550
+ * Apply patch from Marian Rudzynski for fixing up attribute_methods/primary_key
551
+ * Apply patch from Toby Cabot to fix up various sqlite3 issues
552
+ * Add partial support for has and belongs to many associations. Currently a cpk model
553
+ can have a habtm, but a normal model cannot have a habtm to a cpk model (its actually
554
+ not too hard to add, but one step at a time...)
555
+
556
+
557
+ == 3.0.4 2010-11-21
558
+ * Support deleting records when dependent is set to :delete_all
559
+ * Switch the method #id to return a CompositeKeys instance (thus going back to how
560
+ this was done in previous CPK versions)
561
+
562
+
563
+ == 3.0.3 2010-11-19
564
+ * Support ActiveRecord 3.0.3 and Arel 2+
565
+ * Require ActiveRecord 3.0.3 as minimum dependency
566
+ * Fix double quoting issue with table names - thanks to Kevin Motschiedler for a patch.
567
+ * Fix SQLiteAdapter class inheritance issue - thanks to Brandon Hauff for a patch.
568
+
569
+
570
+ == 3.0.1.b3 2010-11-07
571
+
572
+ * Fix bug in joining to :has_one association
573
+ * Added support for Model.find(:last)
574
+ * Added support for finding via associations with
575
+ limited ids. For example find(:include => :foo, :limit => 1)
576
+
577
+ == 3.0.1.b2 2010-11-06
578
+
579
+ * Port to Rails 3.0 and Ruby 1.9.2
580
+
581
+ * Backwards compatability issues
582
+ + You can no longer define a composite primary key with a single field. If you
583
+ try, your model will just default to a standard active record model. Removing
584
+ this corner case simplified the code.
585
+ + Removed CompositePrimaryKeys::CompositeKeys. This was done so that the #to_s
586
+ method on composite ids, such as [1,2], returns "[1, 2]". This in turns
587
+ reduces the amount of core Rails code that needs to be overridden.
588
+ + Setting attribute values by string is no longer supported. For example, this
589
+ no longer works:
590
+ my_record[[:main_id, :secondary_id]] = '1,2'
591
+ Instead, do this:
592
+ my_record[[:main_id, :secondary_id]] = [1,2]
593
+ Once again, this was done to reduce the amount of overridden Rails code
594
+ + At the moment, complex finds with nested arrays do not work. For example
595
+ find([[1,2], [3,4]))
596
+ + Count methods no longer work. For example, Tariff.count(:include => :product_tariffs)
597
+ in the TestAssociations#test_count test returns an error. This is because Rails 3.0
598
+ uses Arel to perform such calculations, and its not obvious (at least to me) how to
599
+ hook into this new mechanism to support tables with composite keys.
600
+ + The TestPolymorphic#test_polymorphic_has_many_through is currently failing, but this
601
+ looks like an ActiveRecord 3.0 bug to me.
602
+
603
+ == 2.3.5.1 2010-02-13
604
+
605
+ * Resolved "warning: already initialized constant HasManyThroughCantAssociateThroughHasManyReflection" [Titi Ala'ilima]
606
+
607
+ == 2.3.5 2009-12-16
608
+
609
+ * Fixed several bugs in has_one and has_many associations when :primary_key specified [kpumuk]
610
+
611
+ == 2.3.2 2009-07-16
612
+
613
+ * explicitly load associations.rb due to some getting an unitialized constant error
614
+
615
+ == 2.3.2 2009-05-28
616
+
617
+ * get tests working again with AR 2.3.2
618
+
619
+ == 2.2.1 2009-01-21
620
+
621
+ * fix ActiveRecord#exists? to work when passing conditions instead of ids
622
+
623
+ == 2.2.0 2008-10-29
624
+
625
+ * Rails 2.2.0 compatibility
626
+
627
+ == 1.1.0 2008-10-29
628
+
629
+ * fixes to get cpk working for Rails 2.1.2
630
+
631
+ == 1.0.10 2008-10-22
632
+
633
+ * add composite key where clause creator method [timurv]
634
+
635
+ == 1.0.9 2008-09-08
636
+
637
+ * fix postgres tests
638
+ * fix for delete_records when has_many association has composite keys [darxriggs]
639
+ * more consistent table/column name quoting [pbrant]
640
+
641
+ == 1.0.8 2008-08-27
642
+
643
+ * fix has_many :through for non composite models [thx rcarver]
644
+
645
+ == 1.0.7 2008-08-12
646
+
647
+ * fix for the last fix -- when has_many is composite and belongs_to is single
648
+
649
+ == 1.0.6 2008-08-06
650
+
651
+ * fix associations create
652
+
653
+ == 1.0.5 2008-07-25
654
+
655
+ * fix for calculations with a group by clause [thx Sirius Black]
656
+
657
+ == 1.0.4 2008-07-15
658
+
659
+ * support for oracle_enhanced adapter [thx Raimonds Simanovskis]
660
+
661
+ == 1.0.3 2008-07-13
662
+
663
+ * more fixes and tests for has many through [thx Menno van der Sman]
664
+
665
+ == 1.0.2 2008-06-07
666
+
667
+ * fix for has many through when through association has composite keys
668
+
669
+ == 1.0.1 2008-06-06
670
+
671
+ * Oracle fixes
672
+
673
+ == 1.0.0 2008-06-05
674
+
675
+ * Support for Rails 2.1
676
+
677
+ == 0.9.93 2008-06-01
678
+
679
+ * set fixed dependency on activerecord 2.0.2
680
+
681
+ == 0.9.92 2008-02-22
682
+
683
+ * Support for has_and_belongs_to_many
684
+
685
+ == 0.9.91 2008-01-27
686
+
687
+ * Incremented activerecord dependency to 2.0.2 [thx emmanuel.pirsch]
688
+
689
+ == 0.9.90 2008-01-27
690
+
691
+ * Trial release for rails/activerecord 2.0.2 supported
692
+
693
+ == 0.9.1 2007-10-28
694
+
695
+ * Migrations fix - allow :primary_key => [:name] to work [no unit test] [thx Shugo Maeda]
696
+
697
+ == 0.9.0 2007-09-28
698
+
699
+ * Added support for polymorphs [thx nerdrew]
700
+ * init.rb file so gem can be installed as a plugin for Rails [thx nerdrew]
701
+ * Added ibm_db support [thx K Venkatasubramaniyan]
702
+ * Support for cleaning dependents [thx K Venkatasubramaniyan]
703
+ * Rafactored db rake tasks into namespaces
704
+ * Added namespaced tests (e.g. mysql:test for test_mysql)
705
+
706
+ == 0.8.6 / 2007-6-12
707
+
708
+ * 1 emergency fix due to Rails Core change
709
+ * Rails v7004 removed #quote; fixed with connection.quote_column_name [thx nerdrew]
710
+
711
+ == 0.8.5 / 2007-6-5
712
+
713
+ * 1 change due to Rails Core change
714
+ * Can no longer use RAILS_CONNECTION_ADAPTERS from Rails core
715
+ * 7 dev improvement:
716
+ * Changed History.txt syntax to rdoc format
717
+ * Added deploy tasks
718
+ * Removed CHANGELOG + migrated into History.txt
719
+ * Changed PKG_NAME -> GEM_NAME in Rakefile
720
+ * Renamed README -> README.txt for :publish_docs task
721
+ * Added :check_version task
722
+ * VER => VERS in rakefile
723
+ * 1 website improvement:
724
+ * website/index.txt includes link to "8 steps to fix other ppls code"
725
+
726
+ == 0.8.4 / 2007-5-3
727
+
728
+ * 1 bugfix
729
+ * Corrected ids_list => ids in the exception message. That'll teach me for not adding unit tests before fixing bugs.
730
+
731
+ == 0.8.3 / 2007-5-3
732
+
733
+ * 1 bugfix
734
+ * Explicit reference to ::ActiveRecord::RecordNotFound
735
+ * 1 website addition:
736
+ * Added routing help [Pete Sumskas]
737
+
738
+ == 0.8.2 / 2007-4-11
739
+
740
+ * 1 major enhancement:
741
+ * Oracle unit tests!! [Darrin Holst]
742
+ * And they work too
743
+
744
+ == 0.8.1 / 2007-4-10
745
+
746
+ * 1 bug fix:
747
+ * Fixed the distinct(count) for oracle (removed 'as')
748
+
749
+ == 0.8.0 / 2007-4-6
750
+
751
+ * 1 major enhancement:
752
+ * Support for calcualtions on associations
753
+ * 2 new DB supported:
754
+ * Tests run on sqlite
755
+ * Tests run on postgresql
756
+ * History.txt to keep track of changes like these
757
+ * Using Hoe for Rakefile
758
+ * Website generator rake tasks
759
+
760
+ == 0.3.3
761
+ * id=
762
+ * create now work
763
+
764
+ == 0.1.4
765
+ * it was important that #{primary_key} for composites --> 'key1,key2' and not 'key1key2' so created PrimaryKeys class
766
+
767
+ == 0.0.1
768
+ * Initial version
769
+ * set_primary_keys(*keys) is the activation class method to transform an ActiveRecord into a composite primary key AR
770
+ * find(*ids) supports the passing of
771
+ * id sets: Foo.find(2,1),
772
+ * lists of id sets: Foo.find([2,1], [7,3], [8,12]),
773
+ * and even stringified versions of the above:
774
+ * Foo.find '2,1' or Foo.find '2,1;7,3'