active_data 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fd00914914806d951a6e19e1927d9256d681c3af5b2125b67e06b3d90ad368f
|
4
|
+
data.tar.gz: ceeb1a7d53206a65d045d7a46017d261a0d872aa384bdebc7f11f4500861226d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995f37a727c0815e131189133c31a8bb767f7001fecef437305e81723c11ec25f54884cc50411fb34e53d213fb7482298af8ac2d576e51da68044fb2deb287e5
|
7
|
+
data.tar.gz: e9609fb34fba1628e4bc3d341378c2fea985fa021b2463ed61d5f9b2b9ae997315d07a54de516402459b2dc51dffc66076f1e64a492021895b507c3770330d58
|
data/CHANGELOG.md
CHANGED
data/lib/active_data/version.rb
CHANGED
@@ -45,6 +45,14 @@ describe ActiveData::Model::Attributes::Base do
|
|
45
45
|
specify { expect(field.tap { |r| r.write('value') }.came_from_user?).to eq(true) }
|
46
46
|
end
|
47
47
|
|
48
|
+
describe '#came_from_default?' do
|
49
|
+
let(:field) { attribute(type: String, default: 'world') }
|
50
|
+
let(:object) { Object.new }
|
51
|
+
|
52
|
+
specify { expect(field.came_from_default?).to eq(true) }
|
53
|
+
specify { expect(field.tap { |r| r.write('value') }.came_from_default?).to eq(false) }
|
54
|
+
end
|
55
|
+
|
48
56
|
describe '#value_present?' do
|
49
57
|
let(:field) { attribute }
|
50
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pyromaniac
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -333,8 +333,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '0'
|
335
335
|
requirements: []
|
336
|
-
|
337
|
-
rubygems_version: 2.7.6
|
336
|
+
rubygems_version: 3.0.3
|
338
337
|
signing_key:
|
339
338
|
specification_version: 4
|
340
339
|
summary: Working with hashes in AR style
|