ci-helper 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +76 -56
- data/ci_helper.gemspec +3 -12
- data/lib/ci_helper/version.rb +1 -1
- data/lib/tasks/sequel_management.rake +2 -2
- metadata +9 -121
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65325f8b34b50a47de3b66dd16aee7b9e91d4cdd0be32ec258c88f8a0e105e7
|
4
|
+
data.tar.gz: 99c2668bcef68f533f9c96a716fca23f1ed3e82f0abb582c70187c61033ee48a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23217662314854d1ac37e90494fb21e3f8d1fbfe7dd4c9b7b1166d918d00d1e6bbf2b624c95591a8a8e200a593620a56c5f5f563c0a614ea740073694d2451a5
|
7
|
+
data.tar.gz: 48a8b8bec14dbca6b5819ab06c0ebeaba2066755c804163e387e084668c22ba17f49311044dca51b62fe15873c2ebcf314ae8b8d6ed2c86c4c2abb7534277a84
|
data/.github/workflows/test.yml
CHANGED
@@ -11,10 +11,10 @@ jobs:
|
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
|
13
13
|
steps:
|
14
|
-
- uses: actions/checkout@
|
14
|
+
- uses: actions/checkout@v4
|
15
15
|
- uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
|
-
ruby-version: "3.
|
17
|
+
ruby-version: "3.2"
|
18
18
|
bundler-cache: true
|
19
19
|
- name: Build and install gem to systems gems
|
20
20
|
run: bundle exec rake install
|
@@ -39,10 +39,10 @@ jobs:
|
|
39
39
|
strategy:
|
40
40
|
fail-fast: false
|
41
41
|
matrix:
|
42
|
-
ruby: ["2.7", "3.0"]
|
42
|
+
ruby: ["2.7", "3.0", "3.1"]
|
43
43
|
|
44
44
|
steps:
|
45
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v4
|
46
46
|
- uses: ruby/setup-ruby@v1
|
47
47
|
with:
|
48
48
|
ruby-version: ${{ matrix.ruby }}
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,91 +1,111 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ci-helper (0.
|
5
|
-
colorize (~>
|
6
|
-
dry-inflector (~> 0
|
7
|
-
umbrellio-sequel-plugins (~> 0.
|
4
|
+
ci-helper (0.6.0)
|
5
|
+
colorize (~> 1.1)
|
6
|
+
dry-inflector (~> 1.0)
|
7
|
+
umbrellio-sequel-plugins (~> 0.14)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (7.
|
12
|
+
activesupport (7.1.2)
|
13
|
+
base64
|
14
|
+
bigdecimal
|
13
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
|
+
connection_pool (>= 2.2.5)
|
17
|
+
drb
|
14
18
|
i18n (>= 1.6, < 2)
|
15
19
|
minitest (>= 5.1)
|
20
|
+
mutex_m
|
16
21
|
tzinfo (~> 2.0)
|
17
22
|
ast (2.4.2)
|
18
|
-
|
23
|
+
base64 (0.2.0)
|
24
|
+
bigdecimal (3.1.4)
|
25
|
+
bundler-audit (0.9.1)
|
19
26
|
bundler (>= 1.2.0, < 3)
|
20
27
|
thor (~> 1.0)
|
21
28
|
coderay (1.1.3)
|
22
|
-
colorize (
|
23
|
-
concurrent-ruby (1.
|
29
|
+
colorize (1.1.0)
|
30
|
+
concurrent-ruby (1.2.2)
|
31
|
+
connection_pool (2.4.1)
|
24
32
|
diff-lcs (1.5.0)
|
25
33
|
docile (1.4.0)
|
26
|
-
|
27
|
-
|
34
|
+
drb (2.2.0)
|
35
|
+
ruby2_keywords
|
36
|
+
dry-inflector (1.0.0)
|
37
|
+
i18n (1.14.1)
|
28
38
|
concurrent-ruby (~> 1.0)
|
39
|
+
json (2.7.1)
|
29
40
|
method_source (1.0.0)
|
30
|
-
minitest (5.
|
31
|
-
|
32
|
-
|
41
|
+
minitest (5.20.0)
|
42
|
+
mutex_m (0.2.0)
|
43
|
+
parallel (1.23.0)
|
44
|
+
parser (3.2.2.4)
|
33
45
|
ast (~> 2.4.1)
|
34
|
-
|
46
|
+
racc
|
47
|
+
pry (0.14.2)
|
35
48
|
coderay (~> 1.1)
|
36
49
|
method_source (~> 1.0)
|
37
|
-
|
50
|
+
racc (1.7.3)
|
51
|
+
rack (3.0.8)
|
38
52
|
rainbow (3.1.1)
|
39
|
-
rake (13.0
|
40
|
-
regexp_parser (2.3
|
41
|
-
rexml (3.2.
|
42
|
-
rspec (3.
|
43
|
-
rspec-core (~> 3.
|
44
|
-
rspec-expectations (~> 3.
|
45
|
-
rspec-mocks (~> 3.
|
46
|
-
rspec-core (3.
|
47
|
-
rspec-support (~> 3.
|
48
|
-
rspec-expectations (3.
|
53
|
+
rake (13.1.0)
|
54
|
+
regexp_parser (2.8.3)
|
55
|
+
rexml (3.2.6)
|
56
|
+
rspec (3.12.0)
|
57
|
+
rspec-core (~> 3.12.0)
|
58
|
+
rspec-expectations (~> 3.12.0)
|
59
|
+
rspec-mocks (~> 3.12.0)
|
60
|
+
rspec-core (3.12.2)
|
61
|
+
rspec-support (~> 3.12.0)
|
62
|
+
rspec-expectations (3.12.3)
|
49
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.
|
51
|
-
rspec-mocks (3.
|
64
|
+
rspec-support (~> 3.12.0)
|
65
|
+
rspec-mocks (3.12.6)
|
52
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
-
rspec-support (~> 3.
|
54
|
-
rspec-support (3.
|
55
|
-
rubocop (1.
|
67
|
+
rspec-support (~> 3.12.0)
|
68
|
+
rspec-support (3.12.1)
|
69
|
+
rubocop (1.50.2)
|
70
|
+
json (~> 2.3)
|
56
71
|
parallel (~> 1.10)
|
57
|
-
parser (>= 3.
|
72
|
+
parser (>= 3.2.0.0)
|
58
73
|
rainbow (>= 2.2.2, < 4.0)
|
59
74
|
regexp_parser (>= 1.8, < 3.0)
|
60
|
-
rexml
|
61
|
-
rubocop-ast (>= 1.
|
75
|
+
rexml (>= 3.2.5, < 4.0)
|
76
|
+
rubocop-ast (>= 1.28.0, < 2.0)
|
62
77
|
ruby-progressbar (~> 1.7)
|
63
|
-
unicode-display_width (>=
|
64
|
-
rubocop-ast (1.
|
65
|
-
parser (>= 3.
|
66
|
-
rubocop-
|
67
|
-
rubocop (~> 1.
|
68
|
-
|
69
|
-
rubocop
|
78
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
79
|
+
rubocop-ast (1.30.0)
|
80
|
+
parser (>= 3.2.1.0)
|
81
|
+
rubocop-capybara (2.19.0)
|
82
|
+
rubocop (~> 1.41)
|
83
|
+
rubocop-config-umbrellio (1.50.0.85)
|
84
|
+
rubocop (~> 1.50.0)
|
85
|
+
rubocop-performance (~> 1.17.0)
|
86
|
+
rubocop-rails (~> 2.19.0)
|
70
87
|
rubocop-rake (~> 0.6.0)
|
71
|
-
rubocop-rspec (~> 2.
|
88
|
+
rubocop-rspec (~> 2.20.0)
|
72
89
|
rubocop-sequel (~> 0.3.3)
|
73
|
-
rubocop-performance (1.
|
90
|
+
rubocop-performance (1.17.1)
|
74
91
|
rubocop (>= 1.7.0, < 2.0)
|
75
92
|
rubocop-ast (>= 0.4.0)
|
76
|
-
rubocop-rails (2.
|
93
|
+
rubocop-rails (2.19.1)
|
77
94
|
activesupport (>= 4.2.0)
|
78
95
|
rack (>= 1.1)
|
79
|
-
rubocop (>= 1.
|
96
|
+
rubocop (>= 1.33.0, < 2.0)
|
80
97
|
rubocop-rake (0.6.0)
|
81
98
|
rubocop (~> 1.0)
|
82
|
-
rubocop-rspec (2.
|
83
|
-
rubocop (~> 1.
|
84
|
-
|
99
|
+
rubocop-rspec (2.20.0)
|
100
|
+
rubocop (~> 1.33)
|
101
|
+
rubocop-capybara (~> 2.17)
|
102
|
+
rubocop-sequel (0.3.4)
|
85
103
|
rubocop (~> 1.0)
|
86
|
-
ruby-progressbar (1.
|
87
|
-
|
88
|
-
|
104
|
+
ruby-progressbar (1.13.0)
|
105
|
+
ruby2_keywords (0.0.5)
|
106
|
+
sequel (5.75.0)
|
107
|
+
bigdecimal
|
108
|
+
simplecov (0.22.0)
|
89
109
|
docile (~> 1.1)
|
90
110
|
simplecov-html (~> 0.11)
|
91
111
|
simplecov_json_formatter (~> 0.1)
|
@@ -93,16 +113,16 @@ GEM
|
|
93
113
|
simplecov-lcov (0.8.0)
|
94
114
|
simplecov_json_formatter (0.1.4)
|
95
115
|
symbiont-ruby (0.7.0)
|
96
|
-
thor (1.
|
97
|
-
tzinfo (2.0.
|
116
|
+
thor (1.3.0)
|
117
|
+
tzinfo (2.0.6)
|
98
118
|
concurrent-ruby (~> 1.0)
|
99
|
-
umbrellio-sequel-plugins (0.
|
119
|
+
umbrellio-sequel-plugins (0.14.0.189)
|
100
120
|
sequel
|
101
121
|
symbiont-ruby
|
102
|
-
unicode-display_width (2.
|
122
|
+
unicode-display_width (2.5.0)
|
103
123
|
|
104
124
|
PLATFORMS
|
105
|
-
|
125
|
+
arm64-darwin-23
|
106
126
|
x86_64-linux
|
107
127
|
|
108
128
|
DEPENDENCIES
|
@@ -117,4 +137,4 @@ DEPENDENCIES
|
|
117
137
|
simplecov-lcov
|
118
138
|
|
119
139
|
BUNDLED WITH
|
120
|
-
2.
|
140
|
+
2.4.21
|
data/ci_helper.gemspec
CHANGED
@@ -24,16 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
25
|
spec.require_paths = ["lib"]
|
26
26
|
|
27
|
-
spec.add_runtime_dependency "colorize", "~>
|
28
|
-
spec.add_runtime_dependency "dry-inflector", "~> 0
|
29
|
-
spec.add_runtime_dependency "umbrellio-sequel-plugins", "~> 0.
|
30
|
-
|
31
|
-
spec.add_development_dependency "bundler"
|
32
|
-
spec.add_development_dependency "bundler-audit"
|
33
|
-
spec.add_development_dependency "pry"
|
34
|
-
spec.add_development_dependency "rake"
|
35
|
-
spec.add_development_dependency "rspec"
|
36
|
-
spec.add_development_dependency "rubocop-config-umbrellio"
|
37
|
-
spec.add_development_dependency "simplecov"
|
38
|
-
spec.add_development_dependency "simplecov-lcov"
|
27
|
+
spec.add_runtime_dependency "colorize", "~> 1.1"
|
28
|
+
spec.add_runtime_dependency "dry-inflector", "~> 1.0"
|
29
|
+
spec.add_runtime_dependency "umbrellio-sequel-plugins", "~> 0.14"
|
39
30
|
end
|
data/lib/ci_helper/version.rb
CHANGED
@@ -31,8 +31,8 @@ class SequelManagement
|
|
31
31
|
|
32
32
|
logger.info "Begin rolling back new migrations"
|
33
33
|
|
34
|
-
migration_files,
|
35
|
-
abort "Can't get list of migration files" unless status.success?
|
34
|
+
migration_files, error, status = Open3.capture3(git_command)
|
35
|
+
abort "Can't get list of migration files:\n#{error}" unless status.success?
|
36
36
|
|
37
37
|
original_migrations = migration_files.split.map { |path| File.basename(path) }
|
38
38
|
migrations_to_rollback = (migrator.applied_migrations - original_migrations).sort.reverse
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JustAnotherDude
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -16,154 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dry-inflector
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: umbrellio-sequel-plugins
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.14'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: bundler
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: bundler-audit
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rake
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-config-umbrellio
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: simplecov-lcov
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
54
|
+
version: '0.14'
|
167
55
|
description: CIHelper is a gem with Continuous Integration helpers for Ruby
|
168
56
|
email:
|
169
57
|
- vanyaz158@gmail.com
|
@@ -224,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
112
|
- !ruby/object:Gem::Version
|
225
113
|
version: '0'
|
226
114
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.4.21
|
228
116
|
signing_key:
|
229
117
|
specification_version: 4
|
230
118
|
summary: Continuous Integration helpers for Ruby
|