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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 733b5eb0bb3ff88170c66bb5b05b07d8462088a022fc458221168c62d6e55a3f
4
- data.tar.gz: 02eda7c13d6ae072664de3d151c61bdb6225232ba4854e683e726b11848795d1
3
+ metadata.gz: 5b1af0b6658cdd0f6103ffe6d9452c82796dfe8ca3f925fd9c15deb3e174a0ef
4
+ data.tar.gz: cfbda6299a9e7a1b0ef7ab7fd61cd6161c0256a9b1166f7943059112b86cf9e2
5
5
  SHA512:
6
- metadata.gz: 948ea04038276d53bd0d0d0b7d96ba204a7b3caa68a13bded17ee41c5c86164de266074e53092c3adce3e35a23dfbee985345fd0d918c37ec83673bd652a9915
7
- data.tar.gz: e82935c40cdef8adcfc66aebb7a145500f6eb27a7ae7cc9e30d4397ced851ba1ee064c024c41e8cffb58eab3c449ef675a3b72edd2f6d0a673134245b77b917a
6
+ metadata.gz: d4753657fb688e08980ced4d40ed4c86f08da31620978faf63c8f536002cfc917e946709ffd4cec663af662af8d4f384372fa7c780ae8c789d2081ae236318ed
7
+ data.tar.gz: 7f677cdb4bd4006b548c33daeb9080493e61cbe1bef6dd0ffe08d410d08ba17ae2652f3059ad971cc6abb678e12a9f356f6ef4dcab99c48cf65ace36123e5aee
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shipyrd
4
- VERSION = "0.2.6"
4
+ VERSION = "0.2.7"
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.6
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-29 00:00:00.000000000 Z
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: