groundskeeper-bitcore 0.22.0 → 0.23.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/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/bitbucket-pipelines.yml +4 -1
- data/config/deploy.rb +3 -3
- data/config/predeploy.rb +1 -1
- data/groundskeeper.gemspec +2 -2
- data/lib/groundskeeper/bitbucket.rb +0 -3
- data/lib/groundskeeper/commands.rb +4 -8
- data/lib/groundskeeper/git.rb +3 -3
- data/lib/groundskeeper/jira.rb +4 -8
- data/lib/groundskeeper/rails_version.rb +4 -5
- data/lib/groundskeeper/repository.rb +1 -1
- data/lib/groundskeeper/slack.rb +1 -1
- data/lib/groundskeeper/ssh.rb +1 -1
- data/lib/groundskeeper/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19eb74448b9f6577cfa1acd88557d0bed18e2d7df2c5d2d1da927ea37f0a4489
|
4
|
+
data.tar.gz: f5369d34ac67395554e718f7099ce5c422589dd0b5e51378b3dc0931dcccae37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9882832af630e4d5b53ada93e59778fe3be20256f9104010b42c7123cc6ca3791cc8fbe0608553b49e51f19a20da66161cef2df314413720f4feba8456dc8beb
|
7
|
+
data.tar.gz: 79b51a0e962a8de4fef32cfcd623c88b23783207ddc7dcc719df09d1c9257cefe55a771fa1b3c2474adafcb57d1f2d4c62844937cadbbcf28dbec20654ec1ea9
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/bitbucket-pipelines.yml
CHANGED
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
|
9
|
-
require_relative "./predeploy
|
10
|
-
require_relative "./tasks
|
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
data/groundskeeper.gemspec
CHANGED
@@ -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 = ">=
|
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", "~>
|
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
|
@@ -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
|
data/lib/groundskeeper/git.rb
CHANGED
@@ -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
|
data/lib/groundskeeper/jira.rb
CHANGED
@@ -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
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
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+)
|
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 = ")([^"]+)(?=")
|
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 = /^[^ ]+
|
11
|
+
COMMIT_HASH = /^[^ ]+ /
|
12
12
|
RELEASE_MESSAGE = "release version %s"
|
13
13
|
|
14
14
|
attr_reader :git
|
data/lib/groundskeeper/slack.rb
CHANGED
@@ -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
|
|
data/lib/groundskeeper/ssh.rb
CHANGED
@@ -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
|
|
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.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-
|
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: '
|
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: '
|
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: '
|
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.
|
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.
|