groundskeeper-bitcore 0.35.0 → 0.37.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 +4 -4
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/bitbucket-pipelines.yml +1 -1
- data/config/deploy.rb +16 -0
- data/config/git_config.rb +1 -2
- data/config/predeploy.rb +0 -17
- data/lib/groundskeeper/commands.rb +1 -1
- data/lib/groundskeeper/jira.rb +1 -1
- data/lib/groundskeeper/project.rb +5 -7
- data/lib/groundskeeper/version.rb +1 -1
- metadata +3 -4
- data/config/rails_config.rb.erb +0 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acb17faca7ebc66d44e466169d9967ee8e9de1c1cd06018114bbaf389cc7fae5
|
4
|
+
data.tar.gz: 3fdcd7cbb185aeb42047458dfa9bd78f91fe9980cf4a33de93a80e700962bc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 298d87552b3011c31f24ace63838de9725a9cded2ff69412da045bb0de777ac7992e9032a1a4138c26eff3ba2e6e19e9e8f5e0fda17c845bacc1049bf7abb3f5
|
7
|
+
data.tar.gz: b1ca94b34d7396b756ef26eb246fe52f51df7423ed444e9e6d4e71d7c8881190113722246a18d826bbbfdfdfaabd5bc957b35594a343151ef5160c14500c358e
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.3
|
data/README.md
CHANGED
@@ -92,7 +92,7 @@ prompt that will allow you to experiment.
|
|
92
92
|
|
93
93
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
94
94
|
|
95
|
-
To release a new version, update the version number in `version.rb`, and then run
|
95
|
+
To release a new version, update the version number in `version.rb`, commit the changes, and then run
|
96
96
|
`bundle exec rake release`. You will then need to create a version branch `release/x.x.x` and push to version control.
|
97
97
|
After merge checks pass merge the branch and pull changes into local master branch. Create and push the new tag
|
98
98
|
`git tag x.x.x` and `git push origin master --tags`. Then if you have permissions,
|
data/bitbucket-pipelines.yml
CHANGED
data/config/deploy.rb
CHANGED
@@ -99,3 +99,19 @@ task deploy: :remote_environment do
|
|
99
99
|
|
100
100
|
invoke :open_browser
|
101
101
|
end
|
102
|
+
|
103
|
+
namespace :deploy_prepare do
|
104
|
+
desc "Configure Postgres."
|
105
|
+
task :configure_pg do
|
106
|
+
pg_config = "/usr/pgsql-#{fetch(:project).postgres_version(fetch(:stage))}/bin/pg_config"
|
107
|
+
comment "Configuring Postgres with config #{pg_config}"
|
108
|
+
command "bundle config build.pg -- --with-pg-config=#{pg_config}"
|
109
|
+
end
|
110
|
+
|
111
|
+
desc "Set owner."
|
112
|
+
task :set_owner do
|
113
|
+
owner = fetch(:nginx) ? "nginx" : "apache"
|
114
|
+
comment "Setting owner of #{fetch :deploy_to} #{owner}"
|
115
|
+
command "sudo chgrp -R #{owner} #{fetch :deploy_to}"
|
116
|
+
end
|
117
|
+
end
|
data/config/git_config.rb
CHANGED
@@ -28,7 +28,6 @@ task :before_run do
|
|
28
28
|
set :deploy_to, project.deploy_to
|
29
29
|
set :forward_agent, true
|
30
30
|
set :bundle_path, "bundle"
|
31
|
-
set :smtp_domain, project.smtp_domain
|
32
31
|
|
33
32
|
set :rvm_ruby_version, project.rvm_ruby_version
|
34
33
|
set :rvm_type, :system
|
@@ -36,7 +35,7 @@ task :before_run do
|
|
36
35
|
# On each deploy, prompt for the tag
|
37
36
|
puts "Looking up tags for project #{application}... (#{project.repo_url})"
|
38
37
|
tags = project.tags
|
39
|
-
raise "There must be a tagged release prior to deploying." if tags.
|
38
|
+
raise "There must be a tagged release prior to deploying." if tags.none?
|
40
39
|
|
41
40
|
tag = ENV.fetch("tag", nil)
|
42
41
|
unless tags.include? tag
|
data/config/predeploy.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
PG_CONFIG = "/usr/pgsql-9.3/bin/pg_config"
|
4
|
-
|
5
3
|
def load_template(name)
|
6
4
|
template_str = File.binread(File.join(File.dirname(__FILE__), name))
|
7
5
|
template = ERB.new(template_str, trim_mode: "-")
|
@@ -108,18 +106,3 @@ namespace :deploy_configure do
|
|
108
106
|
end
|
109
107
|
end
|
110
108
|
# rubocop:enable Metrics/BlockLength
|
111
|
-
|
112
|
-
namespace :deploy_prepare do
|
113
|
-
desc "Configure Postgres."
|
114
|
-
task :configure_pg do
|
115
|
-
comment "Configuring Postgres with config #{PG_CONFIG}"
|
116
|
-
command "bundle config build.pg -- --with-pg-config=#{PG_CONFIG}"
|
117
|
-
end
|
118
|
-
|
119
|
-
desc "Set owner."
|
120
|
-
task :set_owner do
|
121
|
-
owner = fetch(:nginx) ? "nginx" : "apache"
|
122
|
-
comment "Setting owner of #{fetch :deploy_to} #{owner}"
|
123
|
-
command "sudo chgrp -R #{owner} #{fetch :deploy_to}"
|
124
|
-
end
|
125
|
-
end
|
@@ -107,7 +107,7 @@ module Groundskeeper
|
|
107
107
|
end
|
108
108
|
# rubocop:enable Metrics/AbcSize
|
109
109
|
|
110
|
-
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
110
|
+
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
111
111
|
def release(options = {})
|
112
112
|
is_initial_release = !version_file.exists?
|
113
113
|
|
data/lib/groundskeeper/jira.rb
CHANGED
@@ -16,8 +16,8 @@ module Groundskeeper
|
|
16
16
|
RVM_RUBY_VERSION_KEY = "ruby_version"
|
17
17
|
SENTRY_DSN_KEY = "sentry_dsn"
|
18
18
|
SENTRY_PROJECT_KEY = "sentry_project"
|
19
|
-
SMTP_DOMAIN = "smtp_domain"
|
20
19
|
WHENEVER_KEY = "uses_whenever"
|
20
|
+
POSTGRES_KEY = "postgres"
|
21
21
|
|
22
22
|
def self.build(repository_name)
|
23
23
|
new(
|
@@ -56,12 +56,6 @@ module Groundskeeper
|
|
56
56
|
details.dig(FULL_DNS_KEY, stage.to_s) || ""
|
57
57
|
end
|
58
58
|
|
59
|
-
# :nocov:
|
60
|
-
def smtp_domain
|
61
|
-
details[SMTP_DOMAIN] || ""
|
62
|
-
end
|
63
|
-
# :nocov:
|
64
|
-
|
65
59
|
# :nocov:
|
66
60
|
def rvm_ruby_version
|
67
61
|
details[RVM_RUBY_VERSION_KEY] || ""
|
@@ -84,6 +78,10 @@ module Groundskeeper
|
|
84
78
|
end
|
85
79
|
# :nocov:
|
86
80
|
|
81
|
+
def postgres_version(stage)
|
82
|
+
details.dig(POSTGRES_KEY, stage.to_s)
|
83
|
+
end
|
84
|
+
|
87
85
|
# :nocov:
|
88
86
|
def server_config(stage)
|
89
87
|
servers[full_dns(stage)]
|
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.
|
4
|
+
version: 0.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RADD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jira-ruby
|
@@ -204,7 +204,6 @@ files:
|
|
204
204
|
- config/deploy.rb
|
205
205
|
- config/git_config.rb
|
206
206
|
- config/predeploy.rb
|
207
|
-
- config/rails_config.rb.erb
|
208
207
|
- config/secrets_config.yml.erb
|
209
208
|
- config/tasks.rb
|
210
209
|
- groundskeeper.gemspec
|
@@ -249,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
248
|
- !ruby/object:Gem::Version
|
250
249
|
version: '0'
|
251
250
|
requirements: []
|
252
|
-
rubygems_version: 3.
|
251
|
+
rubygems_version: 3.5.11
|
253
252
|
signing_key:
|
254
253
|
specification_version: 4
|
255
254
|
summary: A gem for managing releases and deployments.
|
data/config/rails_config.rb.erb
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
<% project = fetch :project %>
|
2
|
-
Rails.application.configure do
|
3
|
-
# For catching exceptions
|
4
|
-
config.sentry_dsn = '<%= project.sentry_dsn %>'
|
5
|
-
|
6
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
7
|
-
|
8
|
-
# Code is not reloaded between requests.
|
9
|
-
config.cache_classes = true
|
10
|
-
|
11
|
-
# Eager load code on boot. This eager loads most of Rails and
|
12
|
-
# your application in memory, allowing both thread web servers
|
13
|
-
# and those relying on copy on write to perform better.
|
14
|
-
# Rake tasks automatically ignore this option for performance.
|
15
|
-
config.eager_load = true
|
16
|
-
|
17
|
-
# Full error reports are disabled and caching is turned on.
|
18
|
-
config.consider_all_requests_local = false
|
19
|
-
config.action_controller.perform_caching = true
|
20
|
-
|
21
|
-
# Disable serving static files from the `/public` folder by default since
|
22
|
-
# Apache or NGINX already handles this.
|
23
|
-
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
24
|
-
|
25
|
-
# Compress JavaScripts and CSS.
|
26
|
-
config.assets.js_compressor = :uglifier
|
27
|
-
# config.assets.css_compressor = :sass
|
28
|
-
|
29
|
-
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
-
config.assets.compile = false
|
31
|
-
|
32
|
-
# Specifies the header that your server uses for sending files.
|
33
|
-
config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for apache
|
34
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
35
|
-
|
36
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
37
|
-
config.force_ssl = true
|
38
|
-
|
39
|
-
# Set to :debug to see everything in the log.
|
40
|
-
config.log_level = :info
|
41
|
-
|
42
|
-
# Prepend all log lines with the following tags.
|
43
|
-
config.log_tags = [ :request_id ]
|
44
|
-
|
45
|
-
# Use a different logger for distributed setups.
|
46
|
-
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
47
|
-
|
48
|
-
# Use a different cache store in production.
|
49
|
-
# config.cache_store = :mem_cache_store
|
50
|
-
|
51
|
-
config.action_mailer.perform_caching = false
|
52
|
-
|
53
|
-
# Precompile additional assets.
|
54
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
55
|
-
# config.assets.precompile += %w( search.js )
|
56
|
-
|
57
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
58
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
59
|
-
config.action_mailer.default_url_options = { host: '<%= fetch :domain %>' }
|
60
|
-
config.action_mailer.delivery_method = :smtp
|
61
|
-
config.action_mailer.raise_delivery_errors = false
|
62
|
-
config.action_mailer.perform_deliveries = true
|
63
|
-
config.action_mailer.smtp_settings = {
|
64
|
-
authentication: :plain,
|
65
|
-
address: 'smtp.mailgun.org',
|
66
|
-
port: 587,
|
67
|
-
domain: '<%= fetch :smtp_domain %>',
|
68
|
-
user_name: ENV['mailgun_db_username'],
|
69
|
-
password: ENV['mailgun_db_password']
|
70
|
-
}
|
71
|
-
|
72
|
-
Rails.application.routes.default_url_options[:host] = '<%= fetch :domain %>'
|
73
|
-
Rails.application.routes.default_url_options[:protocol] = 'https'
|
74
|
-
|
75
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
76
|
-
# the I18n.default_locale when a translation can not be found).
|
77
|
-
config.i18n.fallbacks = true
|
78
|
-
|
79
|
-
# Send deprecation notices to registered listeners.
|
80
|
-
config.active_support.deprecation = :notify
|
81
|
-
|
82
|
-
# Disable automatic flushing of the log to improve performance.
|
83
|
-
# config.autoflush_log = false
|
84
|
-
|
85
|
-
# Use default logging formatter so that PID and timestamp are not suppressed.
|
86
|
-
config.log_formatter = ::Logger::Formatter.new
|
87
|
-
end
|