shipyrd 0.2.8 → 0.2.9

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: fe5022a38929c185905c3cdcbdc369f2c1248ecceeb5bf168851de844b6f4016
4
- data.tar.gz: bae76bddedb65ba16f869eaeba93c295854d35e39508794a3f1b274087971970
3
+ metadata.gz: 1b988c2350fa48044fbef604ad868571d9730c089725062f120b2b22d3da8e02
4
+ data.tar.gz: 67b6df1cd737d04ac6c73ca7fcc64843d80cfd26b4e4564a54fbb0dd275b225f
5
5
  SHA512:
6
- metadata.gz: 9b0e4dcc34ec8273699b4d049a3c5f77e6cbb197b270461dc375445bca062b90ef7fed8b976a89a7608203e28e10c0a0dda0f9404bc561c24f2c1ec07e096eb0
7
- data.tar.gz: 59a9bb7a98ae6a4b9de55bf2ac82f6d7a1f2a704e6a0290dfde85ceea1125f52499d356f937214a281ead64e2a67eed24d3dbcabbda07f7e7f34c431719254ef
6
+ metadata.gz: 9e9813bafcb8a60628689727aafd84e63c47f3a8f1e3f8e533dd56963e70ef915a2c1f2f4cd9ce9d8cd3e02bc4da36477fb4ccd78930a6e30d9896bd2afb23bb
7
+ data.tar.gz: 20af02a805bd95be735dac9a66b596294b772606f91c8f0ec9a2e82a49754521105a35cd575d6480f04fd188230d491c0d73980973cd616dd3fbc971baf390cb
@@ -93,7 +93,7 @@ class Shipyrd::Client
93
93
  end
94
94
 
95
95
  def validate_configuration
96
- valid_host? && valid_api_key?
96
+ valid_api_key?
97
97
 
98
98
  true
99
99
  rescue ArgumentError => e
@@ -102,12 +102,6 @@ class Shipyrd::Client
102
102
  false
103
103
  end
104
104
 
105
- def valid_host?
106
- raise ArgumentError, "ENV['SHIPYRD_HOST'] is not configured, disabling" unless host
107
-
108
- true
109
- end
110
-
111
105
  def valid_api_key?
112
106
  raise ArgumentError, "ENV['SHIPYRD_API_KEY'] is not configured, disabling" unless api_key
113
107
 
@@ -115,7 +109,7 @@ class Shipyrd::Client
115
109
  end
116
110
 
117
111
  def parse_host(host)
118
- return nil unless host
112
+ return "https://hooks.shipyrd.io" if host.nil?
119
113
  return host if host.start_with?("https")
120
114
 
121
115
  "https://#{host}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shipyrd
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.9"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipyrd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Hammond
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-12-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The companion gem for Shipyrd, the Kamal deployment dashboard
14
14
  email: