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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c85ed53bac61c994b0e4e1ee83781a57ca26046128412199c0824fd93a95774
4
- data.tar.gz: 3a61a6eccc60d1b40a3508b28d10cc888dde680b35e59f074f221d7f53d31aae
3
+ metadata.gz: bcbe30ae86e759cb40905efad8cc3149fd1743bd6794a1d739b25e498b8f0999
4
+ data.tar.gz: 02d8b2f6fe6efd0f2108aa305a8eb020b99835440e90d787571bb5a0d7880ee2
5
5
  SHA512:
6
- metadata.gz: 6d980eba26b5dc7fd0376aa291074de4196ae75576a3460019774d6711672797541abf1d0e0943fc869bc80720c7561bbdb2c8c6ae4baac83a36d76344500b9f
7
- data.tar.gz: df07fc3671092395b4797d9a6cd3d4facaa438108841b162e773f693a01dea69bb324c183cd0ddb03d10c80ed0ae24e16ab4f7bb637babe325ac2c6eb26ae08a
6
+ metadata.gz: f05104d2de2c06a4c469b9664f998dfdf3db235d638c3f8b828b85dd27739e319921ac0ef5a4cb13ddff655f3fc65131bee779fe26dd94b035c6142968c8738e
7
+ data.tar.gz: cb50c3c6b02fdb369c386ca03fada47a6a5bae33ea13f35089848fbcbe549f649b7b556c50ac8bae3799c71974c0858bdebf1922412539bf148f07d8adad3c52
@@ -1,4 +1,4 @@
1
- image: 'isgmhradd/rails-ruby30:2021-01-22'
1
+ image: 'isgmhradd/rails-ruby312:2023-05-15'
2
2
 
3
3
  clone:
4
4
  depth: 1
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
@@ -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.latest_tag_name_across_branches}",
235
+ "latest tag on this repository: #{git.latest_tag_name_in_primary_branch}",
236
236
  :yellow
237
237
  )
238
238
  end
@@ -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 latest_tag_name_across_branches
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, latest_tag_name_across_branches)
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] || ""
@@ -51,7 +51,7 @@ module Groundskeeper
51
51
  end
52
52
 
53
53
  def bumped_semantic_version(type)
54
- SemanticVersion.new(git.latest_tag_name_across_branches).bump(type)
54
+ SemanticVersion.new(git.latest_tag_name_in_primary_branch).bump(type)
55
55
  end
56
56
 
57
57
  def name
@@ -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
- @major, @minor, @patch = version.split(".").map(&:to_i)
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
- case SEMANTIC_RELEASE_TYPE[release_type.to_sym]
27
- when MAJOR
28
- "#{major + 1}.0.0"
29
- when MINOR
30
- "#{major}.#{minor + 1}.0"
31
- when PATCH
32
- "#{major}.#{minor}.#{patch + 1}"
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.34.0"
4
+ VERSION = "0.36.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.34.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: 2024-09-24 00:00:00.000000000 Z
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
@@ -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