active_interaction 2.1.1 → 2.1.2

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
  SHA1:
3
- metadata.gz: 6f1a6360b50ccffdcd40231df37ef50ba71e0513
4
- data.tar.gz: 053934f4e4c53b81cf72e4843d3c00a4023890e3
3
+ metadata.gz: 9329a7a03500b2df126c515a11207fa2857aa369
4
+ data.tar.gz: b4435673bededceaf5b4fc71bbe025d032b126d9
5
5
  SHA512:
6
- metadata.gz: 17b08e4252eaed06870d0fb1c7f3993830a9a939e10f69357d0fcda7f02d0965e52e3fae6e99632077217176475c90d04526caa196d489c5618b5df4c33899f0
7
- data.tar.gz: 21ba7fdaa0139290a77a85e4617cbeccd1194b25fa6fec02574a185866c8a93b5758953bee8db769216818f7987afd42fea34d3a264a6aa01a25f45e8bfc1c03
6
+ metadata.gz: baef9f6307c852cba7b5bba252fa567641fccdab1840211abfb73fb88f537367f2305cdd00ffa4f8fac6c692e8f9dbe7d42ecd8a5b27cfa81db479dcc72c012d
7
+ data.tar.gz: 9f6fa9fb6e2049ea8bbf9c5770132fd991b2644dffea2472530870676955185039010b6b193d5294338da9d8677e17aadd8a1f91764abfbfe43f9634590c5dd1
@@ -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/
@@ -9,7 +9,7 @@ require 'active_model'
9
9
  #
10
10
  # @since 1.0.0
11
11
  #
12
- # @version 2.1.1
12
+ # @version 2.1.2
13
13
  module ActiveInteraction
14
14
  end
15
15
 
@@ -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 < Error
60
+ class InvalidNestedValueError < InvalidValueError
61
61
  # @return [Symbol]
62
62
  attr_reader :filter_name
63
63
 
@@ -5,5 +5,5 @@ module ActiveInteraction
5
5
  # The version number.
6
6
  #
7
7
  # @return [Gem::Version]
8
- VERSION = Gem::Version.new('2.1.1')
8
+ VERSION = Gem::Version.new('2.1.2')
9
9
  end
@@ -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.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-08-04 00:00:00.000000000 Z
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.32'
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.32'
165
+ version: '0.33'
166
166
  - !ruby/object:Gem::Dependency
167
167
  name: yard
168
168
  requirement: !ruby/object:Gem::Requirement