activemodel 3.0.11 → 3.0.12.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,9 @@ module ActiveModel
10
10
  end
11
11
 
12
12
  def setup(klass)
13
- klass.send(:attr_accessor, *attributes.map { |attribute| :"#{attribute}_confirmation" })
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
 
@@ -2,8 +2,8 @@ module ActiveModel
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 11
6
- PRE = nil
5
+ TINY = 12
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: 17
5
- prerelease:
4
+ hash: 15424023
5
+ prerelease: 7
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 11
10
- version: 3.0.11
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: 2011-11-18 00:00:00 Z
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
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - "="
28
29
  - !ruby/object:Gem::Version
29
- hash: 17
30
+ hash: 15424023
30
31
  segments:
31
32
  - 3
32
33
  - 0
33
- - 11
34
- version: 3.0.11
35
- requirement: *id001
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
- version_requirements: &id002 !ruby/object:Gem::Requirement
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
- requirement: *id002
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
- version_requirements: &id003 !ruby/object:Gem::Requirement
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
- requirement: *id003
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/observing.rb
92
- - lib/active_model/version.rb
93
- - lib/active_model/serialization.rb
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/deprecated_error_methods.rb
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/serializers/xml.rb
113
- - lib/active_model/serializers/json.rb
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: 3
142
+ hash: 25
139
143
  segments:
140
- - 0
141
- version: "0"
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.6
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).