activerecord 3.2.13 → 3.2.14.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

Files changed (37) hide show
  1. data/CHANGELOG.md +148 -2
  2. data/lib/active_record/associations/association.rb +9 -3
  3. data/lib/active_record/associations/belongs_to_association.rb +1 -1
  4. data/lib/active_record/associations/belongs_to_polymorphic_association.rb +2 -1
  5. data/lib/active_record/associations/builder/belongs_to.rb +4 -1
  6. data/lib/active_record/associations/builder/belongs_to.rb.orig +95 -0
  7. data/lib/active_record/associations/collection_association.rb +1 -1
  8. data/lib/active_record/associations/has_many_association.rb +1 -2
  9. data/lib/active_record/associations/has_many_association.rb.orig +116 -0
  10. data/lib/active_record/associations/join_dependency.rb +1 -1
  11. data/lib/active_record/associations/join_dependency/join_association.rb +6 -1
  12. data/lib/active_record/associations/preloader/through_association.rb +1 -2
  13. data/lib/active_record/associations/through_association.rb +1 -1
  14. data/lib/active_record/autosave_association.rb +7 -12
  15. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +2 -2
  16. data/lib/active_record/connection_adapters/abstract/schema_statements.rb.orig +619 -0
  17. data/lib/active_record/connection_adapters/connection_specification.rb.orig +124 -0
  18. data/lib/active_record/connection_adapters/mysql2_adapter.rb +5 -3
  19. data/lib/active_record/connection_adapters/postgresql/cast.rb.orig +136 -0
  20. data/lib/active_record/connection_adapters/postgresql/schema_statements.rb.orig +485 -0
  21. data/lib/active_record/connection_adapters/postgresql_adapter.rb +9 -3
  22. data/lib/active_record/core.rb.orig +452 -0
  23. data/lib/active_record/explain_subscriber.rb +1 -1
  24. data/lib/active_record/model_schema.rb +4 -2
  25. data/lib/active_record/nested_attributes.rb +41 -17
  26. data/lib/active_record/railtie.rb +6 -7
  27. data/lib/active_record/railties/databases.rake +2 -1
  28. data/lib/active_record/relation/calculations.rb +5 -6
  29. data/lib/active_record/relation/calculations.rb.orig +378 -0
  30. data/lib/active_record/relation/finder_methods.rb +1 -0
  31. data/lib/active_record/relation/finder_methods.rb.orig +405 -0
  32. data/lib/active_record/relation/spawn_methods.rb +34 -3
  33. data/lib/active_record/store.rb +1 -1
  34. data/lib/active_record/version.rb +2 -2
  35. data/lib/rails/generators/active_record/observer/observer_generator.rb.orig +15 -0
  36. metadata +117 -70
  37. checksums.yaml +0 -7
@@ -37,8 +37,8 @@ module ActiveRecord
37
37
  Array(keys).flatten.each do |key|
38
38
  define_method("#{key}=") do |value|
39
39
  send("#{store_attribute}=", {}) unless send(store_attribute).is_a?(Hash)
40
- send(store_attribute)[key] = value
41
40
  send("#{store_attribute}_will_change!")
41
+ send(store_attribute)[key] = value
42
42
  end
43
43
 
44
44
  define_method(key) do
@@ -2,8 +2,8 @@ module ActiveRecord
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 13
6
- PRE = nil
5
+ TINY = 14
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
@@ -0,0 +1,15 @@
1
+ require 'rails/generators/active_record'
2
+
3
+ module ActiveRecord
4
+ module Generators # :nodoc:
5
+ class ObserverGenerator < Base # :nodoc:
6
+ check_class_collision :suffix => "Observer"
7
+
8
+ def create_observer_file
9
+ template 'observer.rb', File.join('app/models', class_path, "#{file_name}_observer.rb")
10
+ end
11
+
12
+ hook_for :test_framework
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,80 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
- version: !ruby/object:Gem::Version
4
- version: 3.2.13
3
+ version: !ruby/object:Gem::Version
4
+ hash: 1650041971
5
+ prerelease: 7
6
+ segments:
7
+ - 3
8
+ - 2
9
+ - 14
10
+ - rc
11
+ - 1
12
+ version: 3.2.14.rc1
5
13
  platform: ruby
6
- authors:
14
+ authors:
7
15
  - David Heinemeier Hansson
8
16
  autorequire:
9
17
  bindir: bin
10
18
  cert_chain: []
11
- date: 2013-03-18 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: activesupport
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 3.2.13
19
+
20
+ date: 2013-07-12 00:00:00 -03:00
21
+ default_executable:
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 1650041971
30
+ segments:
31
+ - 3
32
+ - 2
33
+ - 14
34
+ - rc
35
+ - 1
36
+ version: 3.2.14.rc1
20
37
  type: :runtime
38
+ name: activesupport
39
+ version_requirements: *id001
21
40
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
25
- - !ruby/object:Gem::Version
26
- version: 3.2.13
27
- - !ruby/object:Gem::Dependency
28
- name: activemodel
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 3.2.13
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - "="
46
+ - !ruby/object:Gem::Version
47
+ hash: 1650041971
48
+ segments:
49
+ - 3
50
+ - 2
51
+ - 14
52
+ - rc
53
+ - 1
54
+ version: 3.2.14.rc1
34
55
  type: :runtime
56
+ name: activemodel
57
+ version_requirements: *id002
35
58
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 3.2.13
41
- - !ruby/object:Gem::Dependency
42
- name: arel
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
59
+ - !ruby/object:Gem::Dependency
60
+ requirement: &id003 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
45
63
  - - ~>
46
- - !ruby/object:Gem::Version
64
+ - !ruby/object:Gem::Version
65
+ hash: 3
66
+ segments:
67
+ - 3
68
+ - 0
69
+ - 2
47
70
  version: 3.0.2
48
71
  type: :runtime
72
+ name: arel
73
+ version_requirements: *id003
49
74
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
75
+ - !ruby/object:Gem::Dependency
76
+ requirement: &id004 !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
52
79
  - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 3.0.2
55
- - !ruby/object:Gem::Dependency
56
- name: tzinfo
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
80
+ - !ruby/object:Gem::Version
81
+ hash: 41
82
+ segments:
83
+ - 0
84
+ - 3
85
+ - 29
61
86
  version: 0.3.29
62
87
  type: :runtime
88
+ name: tzinfo
89
+ version_requirements: *id004
63
90
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: 0.3.29
69
- description: Databases on Rails. Build a persistent domain model by mapping database
70
- tables to Ruby classes. Strong conventions for associations, validations, aggregations,
71
- migrations, and testing come baked-in.
91
+ description: Databases on Rails. Build a persistent domain model by mapping database tables to Ruby classes. Strong conventions for associations, validations, aggregations, migrations, and testing come baked-in.
72
92
  email: david@loudthinking.com
73
93
  executables: []
94
+
74
95
  extensions: []
75
- extra_rdoc_files:
96
+
97
+ extra_rdoc_files:
76
98
  - README.rdoc
77
- files:
99
+ files:
78
100
  - CHANGELOG.md
79
101
  - MIT-LICENSE
80
102
  - README.rdoc
@@ -89,6 +111,7 @@ files:
89
111
  - lib/active_record/associations/belongs_to_polymorphic_association.rb
90
112
  - lib/active_record/associations/builder/association.rb
91
113
  - lib/active_record/associations/builder/belongs_to.rb
114
+ - lib/active_record/associations/builder/belongs_to.rb.orig
92
115
  - lib/active_record/associations/builder/collection_association.rb
93
116
  - lib/active_record/associations/builder/has_and_belongs_to_many.rb
94
117
  - lib/active_record/associations/builder/has_many.rb
@@ -98,6 +121,7 @@ files:
98
121
  - lib/active_record/associations/collection_proxy.rb
99
122
  - lib/active_record/associations/has_and_belongs_to_many_association.rb
100
123
  - lib/active_record/associations/has_many_association.rb
124
+ - lib/active_record/associations/has_many_association.rb.orig
101
125
  - lib/active_record/associations/has_many_through_association.rb
102
126
  - lib/active_record/associations/has_one_association.rb
103
127
  - lib/active_record/associations/has_one_through_association.rb
@@ -143,16 +167,21 @@ files:
143
167
  - lib/active_record/connection_adapters/abstract/quoting.rb
144
168
  - lib/active_record/connection_adapters/abstract/schema_definitions.rb
145
169
  - lib/active_record/connection_adapters/abstract/schema_statements.rb
170
+ - lib/active_record/connection_adapters/abstract/schema_statements.rb.orig
146
171
  - lib/active_record/connection_adapters/abstract_adapter.rb
147
172
  - lib/active_record/connection_adapters/abstract_mysql_adapter.rb
148
173
  - lib/active_record/connection_adapters/column.rb
174
+ - lib/active_record/connection_adapters/connection_specification.rb.orig
149
175
  - lib/active_record/connection_adapters/mysql2_adapter.rb
150
176
  - lib/active_record/connection_adapters/mysql_adapter.rb
177
+ - lib/active_record/connection_adapters/postgresql/cast.rb.orig
178
+ - lib/active_record/connection_adapters/postgresql/schema_statements.rb.orig
151
179
  - lib/active_record/connection_adapters/postgresql_adapter.rb
152
180
  - lib/active_record/connection_adapters/schema_cache.rb
153
181
  - lib/active_record/connection_adapters/sqlite3_adapter.rb
154
182
  - lib/active_record/connection_adapters/sqlite_adapter.rb
155
183
  - lib/active_record/connection_adapters/statement_pool.rb
184
+ - lib/active_record/core.rb.orig
156
185
  - lib/active_record/counter_cache.rb
157
186
  - lib/active_record/dynamic_finder_match.rb
158
187
  - lib/active_record/dynamic_matchers.rb
@@ -186,8 +215,10 @@ files:
186
215
  - lib/active_record/reflection.rb
187
216
  - lib/active_record/relation/batches.rb
188
217
  - lib/active_record/relation/calculations.rb
218
+ - lib/active_record/relation/calculations.rb.orig
189
219
  - lib/active_record/relation/delegation.rb
190
220
  - lib/active_record/relation/finder_methods.rb
221
+ - lib/active_record/relation/finder_methods.rb.orig
191
222
  - lib/active_record/relation/predicate_builder.rb
192
223
  - lib/active_record/relation/query_methods.rb
193
224
  - lib/active_record/relation/spawn_methods.rb
@@ -220,33 +251,49 @@ files:
220
251
  - lib/rails/generators/active_record/model/templates/model.rb
221
252
  - lib/rails/generators/active_record/model/templates/module.rb
222
253
  - lib/rails/generators/active_record/observer/observer_generator.rb
254
+ - lib/rails/generators/active_record/observer/observer_generator.rb.orig
223
255
  - lib/rails/generators/active_record/observer/templates/observer.rb
224
256
  - lib/rails/generators/active_record/session_migration/session_migration_generator.rb
225
257
  - lib/rails/generators/active_record/session_migration/templates/migration.rb
226
258
  - lib/rails/generators/active_record.rb
259
+ has_rdoc: true
227
260
  homepage: http://www.rubyonrails.org
228
- licenses: []
229
- metadata: {}
261
+ licenses:
262
+ - MIT
230
263
  post_install_message:
231
- rdoc_options:
264
+ rdoc_options:
232
265
  - --main
233
266
  - README.rdoc
234
- require_paths:
267
+ require_paths:
235
268
  - lib
236
- required_ruby_version: !ruby/object:Gem::Requirement
237
- requirements:
238
- - - '>='
239
- - !ruby/object:Gem::Version
269
+ required_ruby_version: !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ hash: 57
275
+ segments:
276
+ - 1
277
+ - 8
278
+ - 7
240
279
  version: 1.8.7
241
- required_rubygems_version: !ruby/object:Gem::Requirement
242
- requirements:
243
- - - '>='
244
- - !ruby/object:Gem::Version
245
- version: '0'
280
+ required_rubygems_version: !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - ">"
284
+ - !ruby/object:Gem::Version
285
+ hash: 25
286
+ segments:
287
+ - 1
288
+ - 3
289
+ - 1
290
+ version: 1.3.1
246
291
  requirements: []
292
+
247
293
  rubyforge_project:
248
- rubygems_version: 2.0.2
294
+ rubygems_version: 1.6.2
249
295
  signing_key:
250
- specification_version: 4
296
+ specification_version: 3
251
297
  summary: Object-relational mapper framework (part of Rails).
252
298
  test_files: []
299
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 6d1cf1ee0369d8143e282b0ce7ced34f6a03be77
4
- data.tar.gz: e109bb3f9c5c4f03eb25e9ce7553f0b3aac0c733
5
- SHA512:
6
- metadata.gz: 4c59dfb05c3f64d385d2262fce6883da73260cdbba44f1b6f9fdc304d46c255f1e1b8935c428327465f0ad16748373a43f18e31bc6001c15c96f02fe66b5d40b
7
- data.tar.gz: f56e4267c7e9011dd6c2c9112de902249c5e9b2e6e208f04843360d9ef27b1ffb3092d7eaa71fffe3db73bb924d5462b158d734be05147e9121f9f5a02072cc6