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 +4 -4
- data/lib/shipyrd/client.rb +2 -8
- data/lib/shipyrd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b988c2350fa48044fbef604ad868571d9730c089725062f120b2b22d3da8e02
|
|
4
|
+
data.tar.gz: 67b6df1cd737d04ac6c73ca7fcc64843d80cfd26b4e4564a54fbb0dd275b225f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9e9813bafcb8a60628689727aafd84e63c47f3a8f1e3f8e533dd56963e70ef915a2c1f2f4cd9ce9d8cd3e02bc4da36477fb4ccd78930a6e30d9896bd2afb23bb
|
|
7
|
+
data.tar.gz: 20af02a805bd95be735dac9a66b596294b772606f91c8f0ec9a2e82a49754521105a35cd575d6480f04fd188230d491c0d73980973cd616dd3fbc971baf390cb
|
data/lib/shipyrd/client.rb
CHANGED
|
@@ -93,7 +93,7 @@ class Shipyrd::Client
|
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
def validate_configuration
|
|
96
|
-
|
|
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
|
|
112
|
+
return "https://hooks.shipyrd.io" if host.nil?
|
|
119
113
|
return host if host.start_with?("https")
|
|
120
114
|
|
|
121
115
|
"https://#{host}"
|
data/lib/shipyrd/version.rb
CHANGED
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.
|
|
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-
|
|
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:
|