shipyrd 0.2.6 → 0.2.7
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 +7 -2
- 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: 5b1af0b6658cdd0f6103ffe6d9452c82796dfe8ca3f925fd9c15deb3e174a0ef
|
|
4
|
+
data.tar.gz: cfbda6299a9e7a1b0ef7ab7fd61cd6161c0256a9b1166f7943059112b86cf9e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4753657fb688e08980ced4d40ed4c86f08da31620978faf63c8f536002cfc917e946709ffd4cec663af662af8d4f384372fa7c780ae8c789d2081ae236318ed
|
|
7
|
+
data.tar.gz: 7f677cdb4bd4006b548c33daeb9080493e61cbe1bef6dd0ffe08d410d08ba17ae2652f3059ad971cc6abb678e12a9f356f6ef4dcab99c48cf65ace36123e5aee
|
data/lib/shipyrd/client.rb
CHANGED
|
@@ -73,11 +73,15 @@ class Shipyrd::Client
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
def performer
|
|
76
|
-
github_username = `gh config get -h github.com username`.chomp
|
|
77
|
-
|
|
78
76
|
github_username.empty? ? ENV["KAMAL_PERFORMER"] : "https://github.com/#{github_username}"
|
|
79
77
|
end
|
|
80
78
|
|
|
79
|
+
def github_username
|
|
80
|
+
`gh config get -h github.com username`.chomp
|
|
81
|
+
rescue
|
|
82
|
+
"" # gh config get returns an empty string when not set
|
|
83
|
+
end
|
|
84
|
+
|
|
81
85
|
def commit_message
|
|
82
86
|
message = `git show -s --format=%s`.chomp
|
|
83
87
|
|
|
@@ -112,6 +116,7 @@ class Shipyrd::Client
|
|
|
112
116
|
|
|
113
117
|
def parse_host(host)
|
|
114
118
|
return nil unless host
|
|
119
|
+
return host if host.start_with?("https")
|
|
115
120
|
|
|
116
121
|
"https://#{host}"
|
|
117
122
|
end
|
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.7
|
|
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-05-
|
|
11
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: The companion gem for Shipyrd, the Kamal deployment dashboard
|
|
14
14
|
email:
|