active_interaction 2.1.1 → 2.1.2
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/CHANGELOG.md +9 -0
- data/lib/active_interaction.rb +1 -1
- data/lib/active_interaction/errors.rb +1 -1
- data/lib/active_interaction/version.rb +1 -1
- data/spec/active_interaction/integration/array_interaction_spec.rb +5 -0
- data/spec/active_interaction/integration/hash_interaction_spec.rb +5 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9329a7a03500b2df126c515a11207fa2857aa369
|
4
|
+
data.tar.gz: b4435673bededceaf5b4fc71bbe025d032b126d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baef9f6307c852cba7b5bba252fa567641fccdab1840211abfb73fb88f537367f2305cdd00ffa4f8fac6c692e8f9dbe7d42ecd8a5b27cfa81db479dcc72c012d
|
7
|
+
data.tar.gz: 9f6fa9fb6e2049ea8bbf9c5770132fd991b2644dffea2472530870676955185039010b6b193d5294338da9d8677e17aadd8a1f91764abfbfe43f9634590c5dd1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.1.2][] (2015-09-03)
|
2
|
+
|
3
|
+
## Fixed
|
4
|
+
|
5
|
+
- [#298][]: Fixed a bug that raised exceptions when passing invalid nested
|
6
|
+
values.
|
7
|
+
|
1
8
|
# [2.1.1][] (2015-08-04)
|
2
9
|
|
3
10
|
## Fixed
|
@@ -437,6 +444,7 @@ For help upgrading to version 2, please read [the announcement post][].
|
|
437
444
|
|
438
445
|
- Initial release.
|
439
446
|
|
447
|
+
[2.1.2]: https://github.com/orgsync/active_interaction/compare/v2.1.1...v2.1.2
|
440
448
|
[2.1.1]: https://github.com/orgsync/active_interaction/compare/v2.1.0...v2.1.1
|
441
449
|
[2.1.0]: https://github.com/orgsync/active_interaction/compare/v2.0.1...v2.1.0
|
442
450
|
[2.0.1]: https://github.com/orgsync/active_interaction/compare/v2.0.0...v2.0.1
|
@@ -574,5 +582,6 @@ For help upgrading to version 2, please read [the announcement post][].
|
|
574
582
|
[#289]: https://github.com/orgsync/active_interaction/issues/289
|
575
583
|
[#295]: https://github.com/orgsync/active_interaction/issues/295
|
576
584
|
[#296]: https://github.com/orgsync/active_interaction/issues/296
|
585
|
+
[#298]: https://github.com/orgsync/active_interaction/issues/298
|
577
586
|
|
578
587
|
[the announcement post]: http://devblog.orgsync.com/2015/05/06/announcing-active-interaction-2/
|
data/lib/active_interaction.rb
CHANGED
@@ -57,7 +57,7 @@ module ActiveInteraction
|
|
57
57
|
# Raised if a user-supplied value to a nested hash input is invalid.
|
58
58
|
#
|
59
59
|
# @return [Class]
|
60
|
-
class InvalidNestedValueError <
|
60
|
+
class InvalidNestedValueError < InvalidValueError
|
61
61
|
# @return [Symbol]
|
62
62
|
attr_reader :filter_name
|
63
63
|
|
@@ -27,6 +27,11 @@ describe ArrayInteraction do
|
|
27
27
|
it 'returns the correct value for :b' do
|
28
28
|
expect(result[:b]).to eql [[]]
|
29
29
|
end
|
30
|
+
|
31
|
+
it 'does not raise an error with an invalid nested value' do
|
32
|
+
inputs[:a] = [false]
|
33
|
+
expect { outcome }.to_not raise_error
|
34
|
+
end
|
30
35
|
end
|
31
36
|
|
32
37
|
context 'with an invalid default' do
|
@@ -27,6 +27,11 @@ describe HashInteraction do
|
|
27
27
|
it 'returns the correct value for :b' do
|
28
28
|
expect(result[:b]).to eql('x' => {})
|
29
29
|
end
|
30
|
+
|
31
|
+
it 'does not raise an error with an invalid nested value' do
|
32
|
+
inputs[:a] = { x: false }
|
33
|
+
expect { outcome }.to_not raise_error
|
34
|
+
end
|
30
35
|
end
|
31
36
|
|
32
37
|
context 'with an invalid default' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_interaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Lasseigne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -155,14 +155,14 @@ dependencies:
|
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '0.
|
158
|
+
version: '0.33'
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '0.
|
165
|
+
version: '0.33'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: yard
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|