vacuum 2.0.0 → 2.0.1

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: 7906255d4f787e35bfc22f67b89d406bed807ce0
4
- data.tar.gz: 13b236b25c20e725bba1248f5c3905c0e8bae1b5
3
+ metadata.gz: 29760fe694c82b91b6a60810cb9037a273bbb29d
4
+ data.tar.gz: 1139fee4614b774eb362a3adb3796c13321eae3d
5
5
  SHA512:
6
- metadata.gz: 0d9102da9a4be4f5d29220d6e4d12569378867da10ce668a2e7f9412ed6f42476a9daf5dcc0cea0c1f02ec37e6ed18aee0b3475b50c207c1d2e70285f06b125d
7
- data.tar.gz: 290a282d80dfb9a8c7e7c3a386786b615a696c006cf31ee79066dfac6af0395ef874ba88eedb4aa461af5e1423511527874e88d20bae13a559c628d936c4789c
6
+ metadata.gz: b4c873b36a94e9579b53eba1791bf845f14beaac33340399a0fe60512fb9cb16b5b8b5772ac7da13661200e013f14f676d16574e929e138d180a66c1454c7db4
7
+ data.tar.gz: 9f27bea1a47964cc64afe172ed056c28ed4c07e833e3082a0334bd6bb8c6a9fd38a370584fa6d9e2c639acff076677ed8fedc4b191f8446cf4d4168150302c77
@@ -12,7 +12,7 @@ module Vacuum
12
12
  attr_accessor :parser
13
13
  end
14
14
 
15
- def_delegator :parse, :dig
15
+ def_delegator :to_h, :dig
16
16
 
17
17
  attr_writer :parser
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Vacuum
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
data/test/test_vacuum.rb CHANGED
@@ -83,12 +83,15 @@ class TestVacuum < Minitest::Test
83
83
 
84
84
  def test_digs
85
85
  Excon.stub({}, body: '<foo><bar>baz</bar></foo>')
86
+ parser = MiniTest::Mock.new
86
87
  res = @req.item_lookup(query: {}, mock: true)
87
88
  assert_equal 'baz', res.dig('foo', 'bar')
89
+ res.parser = parser
90
+ assert_equal 'baz', res.dig('foo', 'bar')
88
91
  end
89
92
 
90
93
  def test_handles_unauthorized_errors
91
- Excon.stub({}, status: 403, body: '<foo/>')
94
+ Excon.stub({}, status: 403)
92
95
  res = @req.item_lookup(query: {}, mock: true)
93
96
  assert_equal 403, res.status
94
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vacuum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari