activemodel 3.0.11 → 3.0.12.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.
@@ -10,7 +10,9 @@ module ActiveModel
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def setup(klass)
|
13
|
-
klass.send(:attr_accessor, *attributes.map
|
13
|
+
klass.send(:attr_accessor, *attributes.map do |attribute|
|
14
|
+
:"#{attribute}_confirmation" unless klass.method_defined?(:"#{attribute}_confirmation")
|
15
|
+
end.compact)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
|
data/lib/active_model/version.rb
CHANGED
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 15424023
|
5
|
+
prerelease: 7
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
|
9
|
+
- 12
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 3.0.12.rc1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- David Heinemeier Hansson
|
@@ -15,29 +17,30 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date:
|
20
|
+
date: 2012-02-22 00:00:00 Z
|
19
21
|
dependencies:
|
20
22
|
- !ruby/object:Gem::Dependency
|
21
23
|
name: activesupport
|
22
|
-
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
26
|
none: false
|
26
27
|
requirements:
|
27
28
|
- - "="
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
30
|
+
hash: 15424023
|
30
31
|
segments:
|
31
32
|
- 3
|
32
33
|
- 0
|
33
|
-
-
|
34
|
-
|
35
|
-
|
34
|
+
- 12
|
35
|
+
- rc
|
36
|
+
- 1
|
37
|
+
version: 3.0.12.rc1
|
38
|
+
type: :runtime
|
39
|
+
version_requirements: *id001
|
36
40
|
- !ruby/object:Gem::Dependency
|
37
41
|
name: builder
|
38
|
-
type: :runtime
|
39
42
|
prerelease: false
|
40
|
-
|
43
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
44
|
none: false
|
42
45
|
requirements:
|
43
46
|
- - ~>
|
@@ -48,12 +51,12 @@ dependencies:
|
|
48
51
|
- 1
|
49
52
|
- 2
|
50
53
|
version: 2.1.2
|
51
|
-
|
54
|
+
type: :runtime
|
55
|
+
version_requirements: *id002
|
52
56
|
- !ruby/object:Gem::Dependency
|
53
57
|
name: i18n
|
54
|
-
type: :runtime
|
55
58
|
prerelease: false
|
56
|
-
|
59
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
60
|
none: false
|
58
61
|
requirements:
|
59
62
|
- - ~>
|
@@ -64,7 +67,8 @@ dependencies:
|
|
64
67
|
- 5
|
65
68
|
- 0
|
66
69
|
version: 0.5.0
|
67
|
-
|
70
|
+
type: :runtime
|
71
|
+
version_requirements: *id003
|
68
72
|
description: A toolkit for building modeling frameworks like Active Record and Active Resource. Rich support for attributes, callbacks, validations, observers, serialization, internationalization, and testing.
|
69
73
|
email: david@loudthinking.com
|
70
74
|
executables: []
|
@@ -77,40 +81,40 @@ files:
|
|
77
81
|
- CHANGELOG
|
78
82
|
- MIT-LICENSE
|
79
83
|
- README.rdoc
|
80
|
-
- lib/active_model.rb
|
81
|
-
- lib/active_model/mass_assignment_security.rb
|
82
|
-
- lib/active_model/locale/en.yml
|
83
|
-
- lib/active_model/conversion.rb
|
84
84
|
- lib/active_model/attribute_methods.rb
|
85
|
+
- lib/active_model/callbacks.rb
|
86
|
+
- lib/active_model/conversion.rb
|
87
|
+
- lib/active_model/deprecated_error_methods.rb
|
85
88
|
- lib/active_model/dirty.rb
|
86
|
-
- lib/active_model/mass_assignment_security/sanitizer.rb
|
87
|
-
- lib/active_model/mass_assignment_security/permission_set.rb
|
88
89
|
- lib/active_model/errors.rb
|
89
|
-
- lib/active_model/test_case.rb
|
90
90
|
- lib/active_model/lint.rb
|
91
|
-
- lib/active_model/
|
92
|
-
- lib/active_model/
|
93
|
-
- lib/active_model/
|
91
|
+
- lib/active_model/locale/en.yml
|
92
|
+
- lib/active_model/mass_assignment_security/permission_set.rb
|
93
|
+
- lib/active_model/mass_assignment_security/sanitizer.rb
|
94
|
+
- lib/active_model/mass_assignment_security.rb
|
94
95
|
- lib/active_model/naming.rb
|
95
|
-
- lib/active_model/
|
96
|
+
- lib/active_model/observing.rb
|
96
97
|
- lib/active_model/railtie.rb
|
98
|
+
- lib/active_model/serialization.rb
|
99
|
+
- lib/active_model/serializers/json.rb
|
100
|
+
- lib/active_model/serializers/xml.rb
|
101
|
+
- lib/active_model/test_case.rb
|
97
102
|
- lib/active_model/translation.rb
|
98
|
-
- lib/active_model/validations.rb
|
99
|
-
- lib/active_model/callbacks.rb
|
100
|
-
- lib/active_model/validator.rb
|
101
|
-
- lib/active_model/validations/validates.rb
|
102
|
-
- lib/active_model/validations/exclusion.rb
|
103
|
-
- lib/active_model/validations/confirmation.rb
|
104
|
-
- lib/active_model/validations/numericality.rb
|
105
103
|
- lib/active_model/validations/acceptance.rb
|
106
|
-
- lib/active_model/validations/with.rb
|
107
|
-
- lib/active_model/validations/format.rb
|
108
104
|
- lib/active_model/validations/callbacks.rb
|
105
|
+
- lib/active_model/validations/confirmation.rb
|
106
|
+
- lib/active_model/validations/exclusion.rb
|
107
|
+
- lib/active_model/validations/format.rb
|
109
108
|
- lib/active_model/validations/inclusion.rb
|
110
109
|
- lib/active_model/validations/length.rb
|
110
|
+
- lib/active_model/validations/numericality.rb
|
111
111
|
- lib/active_model/validations/presence.rb
|
112
|
-
- lib/active_model/
|
113
|
-
- lib/active_model/
|
112
|
+
- lib/active_model/validations/validates.rb
|
113
|
+
- lib/active_model/validations/with.rb
|
114
|
+
- lib/active_model/validations.rb
|
115
|
+
- lib/active_model/validator.rb
|
116
|
+
- lib/active_model/version.rb
|
117
|
+
- lib/active_model.rb
|
114
118
|
homepage: http://www.rubyonrails.org
|
115
119
|
licenses: []
|
116
120
|
|
@@ -133,16 +137,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
138
|
none: false
|
135
139
|
requirements:
|
136
|
-
- - "
|
140
|
+
- - ">"
|
137
141
|
- !ruby/object:Gem::Version
|
138
|
-
hash:
|
142
|
+
hash: 25
|
139
143
|
segments:
|
140
|
-
-
|
141
|
-
|
144
|
+
- 1
|
145
|
+
- 3
|
146
|
+
- 1
|
147
|
+
version: 1.3.1
|
142
148
|
requirements: []
|
143
149
|
|
144
150
|
rubyforge_project: activemodel
|
145
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.16
|
146
152
|
signing_key:
|
147
153
|
specification_version: 3
|
148
154
|
summary: A toolkit for building modeling frameworks (part of Rails).
|