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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -1
  3. data/lib/apialerts/version.rb +1 -1
  4. metadata +4 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca74872675531d5f22e9ae62c2298a760e7c2ada9c33f8f00b9de4109dd7c0f7
4
- data.tar.gz: 7bd96af6093b6b5f2e74bba74f1e887cec60a9c728edfcdf46751e7d24a0e811
3
+ metadata.gz: 830d07bd6dc59ec0fbce93cbed40c462b4ff949b3e6eb56f080af33d4a490276
4
+ data.tar.gz: fbe74c44c1896b4f5ef8ffb2e9ba446b22a2458eee99fab3f575004083564a73
5
5
  SHA512:
6
- metadata.gz: 1957c3f75ac52982b322501b35082783c5be24046d336f68724a99d269e9cba1a66ced602927c180642303632a32cc99d79d9ca9e03025fa4c5ee2a29f9ff10d
7
- data.tar.gz: 0ab4395dd514436e03c6e9c35bdbcfb4e8f77a636b6449974617df69b106c905d45434d5f2dc1ee3da517dee0553b966255e6c6a5d3768d0dca22731e8102385
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: { version: '2.0.0' }
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.
@@ -1,5 +1,5 @@
1
1
  module ApiAlerts
2
- VERSION = '1.0.0.alpha.1'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  INTEGRATION_NAME = 'ruby'.freeze
4
4
  API_URL = 'https://api.apialerts.com/event'.freeze
5
5
  TIMEOUT_SECONDS = 30
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.alpha.1
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: 2026-06-13 00:00:00.000000000 Z
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.0.0
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: 3.5.22
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: []