morris 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/morris/version.rb +1 -1
  3. data/lib/morris.rb +13 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc2c10dc14e7ef184b9c23951c989fab9260bc520a438c460bde6c408c7f0473
4
- data.tar.gz: 144c9c0696b2dab10e33f46cc5d3205883bb33d16322ffd29c1a14d2a4e75eb2
3
+ metadata.gz: 07cf83296ce2b6ecdb52c4afe1b92d63fe861e57327462886cc1ba5f144e2ce5
4
+ data.tar.gz: 72d9d028fa9ee0490be70c41784de98f495774eaf25d17cb42865f182ca6c1a8
5
5
  SHA512:
6
- metadata.gz: 011a2eafbd15b9dc41d67a888c1af07ac2275642c44ee897c921a31c763ea30fc48443ded27209a4161417e1da8ecad3d536d7a1466324e04af29adc345f7ae4
7
- data.tar.gz: 032b3c67f3d4205da554a90dfe99aa4001bb36bfcde1d698114a4eb6cd630cb4c3373421bd7638c06589e135856d2174cd3b6363dc6feaf300e30938869d5a23
6
+ metadata.gz: d4af8e95bcd1b2ff5c9008f8f8a6ade8bc6e366b6ec96c349abb4298d9a4bf752fcda8bb7dbc7729c3ecd23b91d33dd85b5f3fa0696f21ec5016d00c53f72f17
7
+ data.tar.gz: f4eb227b310d4ef27bfd346c09f4604bfa29e038346429e1ab2aa5cdfe56f20226347e12e6b3f8feab4e34ce5792ae9e43f46be3e3e789df5956da82230bdd47
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Morris
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/morris.rb CHANGED
@@ -34,6 +34,19 @@ module Morris
34
34
  end
35
35
  end
36
36
 
37
+ class AccountNotFoundError < Error
38
+ attr_reader :additional_data
39
+
40
+ def initialize(msg = "Morris could not find account requested", additional_data: {})
41
+ super(msg)
42
+ @additional_data = additional_data
43
+ end
44
+
45
+ def to_honeybadger_context
46
+ additional_data
47
+ end
48
+ end
49
+
37
50
  class RetryableError < Error; end
38
51
 
39
52
  class MediaRequestTimedOutError < RetryableError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Guess
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-01 00:00:00.000000000 Z
11
+ date: 2024-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara