attributor 5.2.0 → 5.2.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 +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +4 -0
- data/lib/attributor/types/model.rb +1 -1
- data/lib/attributor/version.rb +1 -1
- data/spec/types/model_spec.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f21ff68c8d3b97d5bd413de360b51354d76f0d8a
|
|
4
|
+
data.tar.gz: 16456c473b8c88245f4b3fcbaf680f33a19c5101
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 815f1587432ebd0b83b91e30492e6e0abcce14e2fb11a805e0db1eefda29fc1f83b436b520b0b5d21c394f50c37b49a119e0da23a7221f9bf2f42ad68e203584
|
|
7
|
+
data.tar.gz: fa09b6421c691f5dfff2795e8c568e59a2238597e5e0d35ea3295aba58564af838f9c4789a0621382eb81875c7deff0b96462e0638a2589990d55d66e0bcbf27
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/attributor/version.rb
CHANGED
data/spec/types/model_spec.rb
CHANGED
|
@@ -413,6 +413,17 @@ describe Attributor::Model do
|
|
|
413
413
|
expect(person.address.person).to be(person)
|
|
414
414
|
expect(output[:address][:person]).to eq(Attributor::Model::CIRCULAR_REFERENCE_MARKER)
|
|
415
415
|
end
|
|
416
|
+
|
|
417
|
+
it 'passes kwargs' do
|
|
418
|
+
person.class.attributes.values.each do |attr|
|
|
419
|
+
expect(attr).to receive(:dump).with(
|
|
420
|
+
anything,
|
|
421
|
+
context: anything,
|
|
422
|
+
custom_arg: :custom_value
|
|
423
|
+
)
|
|
424
|
+
end
|
|
425
|
+
person.dump(custom_arg: :custom_value)
|
|
426
|
+
end
|
|
416
427
|
end
|
|
417
428
|
end
|
|
418
429
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: attributor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.2.
|
|
4
|
+
version: 5.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Josep M. Blanquer
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: hashie
|
|
@@ -421,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
421
421
|
version: '0'
|
|
422
422
|
requirements: []
|
|
423
423
|
rubyforge_project:
|
|
424
|
-
rubygems_version: 2.6.
|
|
424
|
+
rubygems_version: 2.6.14
|
|
425
425
|
signing_key:
|
|
426
426
|
specification_version: 4
|
|
427
427
|
summary: A powerful attribute and type management library for Ruby
|