fewald-worklog 0.3.10 → 0.3.12
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/.version +1 -1
- data/lib/github/client.rb +4 -2
- data/lib/log_entry.rb +3 -5
- data/lib/worklog.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6beefb947c146666fb68e4a32a2da2ae567d78297e30fc5e76e9a39f81d28df
|
|
4
|
+
data.tar.gz: 2ff616ff8c4eb3eef62089842c6cd8d6efc05b694053b9f249cf00821dbb1533
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eed18a21ea6c2059d18f7f94ed48d66b6b5718af10e7d052ebc1ec4425975d3ed2e8a1abd74e879ad7cd077b56e7fd5ceb05badec9065bb3d2db176b008547df
|
|
7
|
+
data.tar.gz: 7c3521ca9cf4227fd68cabe92b3142d23f65e0225b25378d38661beb1dd666ba493e95c977a5cd0d68f97ae0248fedc2a1b27ddb43f0d57c8e3ee079ac492bc6
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.12
|
data/lib/github/client.rb
CHANGED
|
@@ -163,8 +163,10 @@ module Worklog
|
|
|
163
163
|
# @raise [GithubAPIError] if the API token is missing
|
|
164
164
|
def verify_token!
|
|
165
165
|
WorkLogger.debug 'Verifying GitHub API token presence'
|
|
166
|
-
@configuration.github.api_key ||
|
|
167
|
-
|
|
166
|
+
return unless @configuration.github.api_key.nil? || @configuration.github.api_key.empty?
|
|
167
|
+
|
|
168
|
+
raise(GithubAPIError,
|
|
169
|
+
'GitHub API key is not configured. Please set it in the configuration.')
|
|
168
170
|
end
|
|
169
171
|
end
|
|
170
172
|
end
|
data/lib/log_entry.rb
CHANGED
|
@@ -68,9 +68,9 @@ module Worklog
|
|
|
68
68
|
next unless known_people && known_people[person]
|
|
69
69
|
|
|
70
70
|
msg.gsub!(/[~@]#{person}/) do |match|
|
|
71
|
-
s =
|
|
72
|
-
s
|
|
73
|
-
s
|
|
71
|
+
s = String.new
|
|
72
|
+
s << ' ' if match[0] == ' '
|
|
73
|
+
s << "#{Rainbow(known_people[person].name).underline} (~#{person})" if known_people && known_people[person]
|
|
74
74
|
s
|
|
75
75
|
end
|
|
76
76
|
end
|
|
@@ -87,8 +87,6 @@ module Worklog
|
|
|
87
87
|
msg
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
s << " [#{Rainbow(@ticket).fg(:blue)}]" if @ticket
|
|
91
|
-
|
|
92
90
|
s << format_metadata
|
|
93
91
|
s
|
|
94
92
|
end
|
data/lib/worklog.rb
CHANGED