activemodel 4.2.0.beta4 → 4.2.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activemodel might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63a849fdad11a802d8d4fa7c6379f15b85708106
4
- data.tar.gz: e45928f8b4e67459a0f17bb3abf0aff59d6dc0b0
3
+ metadata.gz: f380f03e7c700340afc2572d537610afd437f3c2
4
+ data.tar.gz: 18b93e5b90dec5948270acd5ac0a34b550240d9f
5
5
  SHA512:
6
- metadata.gz: cf2e01c6adda8e1a87e87bef60f587a4331e17c88134116f013e7a29e9e8c370f0f13f48d5ab50c3235d5f1bb079313b76a7eec2003cde01291afe7eccc28a5b
7
- data.tar.gz: be8fa855c0d574ec213a7975e991e2bbd4689a32251b60f6690e0a85fbcea2418d6da712734548e488aea31dd643c63fbcd6844b0e03273283972b938a614551
6
+ metadata.gz: b164154f5c556ce4ae382ea059ec8281f4eedec5ab1edcffc1b3098cd746dc69955431178aee61d4ecb3366a7e14f27c103af39a24e379257333ab03acfc2ea8
7
+ data.tar.gz: ea08bc3f46a6d0c036af6ffdb6f9af9c52c58bd2fab4d25c70c25808c189cdf1dfb7a73ec9945e1b56003e06093fae989206e1e436c92c6e1050f6d69ccf41dc
@@ -255,7 +255,7 @@ module ActiveModel
255
255
  end
256
256
 
257
257
  # Remove changes information for the provided attributes.
258
- def clear_attribute_changes(attributes)
258
+ def clear_attribute_changes(attributes) # :doc:
259
259
  attributes_changed_by_setter.except!(*attributes)
260
260
  end
261
261
  end
@@ -8,7 +8,7 @@ module ActiveModel
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
10
  TINY = 0
11
- PRE = "beta4"
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -130,10 +130,10 @@ module ActiveModel
130
130
  #
131
131
  # json = { person: { name: 'bob', age: 22, awesome:true } }.to_json
132
132
  # person = Person.new
133
- # person.from_json(json) # => #<Person:0x007fec5e7a0088 @age=22, @awesome=true, @name="bob">
134
- # person.name # => "bob"
135
- # person.age # => 22
136
- # person.awesome # => true
133
+ # person.from_json(json, true) # => #<Person:0x007fec5e7a0088 @age=22, @awesome=true, @name="bob">
134
+ # person.name # => "bob"
135
+ # person.age # => 22
136
+ # person.awesome # => true
137
137
  def from_json(json, include_root=include_root_in_json)
138
138
  hash = ActiveSupport::JSON.decode(json)
139
139
  hash = hash.values.first if include_root
@@ -54,7 +54,7 @@ module ActiveModel
54
54
 
55
55
  module HelperMethods
56
56
  # Validates whether the value of the specified attribute is of the correct
57
- # form, going by the regular expression provided.You can require that the
57
+ # form, going by the regular expression provided. You can require that the
58
58
  # attribute matches the regular expression:
59
59
  #
60
60
  # class Person < ActiveRecord::Base
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.0.beta4
4
+ version: 4.2.0.rc1
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: 2014-10-30 00:00:00.000000000 Z
11
+ date: 2014-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0.beta4
19
+ version: 4.2.0.rc1
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.0.beta4
26
+ version: 4.2.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.1'
41
41
  description: A toolkit for building modeling frameworks like Active Record. Rich support
@@ -94,17 +94,17 @@ require_paths:
94
94
  - lib
95
95
  required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - '>='
97
+ - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: 1.9.3
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>'
102
+ - - ">"
103
103
  - !ruby/object:Gem::Version
104
104
  version: 1.3.1
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.2.1
107
+ rubygems_version: 2.2.2
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: A toolkit for building modeling frameworks (part of Rails).