exception_notification-lark-notifier 1.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5f0ab0e3d65f71e4078769b0261b913088a32b48c400e731f6bc88b97db15b9
4
- data.tar.gz: e54d66cb04d799fa8f6df66e13b3b5ea2befa83b9f22c75daeff8e6bd5b3aa4b
3
+ metadata.gz: a952dcfa9e9a72d7ece18771204fb3ccd603c557743483b0bdedee25895ada95
4
+ data.tar.gz: 8914ae0f5ef4c17d332da7d96ce87df098b968c93b90cdc4e89cebfd9a8a2237
5
5
  SHA512:
6
- metadata.gz: aca1f9d76f52fcdbc8cb5b994862a6b1af7867bc5db0b77ab89fa5f664387ecb9ee095e7795d3a18d2eb4f152b08d9b8c27559c0f1ca4db8fbdbe2b5286db57b
7
- data.tar.gz: 7ddb0447939c148d101d174a6c9c2dfc4922e2c8ea71d0be8d7218f425953eab4e9e3faf3bd69187bbb35856e9e5359c66b8e214c93efd98dcfc06a221b4273f
6
+ metadata.gz: f3b006430401da944ee17f5a5e55a2594c97030b8637013b176443641471426a686ee713c82199a3bbb8516910efd5d1be3097d7f9a077ac2105a0e64cc84f1c
7
+ data.tar.gz: ce331203d3d2cb020ec008d70a1ecbbc207cc20e7253e8011e98e73937bd1a65e61c53c19537966929f7071de1ee252419a36affc59dac63e2a52b80b21dfed6
data/Gemfile.lock CHANGED
@@ -1,40 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exception_notification-lark-notifier (1.0.1)
4
+ exception_notification-lark-notifier (1.0.2)
5
5
  exception_notification (~> 4.0)
6
6
  http (~> 5.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (7.0.4)
12
- actionpack (= 7.0.4)
13
- actionview (= 7.0.4)
14
- activejob (= 7.0.4)
15
- activesupport (= 7.0.4)
11
+ actionmailer (7.0.4.3)
12
+ actionpack (= 7.0.4.3)
13
+ actionview (= 7.0.4.3)
14
+ activejob (= 7.0.4.3)
15
+ activesupport (= 7.0.4.3)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  net-imap
18
18
  net-pop
19
19
  net-smtp
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (7.0.4)
22
- actionview (= 7.0.4)
23
- activesupport (= 7.0.4)
21
+ actionpack (7.0.4.3)
22
+ actionview (= 7.0.4.3)
23
+ activesupport (= 7.0.4.3)
24
24
  rack (~> 2.0, >= 2.2.0)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
28
- actionview (7.0.4)
29
- activesupport (= 7.0.4)
28
+ actionview (7.0.4.3)
29
+ activesupport (= 7.0.4.3)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
34
- activejob (7.0.4)
35
- activesupport (= 7.0.4)
34
+ activejob (7.0.4.3)
35
+ activesupport (= 7.0.4.3)
36
36
  globalid (>= 0.3.6)
37
- activesupport (7.0.4)
37
+ activesupport (7.0.4.3)
38
38
  concurrent-ruby (~> 1.0, >= 1.0.2)
39
39
  i18n (>= 1.6, < 2)
40
40
  minitest (>= 5.1)
@@ -44,7 +44,7 @@ GEM
44
44
  ast (2.4.2)
45
45
  builder (3.2.4)
46
46
  childprocess (4.1.0)
47
- concurrent-ruby (1.1.10)
47
+ concurrent-ruby (1.2.2)
48
48
  crack (0.4.5)
49
49
  rexml
50
50
  crass (1.0.6)
@@ -61,7 +61,7 @@ GEM
61
61
  ffi-compiler (1.0.1)
62
62
  ffi (>= 1.0.0)
63
63
  rake
64
- globalid (1.0.0)
64
+ globalid (1.1.0)
65
65
  activesupport (>= 5.0)
66
66
  hashdiff (1.0.1)
67
67
  http (5.1.1)
@@ -72,7 +72,7 @@ GEM
72
72
  http-cookie (1.0.5)
73
73
  domain_name (~> 0.5)
74
74
  http-form_data (2.3.0)
75
- i18n (1.12.0)
75
+ i18n (1.13.0)
76
76
  concurrent-ruby (~> 1.0)
77
77
  iniparse (1.5.0)
78
78
  json (2.6.3)
@@ -80,16 +80,16 @@ GEM
80
80
  llhttp-ffi (0.4.0)
81
81
  ffi-compiler (~> 1.0)
82
82
  rake (~> 13.0)
83
- loofah (2.19.1)
83
+ loofah (2.21.2)
84
84
  crass (~> 1.0.2)
85
- nokogiri (>= 1.5.9)
86
- mail (2.8.0)
85
+ nokogiri (>= 1.12.0)
86
+ mail (2.8.1)
87
87
  mini_mime (>= 0.1.1)
88
88
  net-imap
89
89
  net-pop
90
90
  net-smtp
91
91
  mini_mime (1.1.2)
92
- minitest (5.16.3)
92
+ minitest (5.18.0)
93
93
  net-imap (0.3.4)
94
94
  date
95
95
  net-protocol
@@ -99,7 +99,7 @@ GEM
99
99
  timeout
100
100
  net-smtp (0.3.3)
101
101
  net-protocol
102
- nokogiri (1.13.10-x86_64-linux)
102
+ nokogiri (1.14.4-x86_64-linux)
103
103
  racc (~> 1.4)
104
104
  overcommit (0.59.1)
105
105
  childprocess (>= 0.6.3, < 5)
@@ -110,13 +110,13 @@ GEM
110
110
  ast (~> 2.4.1)
111
111
  public_suffix (5.0.1)
112
112
  racc (1.6.2)
113
- rack (2.2.5)
114
- rack-test (2.0.2)
113
+ rack (2.2.7)
114
+ rack-test (2.1.0)
115
115
  rack (>= 1.3)
116
116
  rails-dom-testing (2.0.3)
117
117
  activesupport (>= 4.2.0)
118
118
  nokogiri (>= 1.6)
119
- rails-html-sanitizer (1.4.4)
119
+ rails-html-sanitizer (1.5.0)
120
120
  loofah (~> 2.19, >= 2.19.1)
121
121
  rainbow (3.1.1)
122
122
  rake (13.0.6)
@@ -156,8 +156,8 @@ GEM
156
156
  language_server-protocol (~> 3.17.0.2)
157
157
  rubocop (= 1.40.0)
158
158
  rubocop-performance (= 1.15.1)
159
- timeout (0.3.1)
160
- tzinfo (2.0.5)
159
+ timeout (0.3.2)
160
+ tzinfo (2.0.6)
161
161
  concurrent-ruby (~> 1.0)
162
162
  unf (0.1.4)
163
163
  unf_ext
@@ -21,8 +21,13 @@ module ExceptionNotificationLarkNotifier
21
21
  parse_response(response) do |parse_as, result|
22
22
  case parse_as
23
23
  when :json
24
- break result if result["StatusCode"] == 0
25
- raise ExceptionNotificationLarkNotifier::Exceptions::APIError, result["msg"]
24
+ if result.key?("code")
25
+ break result if result["code"] == 0
26
+ raise ExceptionNotificationLarkNotifier::Exceptions::APIError, result["msg"]
27
+ else
28
+ break result if result["StatusCode"] == 0
29
+ raise ExceptionNotificationLarkNotifier::Exceptions::APIError, result["StatusMessage"]
30
+ end
26
31
  else
27
32
  result
28
33
  end
@@ -1,3 +1,3 @@
1
1
  module ExceptionNotificationLarkNotifier
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification-lark-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Doe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exception_notification