composite_primary_keys 11.0.0.rc1 → 11.0.0.rc2

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