activemodel 3.0.19 → 3.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: 2add94ab673e5c4f068274aff3a4b6f23442e18a
4
- data.tar.gz: abe726d7898a3f781626bcfb714bf2f4a023e3d5
5
- !binary "U0hBNTEy":
6
- metadata.gz: 9a557767218b21d9c806567e1d5e25cea211539f7dbba7b6972c928b276d298018694040177b751997678dacfc78aec10152ae94a59c974632dcd1e7ff3f0525
7
- data.tar.gz: 0007c1bbb281b7bc2b39d3655313d6f6990aafaf3d391b07c9a76b99ac29b066cf4fd8a749bdde076dee91de1481f864e87920e88b657426a7adc6c3e24d2133
2
+ SHA1:
3
+ metadata.gz: 711a0c8b07ab4da81228b150f5037acf2db8e4c7
4
+ data.tar.gz: 9e21930d3a5461f19d059319336effef3967caa1
5
+ SHA512:
6
+ metadata.gz: 79b66e256aafe01c2e911fcc2a6e1aece080387a99945de8abbf2d32ba9cd0a4ca2e393fca66b9ce03ea63c5edd405b54a96c268a772035e2a9792dc71e2f4df
7
+ data.tar.gz: 69b726a99060f4fd93efa39e616dc37832252a9613e12556d005f8510c00063b2bac00805dfb600c3bdee4ea361cd149eff81936a85d89c4d4861d2ecc18c8c7
data/CHANGELOG CHANGED
@@ -1,4 +1,14 @@
1
- ## Rails 3.0.18
1
+ ## Rails 3.0.20 (unreleased)
2
+
3
+ * Fix XML serialization of methods that return nil to not be considered as YAML (GH #8853 and GH #492)
4
+
5
+ ## Rails 3.0.19 (Jan 8, 2013)
6
+
7
+ * No changes.
8
+
9
+ ## Rails 3.0.18 (Jan 2, 2013)
10
+
11
+ * No changes.
2
12
 
3
13
  ## Rails 3.0.17 (Aug 9, 2012)
4
14
 
@@ -6,13 +16,13 @@
6
16
 
7
17
  ## Rails 3.0.16 (Jul 26, 2012)
8
18
 
9
- * No changes.
19
+ * No changes.
10
20
 
11
21
  ## Rails 3.0.14 (Jun 12, 2012)
12
22
 
13
- * No changes.
23
+ * No changes.
14
24
 
15
- * Rails 3.0.13 (May 31, 2012)
25
+ *Rails 3.0.13 (May 31, 2012)*
16
26
 
17
27
  * No changes.
18
28
 
@@ -93,11 +103,10 @@
93
103
  It has a custom hook to define after_find that should really be in a
94
104
  ActiveRecord::Observer subclass:
95
105
 
96
- def add_observer!(klass)
97
- klass.add_observer(self)
98
- klass.class_eval 'def after_find() end' unless
99
- klass.respond_to?(:after_find)
100
- end
106
+ def add_observer!(klass)
107
+ klass.add_observer(self)
108
+ klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
109
+ end
101
110
 
102
111
  * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 [DHH]
103
112
 
@@ -33,6 +33,7 @@ module ActiveModel
33
33
  protected
34
34
 
35
35
  def compute_type
36
+ return if value.nil?
36
37
  type = ActiveSupport::XmlMini::TYPE_NAMES[value.class.name]
37
38
  type ||= :string if value.respond_to?(:to_str)
38
39
  type ||= :yaml
@@ -2,7 +2,7 @@ module ActiveModel
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 19
5
+ TINY = 20
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.19
4
+ version: 3.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-01-08 00:00:00.000000000 Z
11
+ date: 2013-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.19
19
+ version: 3.0.20
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.19
26
+ version: 3.0.20
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project: activemodel
119
- rubygems_version: 2.0.0.preview3
119
+ rubygems_version: 2.0.0.preview3.1
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A toolkit for building modeling frameworks (part of Rails).