groundskeeper-bitcore 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d4f46740d1ddb1bae4d6bc8992e3b35ac04e4eb2f150344b792509d476d7bb0
4
- data.tar.gz: ca464350273ce97cbfe8397129bf741eb1d75c0df36f046caa4746f418b8c24a
3
+ metadata.gz: 19eb74448b9f6577cfa1acd88557d0bed18e2d7df2c5d2d1da927ea37f0a4489
4
+ data.tar.gz: f5369d34ac67395554e718f7099ce5c422589dd0b5e51378b3dc0931dcccae37
5
5
  SHA512:
6
- metadata.gz: 6626ba1e74879f74aa3afb5f71542e2078fca42c824849451d7e798f6c892bd163d7de4ef416224ae3c53a4bb160c69fb6baef51b0af5639576a2128dca909e6
7
- data.tar.gz: 656fea63b23a3c28320cc43e80c7fe3c65f5e6a5e97bf9783172bf8d57786c47197a854e6ef0941f3eb2b9e2a70e591de16d40a841a79edf48aa1699e434d3bb
6
+ metadata.gz: 9882832af630e4d5b53ada93e59778fe3be20256f9104010b42c7123cc6ca3791cc8fbe0608553b49e51f19a20da66161cef2df314413720f4feba8456dc8beb
7
+ data.tar.gz: 79b51a0e962a8de4fef32cfcd623c88b23783207ddc7dcc719df09d1c9257cefe55a771fa1b3c2474adafcb57d1f2d4c62844937cadbbcf28dbec20654ec1ea9
data/.rubocop.yml CHANGED
@@ -7,7 +7,7 @@ inherit_mode:
7
7
  AllCops:
8
8
  Exclude:
9
9
  - bin/**/*
10
- TargetRubyVersion: 2.4
10
+ TargetRubyVersion: 3.0
11
11
 
12
12
  Metrics/AbcSize:
13
13
  Exclude:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.1
1
+ 3.0.0
@@ -1,4 +1,7 @@
1
- image: 'isgmhradd/rails-ruby27:2020-04-01'
1
+ image: 'isgmhradd/rails-ruby30:2021-01-22'
2
+
3
+ clone:
4
+ depth: 1
2
5
 
3
6
  pipelines:
4
7
  default:
data/config/deploy.rb CHANGED
@@ -5,9 +5,9 @@ require "mina/git"
5
5
  require "mina/rvm" # for rvm support. (https://rvm.io)
6
6
  require "mina/whenever"
7
7
 
8
- require_relative "./git_config.rb"
9
- require_relative "./predeploy.rb"
10
- require_relative "./tasks.rb"
8
+ require_relative "./git_config"
9
+ require_relative "./predeploy"
10
+ require_relative "./tasks"
11
11
 
12
12
  def load_project
13
13
  invoke :before_run unless fetch(:project)
data/config/predeploy.rb CHANGED
@@ -4,7 +4,7 @@ PG_CONFIG = "/usr/pgsql-9.3/bin/pg_config"
4
4
 
5
5
  def load_template(name)
6
6
  template_str = File.binread(File.join(File.dirname(__FILE__), name))
7
- template = ERB.new(template_str, nil, "-")
7
+ template = ERB.new(template_str, trim_mode: "-")
8
8
  template.result
9
9
  end
10
10
 
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = "ground"
31
31
  spec.require_paths = %w[lib config]
32
32
 
33
- spec.required_ruby_version = ">= 2.4"
33
+ spec.required_ruby_version = ">= 3.0"
34
34
  spec.add_dependency "jira-ruby", "~> 2.0"
35
35
  spec.add_dependency "mina", "~> 1.2"
36
36
  spec.add_dependency "mina-whenever", "~> 1.0.1"
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "bundler", "~> 2.0"
40
40
  spec.add_development_dependency "byebug", "~> 11.1"
41
41
  spec.add_development_dependency "minitest", "~> 5.0"
42
- spec.add_development_dependency "rubocop", "~> 0.63"
42
+ spec.add_development_dependency "rubocop", "~> 1.23"
43
43
  spec.add_development_dependency "rubocop-performance", "~> 1.12"
44
44
  spec.add_development_dependency "simplecov", "~> 0.14"
45
45
  end
@@ -7,9 +7,6 @@ module Groundskeeper
7
7
  class Bitbucket
8
8
  # Bitbucket API Error
9
9
  class UnableToCreatePR < StandardError
10
- def initialize(response)
11
- super
12
- end
13
10
  end
14
11
 
15
12
  COMMAND = "curl"
@@ -60,8 +60,7 @@ module Groundskeeper
60
60
 
61
61
  # rubocop:disable Metrics/MethodLength,Metrics/ParameterLists
62
62
  def initialize(
63
- changelog: nil,
64
- console:,
63
+ console:, version_file:, changelog: nil,
65
64
  bitbucket: nil,
66
65
  git: nil,
67
66
  jira: nil,
@@ -71,8 +70,7 @@ module Groundskeeper
71
70
  sentry: nil,
72
71
  slack: nil,
73
72
  ssh: nil,
74
- website: nil,
75
- version_file:
73
+ website: nil
76
74
  )
77
75
  @changelog = changelog
78
76
  @console = console
@@ -102,8 +100,7 @@ module Groundskeeper
102
100
 
103
101
  announce_latest_tag
104
102
  console.say(
105
- "version in current branch: " +
106
- version_file.current_version,
103
+ "version in current branch: #{version_file.current_version}",
107
104
  :yellow
108
105
  )
109
106
  console.say(
@@ -233,8 +230,7 @@ module Groundskeeper
233
230
 
234
231
  def announce_latest_tag
235
232
  console.say(
236
- "latest tag on this repository: " +
237
- git.latest_tag_name_across_branches,
233
+ "latest tag on this repository: #{git.latest_tag_name_across_branches}",
238
234
  :yellow
239
235
  )
240
236
  end
@@ -10,7 +10,7 @@ module Groundskeeper
10
10
  VERSION = "--version"
11
11
  TAGS_ASC = "tag -l --sort=v:refname"
12
12
  TAGS_DESC = "tag -l --sort=-v:refname"
13
- LATEST_TAG_COMMIT = "#{COMMAND} rev-list --tags --max-count=1"
13
+ LATEST_TAG_COMMIT = "#{COMMAND} rev-list --tags --max-count=1".freeze
14
14
  LATEST_TAG_NAME =
15
15
  format("describe --tags $(%<commit>s)", commit: LATEST_TAG_COMMIT)
16
16
  LATEST_TAG_BRANCHES =
@@ -21,8 +21,8 @@ module Groundskeeper
21
21
  ADD_ALL = "add ."
22
22
  COMMIT = "commit -m \"%s\""
23
23
  PUSH_HEAD = "push origin head"
24
- PULL = "-C #{Dir.home}/%s pull"
25
- REMOTE_URL = "-C #{Dir.home}/%s config --get remote.origin.url"
24
+ PULL = "-C #{Dir.home}/%s pull".freeze
25
+ REMOTE_URL = "-C #{Dir.home}/%s config --get remote.origin.url".freeze
26
26
  ORIGIN_URL = "config --get remote.origin.url"
27
27
 
28
28
  attr_reader :git
@@ -124,22 +124,18 @@ module Groundskeeper
124
124
  client.create_version(name: name, prefix: prefix)
125
125
  end
126
126
 
127
- # rubocop:disable Metrics/MethodLength
128
127
  def add_version_to_remote_issues(name, issue_ids)
129
128
  failed_issues = []
130
129
  issue_ids.each do |issue_id|
131
- begin
132
- client.add_version_to_issue(issue_id: issue_id, version_name: name)
133
- rescue IssueNotFoundError
134
- failed_issues << issue_id
135
- next
136
- end
130
+ client.add_version_to_issue(issue_id: issue_id, version_name: name)
131
+ rescue IssueNotFoundError
132
+ failed_issues << issue_id
133
+ next
137
134
  end
138
135
  return "" unless failed_issues.count.positive?
139
136
 
140
137
  "Jira issue(s) not found, is #{failed_issues.join(', ')} correct?"
141
138
  end
142
- # rubocop:enable Metrics/MethodLength
143
139
 
144
140
  def transition_remote_issues(transition_type, issue_ids)
145
141
  issue_ids.each do |issue_id|
@@ -5,11 +5,11 @@ module Groundskeeper
5
5
  class RailsVersion
6
6
  APPLICATION_CONFIG_FILE = "%sconfig/application.rb"
7
7
  INITIAL_VERSION = "0.0.0"
8
- MODULE_NAME_EXPRESSION = /module (\w+)/.freeze
8
+ MODULE_NAME_EXPRESSION = /module (\w+)/
9
9
  NAMESPACE_FILE = "%slib/%s.rb"
10
10
  MODULE_DIRECTORY = "%slib/%s"
11
- VERSION_FILE = "#{MODULE_DIRECTORY}/version.rb"
12
- VERSION_EXPRESSION = /(?<=VERSION = ")([^"]+)(?=")/.freeze
11
+ VERSION_FILE = "#{MODULE_DIRECTORY}/version.rb".freeze
12
+ VERSION_EXPRESSION = /(?<=VERSION = ")([^"]+)(?=")/
13
13
 
14
14
  attr_reader :config_file, :namespace_file, :project_name, :relative_path,
15
15
  :version_file
@@ -36,9 +36,8 @@ module Groundskeeper
36
36
 
37
37
  def initialize(
38
38
  relative_path = "",
39
- project_name: "",
39
+ namespace_file:, project_name: "",
40
40
  config_file: nil,
41
- namespace_file:,
42
41
  version_file: nil
43
42
  )
44
43
  @relative_path = relative_path
@@ -8,7 +8,7 @@ module Groundskeeper
8
8
  UP_TO_DATE = "Your branch is up-to-date with 'origin/master'"
9
9
  UNSTAGED_CHANGES = "Changes not staged for commit"
10
10
  # git comment matching
11
- COMMIT_HASH = /^[^ ]+ /.freeze
11
+ COMMIT_HASH = /^[^ ]+ /
12
12
  RELEASE_MESSAGE = "release version %s"
13
13
 
14
14
  attr_reader :git
@@ -10,7 +10,7 @@ module Groundskeeper
10
10
  URL = "https://hooks.slack.com/services/" \
11
11
  "%<workspace>s/%<channel>s/%<token>s"
12
12
  SEND_MESSAGE = "-X POST -H 'Content-type: application/json' " \
13
- "--data '{\"text\":\"%<message>s\"}' #{URL}"
13
+ "--data '{\"text\":\"%<message>s\"}' #{URL}".freeze
14
14
 
15
15
  attr_reader :slack
16
16
 
@@ -6,7 +6,7 @@ module Groundskeeper
6
6
  COMMAND = "ssh"
7
7
  DEFAULT_CONNECT_TIMEOUT_IN_S = 5
8
8
  # ssh arguments
9
- CONNECT_WITH_TIMEOUT = "-o ConnectTimeout=#{DEFAULT_CONNECT_TIMEOUT_IN_S}"
9
+ CONNECT_WITH_TIMEOUT = "-o ConnectTimeout=#{DEFAULT_CONNECT_TIMEOUT_IN_S}".freeze
10
10
  REMOTE_ECHO =
11
11
  "%<options>s %<username>s@%<domain_name>s \"echo 'groundskeeper'\""
12
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Groundskeeper
4
- VERSION = "0.22.0"
4
+ VERSION = "0.23.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.22.0
4
+ version: 0.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RADD
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2021-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jira-ruby
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0.63'
117
+ version: '1.23'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '0.63'
124
+ version: '1.23'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop-performance
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -216,14 +216,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: '2.4'
219
+ version: '3.0'
220
220
  required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  requirements:
222
222
  - - ">="
223
223
  - !ruby/object:Gem::Version
224
224
  version: '0'
225
225
  requirements: []
226
- rubygems_version: 3.2.32
226
+ rubygems_version: 3.2.3
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: A gem for managing releases and deployments.