groundskeeper-bitcore 0.36.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcbe30ae86e759cb40905efad8cc3149fd1743bd6794a1d739b25e498b8f0999
4
- data.tar.gz: 02d8b2f6fe6efd0f2108aa305a8eb020b99835440e90d787571bb5a0d7880ee2
3
+ metadata.gz: acb17faca7ebc66d44e466169d9967ee8e9de1c1cd06018114bbaf389cc7fae5
4
+ data.tar.gz: 3fdcd7cbb185aeb42047458dfa9bd78f91fe9980cf4a33de93a80e700962bc3d
5
5
  SHA512:
6
- metadata.gz: f05104d2de2c06a4c469b9664f998dfdf3db235d638c3f8b828b85dd27739e319921ac0ef5a4cb13ddff655f3fc65131bee779fe26dd94b035c6142968c8738e
7
- data.tar.gz: cb50c3c6b02fdb369c386ca03fada47a6a5bae33ea13f35089848fbcbe549f649b7b556c50ac8bae3799c71974c0858bdebf1922412539bf148f07d8adad3c52
6
+ metadata.gz: 298d87552b3011c31f24ace63838de9725a9cded2ff69412da045bb0de777ac7992e9032a1a4138c26eff3ba2e6e19e9e8f5e0fda17c845bacc1049bf7abb3f5
7
+ data.tar.gz: b1ca94b34d7396b756ef26eb246fe52f51df7423ed444e9e6d4e71d7c8881190113722246a18d826bbbfdfdfaabd5bc957b35594a343151ef5160c14500c358e
data/.rubocop.yml CHANGED
@@ -1,4 +1,4 @@
1
- require:
1
+ plugins:
2
2
  - rubocop-minitest
3
3
  - rubocop-performance
4
4
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
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/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
@@ -35,7 +35,7 @@ task :before_run do
35
35
  # On each deploy, prompt for the tag
36
36
  puts "Looking up tags for project #{application}... (#{project.repo_url})"
37
37
  tags = project.tags
38
- raise "There must be a tagged release prior to deploying." if tags.count.zero?
38
+ raise "There must be a tagged release prior to deploying." if tags.none?
39
39
 
40
40
  tag = ENV.fetch("tag", nil)
41
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
@@ -133,7 +133,7 @@ module Groundskeeper
133
133
  failed_issues << issue_id
134
134
  next
135
135
  end
136
- return "" unless failed_issues.count.positive?
136
+ return "" unless failed_issues.any?
137
137
 
138
138
  "Jira issue(s) not found, is #{failed_issues.join(', ')} correct?"
139
139
  end
@@ -17,6 +17,7 @@ module Groundskeeper
17
17
  SENTRY_DSN_KEY = "sentry_dsn"
18
18
  SENTRY_PROJECT_KEY = "sentry_project"
19
19
  WHENEVER_KEY = "uses_whenever"
20
+ POSTGRES_KEY = "postgres"
20
21
 
21
22
  def self.build(repository_name)
22
23
  new(
@@ -77,6 +78,10 @@ module Groundskeeper
77
78
  end
78
79
  # :nocov:
79
80
 
81
+ def postgres_version(stage)
82
+ details.dig(POSTGRES_KEY, stage.to_s)
83
+ end
84
+
80
85
  # :nocov:
81
86
  def server_config(stage)
82
87
  servers[full_dns(stage)]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.36.0"
4
+ VERSION = "0.37.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.36.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-03-06 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.2.3
251
+ rubygems_version: 3.5.11
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: A gem for managing releases and deployments.