groundskeeper-bitcore 0.34.0 → 0.36.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/bitbucket-pipelines.yml +1 -1
- data/config/git_config.rb +0 -1
- data/lib/groundskeeper/commands.rb +2 -2
- data/lib/groundskeeper/git.rb +3 -4
- data/lib/groundskeeper/project.rb +0 -7
- data/lib/groundskeeper/repository.rb +1 -1
- data/lib/groundskeeper/semantic_version.rb +20 -8
- data/lib/groundskeeper/version.rb +1 -1
- metadata +2 -3
- 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: bcbe30ae86e759cb40905efad8cc3149fd1743bd6794a1d739b25e498b8f0999
|
4
|
+
data.tar.gz: 02d8b2f6fe6efd0f2108aa305a8eb020b99835440e90d787571bb5a0d7880ee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f05104d2de2c06a4c469b9664f998dfdf3db235d638c3f8b828b85dd27739e319921ac0ef5a4cb13ddff655f3fc65131bee779fe26dd94b035c6142968c8738e
|
7
|
+
data.tar.gz: cb50c3c6b02fdb369c386ca03fada47a6a5bae33ea13f35089848fbcbe549f649b7b556c50ac8bae3799c71974c0858bdebf1922412539bf148f07d8adad3c52
|
data/bitbucket-pipelines.yml
CHANGED
data/config/git_config.rb
CHANGED
@@ -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
|
|
@@ -232,7 +232,7 @@ module Groundskeeper
|
|
232
232
|
|
233
233
|
def announce_latest_tag
|
234
234
|
console.say(
|
235
|
-
"latest tag on this repository: #{git.
|
235
|
+
"latest tag on this repository: #{git.latest_tag_name_in_primary_branch}",
|
236
236
|
:yellow
|
237
237
|
)
|
238
238
|
end
|
data/lib/groundskeeper/git.rb
CHANGED
@@ -11,8 +11,7 @@ module Groundskeeper
|
|
11
11
|
TAGS_ASC = "tag -l --sort=v:refname"
|
12
12
|
TAGS_DESC = "tag -l --sort=-v:refname"
|
13
13
|
LATEST_TAG_COMMIT = "#{COMMAND} rev-list --tags --max-count=1".freeze
|
14
|
-
LATEST_TAG_NAME =
|
15
|
-
format("describe --tags $(%<commit>s)", commit: LATEST_TAG_COMMIT)
|
14
|
+
LATEST_TAG_NAME = "tag --merged $(git branch --show-current) --sort=-creatordate | head -n 1"
|
16
15
|
LATEST_TAG_BRANCHES =
|
17
16
|
format("branch --contains $(%<commit>s)", commit: LATEST_TAG_COMMIT)
|
18
17
|
LATEST_CHANGES = "log %s..HEAD --oneline"
|
@@ -58,7 +57,7 @@ module Groundskeeper
|
|
58
57
|
git.execute(TAGS_DESC).split("\n")
|
59
58
|
end
|
60
59
|
|
61
|
-
def
|
60
|
+
def latest_tag_name_in_primary_branch
|
62
61
|
git.execute(LATEST_TAG_NAME).chop
|
63
62
|
end
|
64
63
|
|
@@ -67,7 +66,7 @@ module Groundskeeper
|
|
67
66
|
end
|
68
67
|
|
69
68
|
def raw_changes_since_latest_tag
|
70
|
-
latest_changes = format(LATEST_CHANGES,
|
69
|
+
latest_changes = format(LATEST_CHANGES, latest_tag_name_in_primary_branch)
|
71
70
|
|
72
71
|
git.execute(latest_changes).split("\n")
|
73
72
|
end
|
@@ -16,7 +16,6 @@ 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"
|
21
20
|
|
22
21
|
def self.build(repository_name)
|
@@ -56,12 +55,6 @@ module Groundskeeper
|
|
56
55
|
details.dig(FULL_DNS_KEY, stage.to_s) || ""
|
57
56
|
end
|
58
57
|
|
59
|
-
# :nocov:
|
60
|
-
def smtp_domain
|
61
|
-
details[SMTP_DOMAIN] || ""
|
62
|
-
end
|
63
|
-
# :nocov:
|
64
|
-
|
65
58
|
# :nocov:
|
66
59
|
def rvm_ruby_version
|
67
60
|
details[RVM_RUBY_VERSION_KEY] || ""
|
@@ -7,6 +7,7 @@ module Groundskeeper
|
|
7
7
|
MINOR = "minor"
|
8
8
|
PATCH = "patch"
|
9
9
|
SEMANTIC_RELEASE_TYPE = { M: MAJOR, m: MINOR, p: PATCH }.freeze
|
10
|
+
WORD_NUMBER_PATTERN = /^([a-zA-Z]+)-(\d+)$/
|
10
11
|
|
11
12
|
attr_reader :major, :minor, :patch
|
12
13
|
|
@@ -19,19 +20,30 @@ module Groundskeeper
|
|
19
20
|
# :nocov:
|
20
21
|
|
21
22
|
def initialize(version)
|
22
|
-
|
23
|
+
if version.match(WORD_NUMBER_PATTERN)
|
24
|
+
@word = ::Regexp.last_match(1)
|
25
|
+
@number = ::Regexp.last_match(2).to_i
|
26
|
+
else
|
27
|
+
@major, @minor, @patch = version.split(".").map(&:to_i)
|
28
|
+
end
|
23
29
|
end
|
24
30
|
|
31
|
+
# rubocop:disable Metrics/MethodLength
|
25
32
|
def bump(release_type)
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
+
if @major.nil? && @minor.nil? && @patch.nil?
|
34
|
+
"#{@word}-#{@number + 1}"
|
35
|
+
else
|
36
|
+
case SEMANTIC_RELEASE_TYPE[release_type.to_sym]
|
37
|
+
when MAJOR
|
38
|
+
"#{major + 1}.0.0"
|
39
|
+
when MINOR
|
40
|
+
"#{major}.#{minor + 1}.0"
|
41
|
+
when PATCH
|
42
|
+
"#{major}.#{minor}.#{patch + 1}"
|
43
|
+
end
|
33
44
|
end
|
34
45
|
end
|
46
|
+
# rubocop:enable Metrics/MethodLength
|
35
47
|
|
36
48
|
def >(other)
|
37
49
|
other_version = SemanticVersion.build(other)
|
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.36.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RADD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-06 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
|
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
|