activemodel 3.2.2 → 3.2.3.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.
@@ -1,3 +1,13 @@
1
+ ## Rails 3.2.3 (unreleased) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 3.2.2 (March 1, 2012) ##
7
+
8
+ * No changes.
9
+
10
+
1
11
  ## Rails 3.2.1 (January 26, 2012) ##
2
12
 
3
13
  * No changes.
@@ -16,6 +26,7 @@
16
26
 
17
27
  * Provide mass_assignment_sanitizer as an easy API to replace the sanitizer behavior. Also support both :logger (default) and :strict sanitizer behavior *Bogdan Gusiev*
18
28
 
29
+
19
30
  ## Rails 3.1.0 (August 30, 2011) ##
20
31
 
21
32
  * Alternate I18n namespace lookup is no longer supported.
@@ -44,7 +55,7 @@
44
55
  * No changes.
45
56
 
46
57
 
47
- * Rails 3.0.6 (April 5, 2011)
58
+ ## Rails 3.0.6 (April 5, 2011) ##
48
59
 
49
60
  * Fix when database column name has some symbolic characters (e.g. Oracle CASE# VARCHAR2(20)) #5818 #6850 *Robert Pankowecki, Santiago Pastorino*
50
61
 
@@ -83,7 +83,7 @@ module ActiveModel
83
83
  # end
84
84
  # end
85
85
  #
86
- # When using the :default role :
86
+ # When using the :default role:
87
87
  #
88
88
  # customer = Customer.new
89
89
  # customer.assign_attributes({ "name" => "David", "credit_rating" => "Excellent", :last_login => 1.day.ago }, :as => :default)
@@ -94,7 +94,7 @@ module ActiveModel
94
94
  # customer.credit_rating = "Average"
95
95
  # customer.credit_rating # => "Average"
96
96
  #
97
- # And using the :admin role :
97
+ # And using the :admin role:
98
98
  #
99
99
  # customer = Customer.new
100
100
  # customer.assign_attributes({ "name" => "David", "credit_rating" => "Excellent", :last_login => 1.day.ago }, :as => :admin)
@@ -105,8 +105,9 @@ module ActiveModel
105
105
  # To start from an all-closed default and enable attributes as needed,
106
106
  # have a look at +attr_accessible+.
107
107
  #
108
- # Note that using <tt>Hash#except</tt> or <tt>Hash#slice</tt> in place of +attr_protected+
109
- # to sanitize attributes won't provide sufficient protection.
108
+ # Note that using <tt>Hash#except</tt> or <tt>Hash#slice</tt> in place of
109
+ # +attr_protected+ to sanitize attributes provides basically the same
110
+ # functionality, but it makes a bit tricky to deal with nested attributes.
110
111
  def attr_protected(*args)
111
112
  options = args.extract_options!
112
113
  role = options[:as] || :default
@@ -150,7 +151,7 @@ module ActiveModel
150
151
  # end
151
152
  # end
152
153
  #
153
- # When using the :default role :
154
+ # When using the :default role:
154
155
  #
155
156
  # customer = Customer.new
156
157
  # customer.assign_attributes({ "name" => "David", "credit_rating" => "Excellent", :last_login => 1.day.ago }, :as => :default)
@@ -160,15 +161,16 @@ module ActiveModel
160
161
  # customer.credit_rating = "Average"
161
162
  # customer.credit_rating # => "Average"
162
163
  #
163
- # And using the :admin role :
164
+ # And using the :admin role:
164
165
  #
165
166
  # customer = Customer.new
166
167
  # customer.assign_attributes({ "name" => "David", "credit_rating" => "Excellent", :last_login => 1.day.ago }, :as => :admin)
167
168
  # customer.name # => "David"
168
169
  # customer.credit_rating # => "Excellent"
169
170
  #
170
- # Note that using <tt>Hash#except</tt> or <tt>Hash#slice</tt> in place of +attr_accessible+
171
- # to sanitize attributes won't provide sufficient protection.
171
+ # Note that using <tt>Hash#except</tt> or <tt>Hash#slice</tt> in place of
172
+ # +attr_accessible+ to sanitize attributes provides basically the same
173
+ # functionality, but it makes a bit tricky to deal with nested attributes.
172
174
  def attr_accessible(*args)
173
175
  options = args.extract_options!
174
176
  role = options[:as] || :default
@@ -2,8 +2,8 @@ module ActiveModel
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 2
6
- PRE = nil
5
+ TINY = 3
6
+ PRE = "rc1"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,13 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease:
4
+ hash: 15424079
5
+ prerelease: true
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 2
10
- version: 3.2.2
9
+ - 3
10
+ - rc
11
+ - 1
12
+ version: 3.2.3.rc1
11
13
  platform: ruby
12
14
  authors:
13
15
  - David Heinemeier Hansson
@@ -15,28 +17,29 @@ autorequire:
15
17
  bindir: bin
16
18
  cert_chain: []
17
19
 
18
- date: 2012-03-01 00:00:00 Z
20
+ date: 2012-03-27 00:00:00 -03:00
21
+ default_executable:
19
22
  dependencies:
20
23
  - !ruby/object:Gem::Dependency
21
- name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
26
27
  - - "="
27
28
  - !ruby/object:Gem::Version
28
- hash: 11
29
+ hash: 15424079
29
30
  segments:
30
31
  - 3
31
32
  - 2
32
- - 2
33
- version: 3.2.2
33
+ - 3
34
+ - rc
35
+ - 1
36
+ version: 3.2.3.rc1
37
+ requirement: *id001
34
38
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: builder
39
+ name: activesupport
38
40
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
41
+ - !ruby/object:Gem::Dependency
42
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
43
  none: false
41
44
  requirements:
42
45
  - - ~>
@@ -47,8 +50,10 @@ dependencies:
47
50
  - 0
48
51
  - 0
49
52
  version: 3.0.0
53
+ requirement: *id002
50
54
  type: :runtime
51
- version_requirements: *id002
55
+ name: builder
56
+ prerelease: false
52
57
  description: A toolkit for building modeling frameworks like Active Record and Active Resource. Rich support for attributes, callbacks, validations, observers, serialization, internationalization, and testing.
53
58
  email: david@loudthinking.com
54
59
  executables: []
@@ -96,6 +101,7 @@ files:
96
101
  - lib/active_model/validator.rb
97
102
  - lib/active_model/version.rb
98
103
  - lib/active_model.rb
104
+ has_rdoc: true
99
105
  homepage: http://www.rubyonrails.org
100
106
  licenses: []
101
107
 
@@ -118,16 +124,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
124
  required_rubygems_version: !ruby/object:Gem::Requirement
119
125
  none: false
120
126
  requirements:
121
- - - ">="
127
+ - - ">"
122
128
  - !ruby/object:Gem::Version
123
- hash: 3
129
+ hash: 25
124
130
  segments:
125
- - 0
126
- version: "0"
131
+ - 1
132
+ - 3
133
+ - 1
134
+ version: 1.3.1
127
135
  requirements: []
128
136
 
129
137
  rubyforge_project:
130
- rubygems_version: 1.8.16
138
+ rubygems_version: 1.3.7
131
139
  signing_key:
132
140
  specification_version: 3
133
141
  summary: A toolkit for building modeling frameworks (part of Rails).