fewald-worklog 0.3.10 → 0.3.11

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.version +1 -1
  3. data/lib/github/client.rb +4 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c918d6adace19f7c6fcf87f5a52a82c3fd3c60ddfc85e4042299e67dc204a17a
4
- data.tar.gz: d901d4d78036bb7754f58406f47a9d003690dec8a087cffcaf77bc55e0d4de26
3
+ metadata.gz: 194ae6d7e50c4b3010d53a84e0d9e25d949e374eb5fb75cf3cd51d301c087619
4
+ data.tar.gz: c4fe113cf9bed0c8c16f2bbb514d296c933a3fd99a590186bd705ad6d43dfcb6
5
5
  SHA512:
6
- metadata.gz: f7400ed28bd389bbe70c51a61abfd63ae3fe3cbc7575273b8383e85aeef6b11137b8f645b57e65fc8f5bd6bb3fe5814387b9c3b2b9e11f755dd1bae933854d2f
7
- data.tar.gz: a016e500815e38dfbb4308fe07ce599fc46f71eaf96c7fc3af668198f00b3985f09f7d02144faadca83c326cfd8b91ce201aa56b2077bae7545c012000cb7670
6
+ metadata.gz: 02627ae920d177212b611f46f6ddb888ad3b74c2c8619d1576af299aaa712503c1dd4474bebfec12fb4fe514694becd418a1b379794b1b9b3e456eaa49033a43
7
+ data.tar.gz: 609860215096e6d34b361b38e215da8ad64900113d8a6d60162dfe63dbd9ece113bc9274668055bd14825fcb45f33db32a83857e16403baf2cfef11c7f6e16b8
data/.version CHANGED
@@ -1 +1 @@
1
- 0.3.10
1
+ 0.3.11
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 || raise(GithubAPIError,
167
- 'GitHub API key is not configured. Please set it in the configuration.')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fewald-worklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Friedrich Ewald