groundskeeper-bitcore 0.26.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 487deba234c2f61bd24c532e024f46ab91bf615ef629dd7bebe98e0af2c8e1ca
4
- data.tar.gz: 051c6767dc1c7e3d55b53b7fb47ae049fb0aa55e6bf72f32949bc4a69befb583
3
+ metadata.gz: b84743a924001b9974f6a2cc6a26221ba4db14ec965820e69912be856832c7b8
4
+ data.tar.gz: 0edf6370ce08b089fd8e75473aa187c7901682d61c60f0fde032a264ef58fffb
5
5
  SHA512:
6
- metadata.gz: 80f39b0dbeb4e1dcb1c83ad1ce380ab5338c14dc4283317f353e7b93ac83fb2328b160f86f53f4812d649e13f49e7fc13c9c014cb11fb0be92e1ae823ef533d3
7
- data.tar.gz: dd611aebef24842096a6a8e365bc4bc379c29cbefdff40ceeb8214553a5ca447b0f58f43a5d7aaf9afc19b51cbd4933f4d45f4f7d3600950d294c0cb19fb955f
6
+ metadata.gz: f9fb871c2d81616fe2995175a60efe0e277bf4022a06779bc20153aacc58b6b5395bd901d35dc21847782339273b22fb76196ad2a4740294c0657884c0db6516
7
+ data.tar.gz: 1f389c113bdcecd0eae4f0191cc1e299d465d749c3c9001bacbc0cd376a7728d8a2cc628919cc246e7f83cf190fc9399e299b85778e25467ac9015768c6b8f50
@@ -55,7 +55,7 @@ module Groundskeeper
55
55
  # rubocop:enable Metrics/MethodLength
56
56
 
57
57
  def credentials?
58
- ENV[BITBUCKET_USERNAME].present? && ENV[BITBUCKET_APP_PASSWORD].present?
58
+ !ENV.fetch(BITBUCKET_USERNAME, "").empty? && !ENV.fetch(BITBUCKET_APP_PASSWORD, "").empty?
59
59
  end
60
60
 
61
61
  private
@@ -292,7 +292,8 @@ module Groundskeeper
292
292
  message = jira.add_version_to_remote_issues(
293
293
  next_jira_version_name, issue_ids
294
294
  )
295
- if message.blank?
295
+
296
+ if message.nil? || message.empty?
296
297
  console.say("# added version to Jira issues #{issue_ids}", :green)
297
298
  else
298
299
  announce_error(message)
@@ -104,9 +104,9 @@ module Groundskeeper
104
104
  end
105
105
 
106
106
  def credentials?
107
- ENV[JIRA_USERNAME_KEY].present? &&
108
- ENV[JIRA_API_TOKEN_KEY].present? &&
109
- ENV[JIRA_SITE_KEY].present?
107
+ !ENV.fetch(JIRA_USERNAME_KEY, "").empty? &&
108
+ !ENV.fetch(JIRA_API_TOKEN_KEY, "").empty? &&
109
+ !ENV.fetch(JIRA_SITE_KEY, "").empty?
110
110
  end
111
111
 
112
112
  # Returns the list of Jira issues found in a set of commit messages.
@@ -14,7 +14,6 @@ module Groundskeeper
14
14
  PROJECT_NAME_KEY = "name"
15
15
  FULL_DNS_KEY = "full_dns"
16
16
  RVM_RUBY_VERSION_KEY = "ruby_version"
17
- DB_ENV_VARIABLES_KEY = "db_env_variables"
18
17
  SENTRY_DSN_KEY = "sentry_dsn"
19
18
  SENTRY_PROJECT_KEY = "sentry_project"
20
19
  SMTP_DOMAIN = "smtp_domain"
@@ -60,12 +59,6 @@ module Groundskeeper
60
59
  details.dig(FULL_DNS_KEY, stage.to_s) || ""
61
60
  end
62
61
 
63
- # :nocov:
64
- def db_env_variables(stage)
65
- details.dig(DB_ENV_VARIABLES_KEY, stage.to_s) || ""
66
- end
67
- # :nocov:
68
-
69
62
  # :nocov:
70
63
  def smtp_domain
71
64
  details[SMTP_DOMAIN] || ""
@@ -51,7 +51,7 @@ module Groundskeeper
51
51
  end
52
52
 
53
53
  def credentials?
54
- ENV[SENTRY_AUTH_TOKEN].present? && ENV[SENTRY_ORG].present?
54
+ !ENV.fetch(SENTRY_AUTH_TOKEN, "").empty? && !ENV.fetch(SENTRY_ORG, "").empty?
55
55
  end
56
56
  end
57
57
  end
@@ -31,9 +31,9 @@ module Groundskeeper
31
31
  end
32
32
 
33
33
  def credentials?
34
- ENV[SLACK_WORKSPACE_KEY].present? &&
35
- ENV[SLACK_CHANNEL_KEY].present? &&
36
- ENV[SLACK_TOKEN_KEY].present?
34
+ !ENV.fetch(SLACK_WORKSPACE_KEY, "").empty? &&
35
+ !ENV.fetch(SLACK_CHANNEL_KEY, "").empty? &&
36
+ !ENV.fetch(SLACK_TOKEN_KEY, "").empty?
37
37
  end
38
38
  end
39
39
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.26.0"
4
+ VERSION = "0.28.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groundskeeper-bitcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RADD
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-13 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby