apialerts 1.0.0.alpha.1 → 1.0.0
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 +4 -4
- data/README.md +13 -1
- data/lib/apialerts/version.rb +1 -1
- metadata +4 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 830d07bd6dc59ec0fbce93cbed40c462b4ff949b3e6eb56f080af33d4a490276
|
|
4
|
+
data.tar.gz: fbe74c44c1896b4f5ef8ffb2e9ba446b22a2458eee99fab3f575004083564a73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee49810d665e57dff3273370f5957b84d0b190e622958170ca7ab261c515b4eb32f9e396d1cbe27387f535011d3b7fae01cf058f04ba7f1e016ad16c031f2b79
|
|
7
|
+
data.tar.gz: 798858cfde967260149f039e6a200dee8259d7610dad1a45388bee3f357f1e0e12c1c997316e77b5c07698989b9cf09e90e60cac1246f7c27a57d89024a7cfe4
|
data/README.md
CHANGED
|
@@ -73,7 +73,7 @@ event = ApiAlerts::Event.new(
|
|
|
73
73
|
title: 'Deployed',
|
|
74
74
|
tags: ['CI/CD', 'Ruby'],
|
|
75
75
|
link: 'https://github.com/apialerts/apialerts-ruby/actions',
|
|
76
|
-
data: {
|
|
76
|
+
data: { commit: 'a1b2c3d' }
|
|
77
77
|
)
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -87,6 +87,18 @@ ApiAlerts.send(event, api_key: 'other-workspace-key')
|
|
|
87
87
|
result = ApiAlerts.send_async(event, api_key: 'other-workspace-key')
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
+
### Instance client
|
|
91
|
+
|
|
92
|
+
Construct `ApiAlerts::Client` directly when you need multiple clients (for example one per workspace) or prefer dependency injection over the global singleton. It exposes the same `send` / `send_async` methods.
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
client = ApiAlerts::Client.new('your-api-key')
|
|
96
|
+
|
|
97
|
+
client.send(ApiAlerts::Event.new(message: 'Deploy complete'))
|
|
98
|
+
|
|
99
|
+
result = client.send_async(ApiAlerts::Event.new(message: 'Deploy complete'))
|
|
100
|
+
```
|
|
101
|
+
|
|
90
102
|
### SendResult fields
|
|
91
103
|
|
|
92
104
|
`send_async` always returns a `SendResult` - it never raises.
|
data/lib/apialerts/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apialerts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- API Alerts
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: net-http
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - ">="
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.3'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - ">="
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.3'
|
|
27
12
|
- !ruby/object:Gem::Dependency
|
|
28
13
|
name: rspec
|
|
29
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,7 +72,6 @@ metadata:
|
|
|
87
72
|
source_code_uri: https://github.com/apialerts/apialerts-ruby
|
|
88
73
|
bug_tracker_uri: https://github.com/apialerts/apialerts-ruby/issues
|
|
89
74
|
rubygems_mfa_required: 'true'
|
|
90
|
-
post_install_message:
|
|
91
75
|
rdoc_options: []
|
|
92
76
|
require_paths:
|
|
93
77
|
- lib
|
|
@@ -95,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
95
79
|
requirements:
|
|
96
80
|
- - ">="
|
|
97
81
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: 3.
|
|
82
|
+
version: 3.3.0
|
|
99
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
84
|
requirements:
|
|
101
85
|
- - ">="
|
|
102
86
|
- !ruby/object:Gem::Version
|
|
103
87
|
version: '0'
|
|
104
88
|
requirements: []
|
|
105
|
-
rubygems_version:
|
|
106
|
-
signing_key:
|
|
89
|
+
rubygems_version: 4.0.10
|
|
107
90
|
specification_version: 4
|
|
108
91
|
summary: Ruby client for the API Alerts notification platform
|
|
109
92
|
test_files: []
|