activemodel 4.2.5 → 4.2.11.1

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
- SHA1:
3
- metadata.gz: af3ae87cb2463db315a2ec15699f58f6a2748f23
4
- data.tar.gz: 347ee12d70332b31680ad509ec8db43a0eb74111
2
+ SHA256:
3
+ metadata.gz: 45909619456148da48591847ebb0f4cc7a63a3c719ab3f09fee58975d063f51e
4
+ data.tar.gz: 51478d8efffb477326e616af7235f1890406c5f541e8718441b9116d136220d6
5
5
  SHA512:
6
- metadata.gz: 894c001035b984e43ec4451638dd9bf45c2157b84488e823c937084da6abd871b6fde480f98343d5927fda9ccc1286a4d0cf9c25339e8bef89963ef4da196596
7
- data.tar.gz: 5e8d930f2630141f2b84c4e45f8be58a202835ba802e6eb69a8ae753cf0d171bd7f0f067e7af1ea9ddd01c1dfc2dafe600be3826fbf4d5396c40553c15e9b475
6
+ metadata.gz: 5570a27e541e68a8c923bddf07c3cb780c802b7ab01502381d2a0989997b6854c1b19b80f79075fa834f1de1e4325a38908721ea4c2cab4a24843a00b79efc94
7
+ data.tar.gz: 92873356a637ce63784daef207cb05ae26754239f898eb3049b672c9f998a44b766b958af097c02477908e5615fd4f9ea80f9fcf2d86542f8e3212eac3490610
data/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ ## Rails 4.2.11.1 (March 11, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 4.2.11 (November 27, 2018) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 4.2.10 (September 27, 2017) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 4.2.9 (June 26, 2017) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 4.2.8 (February 21, 2017) ##
22
+
23
+ * No changes.
24
+
25
+
26
+ ## Rails 4.2.7 (July 12, 2016) ##
27
+
28
+ * No changes.
29
+
30
+
31
+ ## Rails 4.2.6 (March 07, 2016) ##
32
+
33
+ * No changes.
34
+
35
+
36
+ ## Rails 4.2.5.2 (February 26, 2016) ##
37
+
38
+ * No changes.
39
+
40
+
41
+ ## Rails 4.2.5.1 (January 25, 2015) ##
42
+
43
+ * No changes.
44
+
45
+
1
46
  ## Rails 4.2.5 (November 12, 2015) ##
2
47
 
3
48
  * No changes.
@@ -27,6 +27,10 @@ module ActiveModel
27
27
  #
28
28
  # define_attribute_methods :name
29
29
  #
30
+ # def initialize(name)
31
+ # @name = name
32
+ # end
33
+ #
30
34
  # def name
31
35
  # @name
32
36
  # end
@@ -55,7 +59,7 @@ module ActiveModel
55
59
  #
56
60
  # A newly instantiated +Person+ object is unchanged:
57
61
  #
58
- # person = Person.new
62
+ # person = Person.new("Uncle Bob")
59
63
  # person.changed? # => false
60
64
  #
61
65
  # Change the name:
@@ -7,8 +7,8 @@ module ActiveModel
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
- TINY = 5
11
- PRE = nil
10
+ TINY = 11
11
+ PRE = "1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -10,7 +10,7 @@ module ActiveModel
10
10
  included do
11
11
  extend ActiveModel::Naming
12
12
 
13
- class_attribute :include_root_in_json
13
+ class_attribute :include_root_in_json, instance_writer: false
14
14
  self.include_root_in_json = false
15
15
  end
16
16
 
@@ -47,9 +47,10 @@ module ActiveModel
47
47
  include HelperMethods
48
48
 
49
49
  attr_accessor :validation_context
50
+ private :validation_context=
50
51
  define_callbacks :validate, scope: :name
51
52
 
52
- class_attribute :_validators
53
+ class_attribute :_validators, instance_writer: false
53
54
  self._validators = Hash.new { |h,k| h[k] = [] }
54
55
  end
55
56
 
@@ -114,7 +114,7 @@ module ActiveModel
114
114
  # * <tt>:only_integer</tt> - Specifies whether the value has to be an
115
115
  # integer, e.g. an integral value (default is +false+).
116
116
  # * <tt>:allow_nil</tt> - Skip validation if attribute is +nil+ (default is
117
- # +false+). Notice that for fixnum and float columns empty strings are
117
+ # +false+). Notice that for Integer and Float columns empty strings are
118
118
  # converted to +nil+.
119
119
  # * <tt>:greater_than</tt> - Specifies the value must be greater than the
120
120
  # supplied value.
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: 4.2.5
4
+ version: 4.2.11.1
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: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2019-03-11 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: 4.2.5
19
+ version: 4.2.11.1
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: 4.2.5
26
+ version: 4.2.11.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.4.5.1
106
+ rubygems_version: 3.0.1
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: A toolkit for building modeling frameworks (part of Rails).