abn_lookup 0.2.3 → 0.2.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: 16decb392208f999b3723e09636178b22b321a748c898ff99a527c92acdffcf4
4
- data.tar.gz: 4b1026420192d43e40322deb6b6d6364885cc37600b684036966b229fec5383d
3
+ metadata.gz: 77340d319f92cf153e723d1f5adc88140a9adfda2a34662ea2060fbeff1cff68
4
+ data.tar.gz: d09cf718e5936f86662720b0aadcd2b10b5f568a08cb7d348c2ef876dbbb599e
5
5
  SHA512:
6
- metadata.gz: a76b10768152aab4128cec7ebbbd660bda45ba8943cad6d7f64f60e5a7258e8edf27352b805a964098b2cf9a577444ff9e3d1e47a5728beeaf4c748eb21c2c0f
7
- data.tar.gz: 1731b48946798a19b11b9ecd77d5784df31e0bfbd9d663dd6f8b2f2cadc555505731696093f5be2d1e368edfe318cd250be7fcae6288cfb62ca3048123781ec8
6
+ metadata.gz: ee21879c4884617600703c2914789bc554ef48fb0a0948782d749557f639df361903ce6a3ed010f84b0a310ba451efea4115135a7683dd04d06aef7416ae9d10
7
+ data.tar.gz: 6aee9cdeefc95a90b6ab4f77f95dde290e2190931309fb6acb3b4f0ec7596ddbfe73b137d055d22c3103242a87c451663c2b028566a5867d75e853685f1f3abb
@@ -7,6 +7,7 @@ module AbnLookup
7
7
 
8
8
  def fetch(abn, options = {})
9
9
  stub = stubs[abn] || default_stub
10
+ raise stub if stub.is_a?(Exception)
10
11
  return stub if stub
11
12
 
12
13
  parse = options.fetch(:parse, true)
@@ -7,6 +7,7 @@ module AbnLookup
7
7
 
8
8
  def fetch(acn, options = {})
9
9
  stub = stubs[acn] || default_stub
10
+ raise stub if stub.is_a?(Exception)
10
11
  return stub if stub
11
12
 
12
13
  parse = options.fetch(:parse, true)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AbnLookup
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
data/lib/abn_lookup.rb CHANGED
@@ -31,7 +31,7 @@ module AbnLookup
31
31
  end
32
32
 
33
33
  def search_by_acn(acn, options = {})
34
- SearchByAcn.fetch(acn)
34
+ SearchByAcn.fetch(acn, options)
35
35
  end
36
36
 
37
37
  def search_by_name(name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abn_lookup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lairton Mendes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday