groundskeeper-bitcore 0.41.0 → 0.43.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/.github/workflows/test_ci.yml +24 -0
- data/.gitignore +0 -1
- data/Gemfile.lock +126 -0
- data/bitbucket-pipelines.yml +3 -2
- data/lib/groundskeeper/commands.rb +3 -2
- data/lib/groundskeeper/rails_version.rb +19 -4
- data/lib/groundskeeper/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9dd0b801a2e6f1fc101f7ca322be6dd82153be147e2c6ea58a378be946c2036a
|
|
4
|
+
data.tar.gz: 9acdaf747584da2c4adaad7b42fe1e1ccf3228a2251199485f8ff39490aea4e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce128d4613f5a26d08555dbc3f80d52d685dbd2f407dcd9073edd6ef2c7624237d0bfe4665a644fb599a405e790a91e00370ab3e78857eef213b5287076914be
|
|
7
|
+
data.tar.gz: ade501b9bea55fe1599a1f2c51a52d1d8518c40805a1d94db9d80295977be00fae9e0f7433122f9425c0bf61b2089eb4a09d417ec3c7aac9723af6a38cfa8fcd
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub. They are
|
|
2
|
+
# provided by a third-party and are governed by separate terms of service,
|
|
3
|
+
# privacy policy, and support documentation.
|
|
4
|
+
#
|
|
5
|
+
# This workflow will install a prebuilt Ruby version, install dependencies, and
|
|
6
|
+
# run tests.
|
|
7
|
+
name: "Test CI"
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches: [ "**" ]
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout code
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
- name: Install Ruby and gems
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
- name: Install Sentry CLI
|
|
22
|
+
run: curl -sL https://sentry.io/get-cli/ | bash
|
|
23
|
+
- name: Run tests
|
|
24
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
groundskeeper-bitcore (0.43.0)
|
|
5
|
+
activesupport
|
|
6
|
+
jira-ruby (~> 3.0)
|
|
7
|
+
mina (~> 1.2)
|
|
8
|
+
mina-whenever (~> 1.0.1)
|
|
9
|
+
openssl (~> 3.3)
|
|
10
|
+
thor (~> 1.0)
|
|
11
|
+
|
|
12
|
+
GEM
|
|
13
|
+
remote: https://rubygems.org/
|
|
14
|
+
specs:
|
|
15
|
+
activesupport (7.1.4)
|
|
16
|
+
base64
|
|
17
|
+
bigdecimal
|
|
18
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
19
|
+
connection_pool (>= 2.2.5)
|
|
20
|
+
drb
|
|
21
|
+
i18n (>= 1.6, < 2)
|
|
22
|
+
minitest (>= 5.1)
|
|
23
|
+
mutex_m
|
|
24
|
+
tzinfo (~> 2.0)
|
|
25
|
+
ast (2.4.3)
|
|
26
|
+
atlassian-jwt (0.2.1)
|
|
27
|
+
jwt (~> 2.1)
|
|
28
|
+
base64 (0.2.0)
|
|
29
|
+
bigdecimal (3.1.8)
|
|
30
|
+
byebug (11.1.3)
|
|
31
|
+
concurrent-ruby (1.3.5)
|
|
32
|
+
connection_pool (2.4.1)
|
|
33
|
+
docile (1.4.1)
|
|
34
|
+
drb (2.2.1)
|
|
35
|
+
hashie (5.0.0)
|
|
36
|
+
i18n (1.14.7)
|
|
37
|
+
concurrent-ruby (~> 1.0)
|
|
38
|
+
jira-ruby (3.0.0)
|
|
39
|
+
activesupport
|
|
40
|
+
atlassian-jwt
|
|
41
|
+
multipart-post
|
|
42
|
+
oauth (~> 1.0)
|
|
43
|
+
json (2.16.0)
|
|
44
|
+
jwt (2.8.2)
|
|
45
|
+
base64
|
|
46
|
+
language_server-protocol (3.17.0.5)
|
|
47
|
+
lint_roller (1.1.0)
|
|
48
|
+
mina (1.2.5)
|
|
49
|
+
rake
|
|
50
|
+
mina-whenever (1.0.1)
|
|
51
|
+
mina (~> 1.0)
|
|
52
|
+
minitest (5.25.4)
|
|
53
|
+
multipart-post (2.4.1)
|
|
54
|
+
mutex_m (0.2.0)
|
|
55
|
+
oauth (1.1.0)
|
|
56
|
+
oauth-tty (~> 1.0, >= 1.0.1)
|
|
57
|
+
snaky_hash (~> 2.0)
|
|
58
|
+
version_gem (~> 1.1)
|
|
59
|
+
oauth-tty (1.0.5)
|
|
60
|
+
version_gem (~> 1.1, >= 1.1.1)
|
|
61
|
+
openssl (3.3.2)
|
|
62
|
+
parallel (1.27.0)
|
|
63
|
+
parser (3.3.10.0)
|
|
64
|
+
ast (~> 2.4.1)
|
|
65
|
+
racc
|
|
66
|
+
prism (1.6.0)
|
|
67
|
+
racc (1.8.1)
|
|
68
|
+
rainbow (3.1.1)
|
|
69
|
+
rake (13.2.1)
|
|
70
|
+
regexp_parser (2.11.3)
|
|
71
|
+
rubocop (1.81.7)
|
|
72
|
+
json (~> 2.3)
|
|
73
|
+
language_server-protocol (~> 3.17.0.2)
|
|
74
|
+
lint_roller (~> 1.1.0)
|
|
75
|
+
parallel (~> 1.10)
|
|
76
|
+
parser (>= 3.3.0.2)
|
|
77
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
78
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
79
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
80
|
+
ruby-progressbar (~> 1.7)
|
|
81
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
82
|
+
rubocop-ast (1.48.0)
|
|
83
|
+
parser (>= 3.3.7.2)
|
|
84
|
+
prism (~> 1.4)
|
|
85
|
+
rubocop-minitest (0.38.1)
|
|
86
|
+
lint_roller (~> 1.1)
|
|
87
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
88
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
89
|
+
rubocop-performance (1.24.0)
|
|
90
|
+
lint_roller (~> 1.1)
|
|
91
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
92
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
93
|
+
ruby-progressbar (1.13.0)
|
|
94
|
+
simplecov (0.22.0)
|
|
95
|
+
docile (~> 1.1)
|
|
96
|
+
simplecov-html (~> 0.11)
|
|
97
|
+
simplecov_json_formatter (~> 0.1)
|
|
98
|
+
simplecov-html (0.12.3)
|
|
99
|
+
simplecov_json_formatter (0.1.4)
|
|
100
|
+
snaky_hash (2.0.1)
|
|
101
|
+
hashie
|
|
102
|
+
version_gem (~> 1.1, >= 1.1.1)
|
|
103
|
+
thor (1.3.2)
|
|
104
|
+
tzinfo (2.0.6)
|
|
105
|
+
concurrent-ruby (~> 1.0)
|
|
106
|
+
unicode-display_width (3.2.0)
|
|
107
|
+
unicode-emoji (~> 4.1)
|
|
108
|
+
unicode-emoji (4.1.0)
|
|
109
|
+
version_gem (1.1.4)
|
|
110
|
+
|
|
111
|
+
PLATFORMS
|
|
112
|
+
arm64-darwin-23
|
|
113
|
+
ruby
|
|
114
|
+
|
|
115
|
+
DEPENDENCIES
|
|
116
|
+
bundler (~> 4.0)
|
|
117
|
+
byebug (~> 11.1)
|
|
118
|
+
groundskeeper-bitcore!
|
|
119
|
+
minitest (~> 5.0)
|
|
120
|
+
rubocop (~> 1.23)
|
|
121
|
+
rubocop-minitest
|
|
122
|
+
rubocop-performance (~> 1.12)
|
|
123
|
+
simplecov (~> 0.14)
|
|
124
|
+
|
|
125
|
+
BUNDLED WITH
|
|
126
|
+
4.0.3
|
data/bitbucket-pipelines.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image: 'isgmhradd/rails-
|
|
1
|
+
image: 'isgmhradd/rails-ruby333-node20:2025-07-16'
|
|
2
2
|
|
|
3
3
|
clone:
|
|
4
4
|
depth: 1
|
|
@@ -12,7 +12,8 @@ pipelines:
|
|
|
12
12
|
- curl -sL https://sentry.io/get-cli/ | bash
|
|
13
13
|
- gem install bundler
|
|
14
14
|
# install gems
|
|
15
|
-
- bundle
|
|
15
|
+
- bundle config set path 'vendor'
|
|
16
|
+
- bundle install
|
|
16
17
|
- bundle update --bundler
|
|
17
18
|
# build/lint/test
|
|
18
19
|
- bundle exec rake
|
|
@@ -378,11 +378,12 @@ module Groundskeeper
|
|
|
378
378
|
|
|
379
379
|
def run_mina(arguments)
|
|
380
380
|
command = "mina #{arguments} -f #{RAKEFILE}"
|
|
381
|
-
Open3.
|
|
381
|
+
Open3.popen2e(command) do |_stdin, output, _thread|
|
|
382
382
|
# :nocov:
|
|
383
383
|
# rubocop:disable Lint/AssignmentInCondition
|
|
384
|
-
while line =
|
|
384
|
+
while line = output.gets
|
|
385
385
|
puts line
|
|
386
|
+
$stdout.flush
|
|
386
387
|
end
|
|
387
388
|
# rubocop:enable Lint/AssignmentInCondition
|
|
388
389
|
# :nocov:
|
|
@@ -8,6 +8,7 @@ module Groundskeeper
|
|
|
8
8
|
MODULE_NAME_EXPRESSION = /module (\w+)/
|
|
9
9
|
NAMESPACE_FILE = "%slib/%s.rb"
|
|
10
10
|
MODULE_DIRECTORY = "%slib/%s"
|
|
11
|
+
ROOT_VERSION_FILE = "%s.version"
|
|
11
12
|
VERSION_FILE = "#{MODULE_DIRECTORY}/version.rb".freeze
|
|
12
13
|
VERSION_EXPRESSION = /(?<=VERSION = ")([^"]+)(?=")/
|
|
13
14
|
|
|
@@ -22,14 +23,12 @@ module Groundskeeper
|
|
|
22
23
|
folder_namespace = StringUtils.underscore(project_name)
|
|
23
24
|
namespace_file_path =
|
|
24
25
|
format(NAMESPACE_FILE, relative_path, folder_namespace)
|
|
25
|
-
version_file_path = format(VERSION_FILE, relative_path, folder_namespace)
|
|
26
26
|
|
|
27
27
|
new(
|
|
28
28
|
relative_path,
|
|
29
29
|
project_name: project_name,
|
|
30
30
|
config_file: config_file,
|
|
31
|
-
namespace_file: Groundskeeper::Document.new(namespace_file_path)
|
|
32
|
-
version_file: Groundskeeper::Document.new(version_file_path)
|
|
31
|
+
namespace_file: Groundskeeper::Document.new(namespace_file_path)
|
|
33
32
|
)
|
|
34
33
|
end
|
|
35
34
|
# rubocop:enable Metrics/MethodLength
|
|
@@ -48,10 +47,14 @@ module Groundskeeper
|
|
|
48
47
|
end
|
|
49
48
|
|
|
50
49
|
def current_version
|
|
50
|
+
return version_file.read.strip if root_version_file?
|
|
51
|
+
|
|
51
52
|
version_file.match(VERSION_EXPRESSION) || ""
|
|
52
53
|
end
|
|
53
54
|
|
|
54
55
|
def update_version!(value)
|
|
56
|
+
return version_file.write_file(value) if root_version_file?
|
|
57
|
+
|
|
55
58
|
version_file.gsub_file VERSION_EXPRESSION, value
|
|
56
59
|
end
|
|
57
60
|
|
|
@@ -97,7 +100,15 @@ module Groundskeeper
|
|
|
97
100
|
end
|
|
98
101
|
|
|
99
102
|
def find_version_file
|
|
100
|
-
|
|
103
|
+
version_file = Groundskeeper::Document.new(version_file_path)
|
|
104
|
+
return version_file if version_file.exists?
|
|
105
|
+
|
|
106
|
+
root_version_file = Groundskeeper::Document.new(
|
|
107
|
+
format(ROOT_VERSION_FILE, relative_path)
|
|
108
|
+
)
|
|
109
|
+
return root_version_file if root_version_file.exists?
|
|
110
|
+
|
|
111
|
+
version_file
|
|
101
112
|
end
|
|
102
113
|
|
|
103
114
|
def config_file_path
|
|
@@ -111,5 +122,9 @@ module Groundskeeper
|
|
|
111
122
|
def folder_namespace
|
|
112
123
|
StringUtils.underscore(config_file.match(MODULE_NAME_EXPRESSION))
|
|
113
124
|
end
|
|
125
|
+
|
|
126
|
+
def root_version_file?
|
|
127
|
+
File.basename(version_file.path) == ".version"
|
|
128
|
+
end
|
|
114
129
|
end
|
|
115
130
|
end
|
metadata
CHANGED
|
@@ -1,13 +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.43.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RADD
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-10-20 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: jira-ruby
|
|
@@ -191,6 +192,7 @@ dependencies:
|
|
|
191
192
|
- - "~>"
|
|
192
193
|
- !ruby/object:Gem::Version
|
|
193
194
|
version: '0.14'
|
|
195
|
+
description:
|
|
194
196
|
email:
|
|
195
197
|
- radd@northwestern.edu
|
|
196
198
|
executables:
|
|
@@ -198,12 +200,14 @@ executables:
|
|
|
198
200
|
extensions: []
|
|
199
201
|
extra_rdoc_files: []
|
|
200
202
|
files:
|
|
203
|
+
- ".github/workflows/test_ci.yml"
|
|
201
204
|
- ".gitignore"
|
|
202
205
|
- ".rubocop.yml"
|
|
203
206
|
- ".ruby-version"
|
|
204
207
|
- CHANGELOG.md
|
|
205
208
|
- CODE_OF_CONDUCT.md
|
|
206
209
|
- Gemfile
|
|
210
|
+
- Gemfile.lock
|
|
207
211
|
- LICENSE.txt
|
|
208
212
|
- README.md
|
|
209
213
|
- Rakefile
|
|
@@ -245,6 +249,7 @@ licenses:
|
|
|
245
249
|
metadata:
|
|
246
250
|
allowed_push_host: https://rubygems.org
|
|
247
251
|
rubygems_mfa_required: 'true'
|
|
252
|
+
post_install_message:
|
|
248
253
|
rdoc_options: []
|
|
249
254
|
require_paths:
|
|
250
255
|
- lib
|
|
@@ -260,7 +265,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
260
265
|
- !ruby/object:Gem::Version
|
|
261
266
|
version: '0'
|
|
262
267
|
requirements: []
|
|
263
|
-
rubygems_version:
|
|
268
|
+
rubygems_version: 3.5.11
|
|
269
|
+
signing_key:
|
|
264
270
|
specification_version: 4
|
|
265
271
|
summary: A gem for managing releases and deployments.
|
|
266
272
|
test_files: []
|