groundskeeper-bitcore 0.16.0 → 0.17.0

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: 1448cba896d4d2a4dd501ba945c66fb33ea2d61b039a931e3b2e281efbd2f8e6
4
- data.tar.gz: 224187c49d02f02eadbbb85421579ece568c270307b3eff50dd044684f26b949
3
+ metadata.gz: 76a66b65c4de7ff36bc401d84e100417c577bd6fc79fa82a3a25e3068303afba
4
+ data.tar.gz: cbebbf63ed96160aacaf9df0d8b51a8064d747ec7a99f51f4b47e708dac74af3
5
5
  SHA512:
6
- metadata.gz: a34d5b2fa7fc5ec78c14d7e2a7b56deedf02da8433d163993925cc31594ae07f570c2682ab2273424358afb5358a16bebeb070673dd1393c97877b3708e84b65
7
- data.tar.gz: d8ca482356226b3786c69afab64e5a7e47f2233b29c2c39442111e705243c018ff6c84f64bba7ef1a5e26246afceb21ae0282328a351d7be3d20817636b7612d
6
+ metadata.gz: 668833b27cf2c40c28f8124db0ffc95d3452bf6d163408de22de3b0440b556c6276091260003e5d7d2fe7ddcfb40b7d2ad9fdf5a9911237c1bf0c933d9c6dac0
7
+ data.tar.gz: 025d383dd7bed00e1eaf0b64cbd8aead02392798d1051228eb977b1d15ae4f119e95d59eaaccd9165c9d6ad17170cc0c8a45c83928093e03b74451e474b1357f
@@ -39,3 +39,6 @@ Style/SingleLineMethods:
39
39
 
40
40
  Style/StringLiterals:
41
41
  EnforcedStyle: double_quotes
42
+
43
+ Style/IfUnlessModifier:
44
+ Enabled: false
@@ -25,6 +25,7 @@ task :before_run do
25
25
  set :deploy_to, project.deploy_to
26
26
  set :forward_agent, true
27
27
  set :bundle_path, "bundle"
28
+ set :smtp_domain, project.smtp_domain
28
29
 
29
30
  set :rvm_ruby_version, project.rvm_ruby_version
30
31
  set :rvm_type, :system
@@ -64,7 +64,7 @@ Rails.application.configure do
64
64
  authentication: :plain,
65
65
  address: 'smtp.mailgun.org',
66
66
  port: 587,
67
- domain: 'cbits.northwestern.edu',
67
+ domain: '<%= fetch :smtp_domain %>',
68
68
  user_name: ENV['mailgun_db_username'],
69
69
  password: ENV['mailgun_db_password']
70
70
  }
@@ -5,6 +5,8 @@ require "mina"
5
5
  require "pp"
6
6
  require "open3"
7
7
 
8
+ class VersionError < StandardError; end
9
+
8
10
  module Groundskeeper
9
11
  # Formulas for managing releases and deployments.
10
12
  # rubocop:disable Metrics/ClassLength
@@ -373,18 +375,26 @@ module Groundskeeper
373
375
  end
374
376
  end
375
377
 
376
- # rubocop:disable Metrics/MethodLength
378
+ # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
377
379
  def update_deployed_issues
380
+ tries = 0
381
+
378
382
  announce_step(
379
383
  "Check deployed version at #{website.uri}/#{Website::VERSION_PATH}"
380
384
  )
381
- deployed_version = website.version
382
385
 
383
- if deployed_version == ENV[TAG]
386
+ begin
387
+ deployed_version = website.version
388
+
389
+ raise VersionError unless deployed_version == ENV[TAG]
390
+
384
391
  console.say("# deployment successful", :green)
385
392
  transition_remote_issues deployed_version
386
393
  announce_in_slack deployed_version
387
- else
394
+ rescue VersionError
395
+ tries += 1
396
+ sleep 5
397
+ retry if tries < 3
388
398
  # :nocov:
389
399
  console.say(
390
400
  "something went wrong: expected version #{ENV[TAG]}, " \
@@ -394,7 +404,7 @@ module Groundskeeper
394
404
  # :nocov:
395
405
  end
396
406
  end
397
- # rubocop:enable Metrics/MethodLength
407
+ # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
398
408
 
399
409
  # :nocov:
400
410
  def release_version
@@ -17,6 +17,7 @@ module Groundskeeper
17
17
  DB_ENV_VARIABLES_KEY = "db_env_variables"
18
18
  SENTRY_DSN_KEY = "sentry_dsn"
19
19
  SENTRY_PROJECT_KEY = "sentry_project"
20
+ SMTP_DOMAIN = "smtp_domain"
20
21
  SSL_CERTIFICATE_FILE_KEY = "SSLCertificateFile"
21
22
  SSL_CERTIFICATE_CHAIN_FILE_KEY = "SSLCertificateChainFile"
22
23
  SSL_CERTIFICATE_KEY_FILE_KEY = "SSLCertificateKeyFile"
@@ -65,6 +66,12 @@ module Groundskeeper
65
66
  end
66
67
  # :nocov:
67
68
 
69
+ # :nocov:
70
+ def smtp_domain
71
+ details[SMTP_DOMAIN] || ""
72
+ end
73
+ # :nocov:
74
+
68
75
  # :nocov:
69
76
  def rvm_ruby_version
70
77
  details[RVM_RUBY_VERSION_KEY] || ""
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.16.0"
4
+ VERSION = "0.17.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groundskeeper-bitcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BIT Core
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - certs/ericcf.pem
12
- date: 2020-04-28 00:00:00.000000000 Z
12
+ date: 2020-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jira-ruby