groundskeeper-bitcore 0.36.0 → 0.38.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: 460feb1002c3e110369b47ea3eb510299b848b447ab99175cc1214fa4cf216a6
4
+ data.tar.gz: da6e41aba8345a07fb52d4d62c2ab2c4ff119688d7145f1c60c638abbfa2c862
5
5
  SHA512:
6
- metadata.gz: f05104d2de2c06a4c469b9664f998dfdf3db235d638c3f8b828b85dd27739e319921ac0ef5a4cb13ddff655f3fc65131bee779fe26dd94b035c6142968c8738e
7
- data.tar.gz: cb50c3c6b02fdb369c386ca03fada47a6a5bae33ea13f35089848fbcbe549f649b7b556c50ac8bae3799c71974c0858bdebf1922412539bf148f07d8adad3c52
6
+ metadata.gz: ac00715064a86fe38cc2f41a3ccc275afa90aba83a8d7efe174a471c36ee449653880095732ebb87f819fd02593d137d1d5a38080879f4a3d57f25e7a1738d33
7
+ data.tar.gz: 0a67b2deed76acf47a8b883ffd440910877ee541fa67fb013a8d4c26e9929caf551dcdc852a647b3319aa3b0e9f099bd0022ae20b6a00be7e0074ad64f694df3
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
@@ -36,6 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_dependency "activesupport"
37
37
  spec.add_dependency "mina", "~> 1.2"
38
38
  spec.add_dependency "mina-whenever", "~> 1.0.1"
39
+ spec.add_dependency "openssl", "~> 3.3"
39
40
  spec.add_dependency "thor", "~> 1.0"
40
41
 
41
42
  spec.add_development_dependency "bundler", "~> 2.0"
@@ -6,6 +6,7 @@ module Groundskeeper
6
6
  # Bootstrap this as a Thor application.
7
7
  class Application < Thor
8
8
  include Thor::Actions
9
+
9
10
  attr_reader :commands
10
11
 
11
12
  class_option :simulate, desc: "Simulate mina"
@@ -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.38.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
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.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RADD
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-03-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jira-ruby
@@ -66,6 +65,20 @@ dependencies:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
67
  version: 1.0.1
68
+ - !ruby/object:Gem::Dependency
69
+ name: openssl
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.3'
75
+ type: :runtime
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.3'
69
82
  - !ruby/object:Gem::Dependency
70
83
  name: thor
71
84
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +191,6 @@ dependencies:
178
191
  - - "~>"
179
192
  - !ruby/object:Gem::Version
180
193
  version: '0.14'
181
- description:
182
194
  email:
183
195
  - radd@northwestern.edu
184
196
  executables:
@@ -232,7 +244,6 @@ licenses:
232
244
  metadata:
233
245
  allowed_push_host: https://rubygems.org
234
246
  rubygems_mfa_required: 'true'
235
- post_install_message:
236
247
  rdoc_options: []
237
248
  require_paths:
238
249
  - lib
@@ -248,8 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
259
  - !ruby/object:Gem::Version
249
260
  version: '0'
250
261
  requirements: []
251
- rubygems_version: 3.2.3
252
- signing_key:
262
+ rubygems_version: 3.7.2
253
263
  specification_version: 4
254
264
  summary: A gem for managing releases and deployments.
255
265
  test_files: []