activemodel 3.2.8 → 3.2.9.rc1

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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## Rails 3.2.9 (unreleased)
2
+
3
+ * Due to a change in builder, nil values and empty strings now generates
4
+ closed tags, so instead of this:
5
+
6
+ <pseudonyms nil=\"true\"></pseudonyms>
7
+
8
+ It generates this:
9
+
10
+ <pseudonyms nil=\"true\"/>
11
+
12
+ *Carlos Antonio da Silva*
13
+
1
14
  ## Rails 3.2.8 (Aug 9, 2012) ##
2
15
 
3
16
  * No changes.
@@ -44,105 +57,4 @@
44
57
 
45
58
  * Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
46
59
 
47
-
48
- ## Rails 3.1.0 (August 30, 2011) ##
49
-
50
- * Alternate I18n namespace lookup is no longer supported.
51
- Instead of "activerecord.models.admins.post", do "activerecord.models.admins/post" instead *José Valim*
52
-
53
- * attr_accessible and friends now accepts :as as option to specify a role *Josh Kalderimis*
54
-
55
- * Add support for proc or lambda as an option for InclusionValidator,
56
- ExclusionValidator, and FormatValidator *Prem Sichanugrist*
57
-
58
- You can now supply Proc, lambda, or anything that respond to #call in those
59
- validations, and it will be called with current record as an argument.
60
- That given proc or lambda must returns an object which respond to #include? for
61
- InclusionValidator and ExclusionValidator, and returns a regular expression
62
- object for FormatValidator.
63
-
64
- * Added ActiveModel::SecurePassword to encapsulate dead-simple password usage with BCrypt encryption and salting *DHH*
65
-
66
- * ActiveModel::AttributeMethods allows attributes to be defined on demand *Alexander Uvarov*
67
-
68
- * Add support for selectively enabling/disabling observers *Myron Marston*
69
-
70
-
71
- ## Rails 3.0.7 (April 18, 2011) ##
72
-
73
- * No changes.
74
-
75
-
76
- ## Rails 3.0.6 (April 5, 2011) ##
77
-
78
- * Fix when database column name has some symbolic characters (e.g. Oracle CASE# VARCHAR2(20)) #5818 #6850 *Robert Pankowecki, Santiago Pastorino*
79
-
80
- * Fix length validation for fixnums #6556 *Andriy Tyurnikov*
81
-
82
- * Fix i18n key collision with namespaced models #6448 *yves.senn*
83
-
84
-
85
- ## Rails 3.0.5 (February 26, 2011) ##
86
-
87
- * No changes.
88
-
89
-
90
- ## Rails 3.0.4 (February 8, 2011) ##
91
-
92
- * No changes.
93
-
94
-
95
- ## Rails 3.0.3 (November 16, 2010) ##
96
-
97
- * No changes.
98
-
99
-
100
- ## Rails 3.0.2 (November 15, 2010) ##
101
-
102
- * No changes
103
-
104
-
105
- ## Rails 3.0.1 (October 15, 2010) ##
106
-
107
- * No Changes, just a version bump.
108
-
109
-
110
- ## Rails 3.0.0 (August 29, 2010) ##
111
-
112
- * Added ActiveModel::MassAssignmentSecurity *Eric Chapweske, Josh Kalderimis*
113
-
114
- * JSON supports a custom root option: to_json(:root => 'custom') #4515 *Jatinder Singh*
115
-
116
- * #new_record? and #destroyed? were removed from ActiveModel::Lint. Use
117
- persisted? instead. A model is persisted if it's not a new_record? and it was
118
- not destroyed? *MG*
119
-
120
- * Added validations reflection in ActiveModel::Validations *JV*
121
-
122
- Model.validators
123
- Model.validators_on(:field)
124
-
125
- * #to_key was added to ActiveModel::Lint so we can generate DOM IDs for
126
- AMo objects with composite keys *MG*
127
-
128
- * ActiveModel::Observer#add_observer!
129
-
130
- It has a custom hook to define after_find that should really be in a
131
- ActiveRecord::Observer subclass:
132
-
133
- def add_observer!(klass)
134
- klass.add_observer(self)
135
- klass.class_eval 'def after_find() end' unless klass.respond_to?(:after_find)
136
- end
137
-
138
- * Change the ActiveModel::Base.include_root_in_json default to true for Rails 3 *DHH*
139
-
140
- * Add validates_format_of :without => /regexp/ option. #430 *Elliot Winkler, Peer Allan*
141
-
142
- Example :
143
-
144
- validates_format_of :subdomain, :without => /www|admin|mail/
145
-
146
- * Introduce validates_with to encapsulate attribute validations in a class. #2630 *Jeff Dean*
147
-
148
- * Extracted from Active Record and Active Resource.
60
+ Please check [3-1-stable](https://github.com/rails/rails/blob/3-1-stable/activemodel/CHANGELOG.md) for previous changes.
@@ -2,8 +2,8 @@ require 'active_support/json'
2
2
  require 'active_support/core_ext/class/attribute'
3
3
 
4
4
  module ActiveModel
5
- # == Active Model JSON Serializer
6
5
  module Serializers
6
+ # == Active Model JSON Serializer
7
7
  module JSON
8
8
  extend ActiveSupport::Concern
9
9
  include ActiveModel::Serialization
@@ -5,12 +5,16 @@ require 'active_support/core_ext/hash/conversions'
5
5
  require 'active_support/core_ext/hash/slice'
6
6
 
7
7
  module ActiveModel
8
- # == Active Model XML Serializer
9
8
  module Serializers
9
+ # == Active Model XML Serializer
10
10
  module Xml
11
11
  extend ActiveSupport::Concern
12
12
  include ActiveModel::Serialization
13
13
 
14
+ included do
15
+ extend ActiveModel::Naming
16
+ end
17
+
14
18
  class Serializer #:nodoc:
15
19
  class Attribute #:nodoc:
16
20
  attr_reader :name, :value, :type
@@ -5,6 +5,7 @@ require 'active_support/core_ext/hash/keys'
5
5
  require 'active_support/core_ext/hash/except'
6
6
  require 'active_model/errors'
7
7
  require 'active_model/validations/callbacks'
8
+ require 'active_model/validator'
8
9
 
9
10
  module ActiveModel
10
11
 
@@ -2,8 +2,8 @@ module ActiveModel
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 8
6
- PRE = nil
5
+ TINY = 9
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
5
- prerelease:
4
+ version: 3.2.9.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-09 00:00:00.000000000 Z
12
+ date: 2012-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.8
21
+ version: 3.2.9.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 3.2.8
29
+ version: 3.2.9.rc1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: builder
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -104,12 +104,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ! '>='
107
+ - - ! '>'
108
108
  - !ruby/object:Gem::Version
109
- version: '0'
110
- segments:
111
- - 0
112
- hash: 2453793099293425745
109
+ version: 1.3.1
113
110
  requirements: []
114
111
  rubyforge_project:
115
112
  rubygems_version: 1.8.24