ci-helper 0.6.0 → 0.7.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: c65325f8b34b50a47de3b66dd16aee7b9e91d4cdd0be32ec258c88f8a0e105e7
4
- data.tar.gz: 99c2668bcef68f533f9c96a716fca23f1ed3e82f0abb582c70187c61033ee48a
3
+ metadata.gz: 551d0cd85d5c27cb80d637eff25728c151b3b7d5d3484bfbba951f73238c0bef
4
+ data.tar.gz: 8b9b6950484b82dffb7683db561114a80f596a887200e25bc56c2c9d062d8ac4
5
5
  SHA512:
6
- metadata.gz: 23217662314854d1ac37e90494fb21e3f8d1fbfe7dd4c9b7b1166d918d00d1e6bbf2b624c95591a8a8e200a593620a56c5f5f563c0a614ea740073694d2451a5
7
- data.tar.gz: 48a8b8bec14dbca6b5819ab06c0ebeaba2066755c804163e387e084668c22ba17f49311044dca51b62fe15873c2ebcf314ae8b8d6ed2c86c4c2abb7534277a84
6
+ metadata.gz: ad631ef6518703c7d416a262684f42ded724fceaa3646b29cabd3c25875d4be4dc6a54c943464f17c7d745b2c50cee293f90e2fe5ed1736836909f6b328af143
7
+ data.tar.gz: 62f003991b68a4d4c0bc95069732ae2d4c5f83741cb059e78063491fd64926da1889432c138eae7e8f3900e53f1fd533e66f5673d7b2ae8b1a164138f36e5edf
@@ -24,8 +24,6 @@ jobs:
24
24
  run: bundle exec ci-helper CheckSpecSuffixes --extra-paths spec/*.rb --ignored-paths spec/*_helper.rb
25
25
  - name: Run specs
26
26
  run: bundle exec ci-helper RunSpecs
27
- - name: Audit
28
- run: bundle exec ci-helper BundlerAudit
29
27
  - name: Coveralls
30
28
  uses: coverallsapp/github-action@master
31
29
  with:
@@ -39,7 +37,7 @@ jobs:
39
37
  strategy:
40
38
  fail-fast: false
41
39
  matrix:
42
- ruby: ["2.7", "3.0", "3.1"]
40
+ ruby: ["3.0", "3.1", "3.2", "3.3"]
43
41
 
44
42
  steps:
45
43
  - uses: actions/checkout@v4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-helper (0.6.0)
4
+ ci-helper (0.7.0)
5
5
  colorize (~> 1.1)
6
6
  dry-inflector (~> 1.0)
7
7
  umbrellio-sequel-plugins (~> 0.14)
@@ -7,6 +7,7 @@ module CIHelper
7
7
  return if job_files.empty?
8
8
 
9
9
  create_and_migrate_database! if with_database?
10
+ create_and_migrate_clickhouse_database! if with_clickhouse?
10
11
  execute("bundle exec rspec #{Shellwords.join(job_files)}")
11
12
  return 0 unless split_resultset?
12
13
 
@@ -40,6 +41,10 @@ module CIHelper
40
41
  boolean_option(:with_database)
41
42
  end
42
43
 
44
+ def with_clickhouse?
45
+ boolean_option(:with_clickhouse)
46
+ end
47
+
43
48
  def split_resultset?
44
49
  boolean_option(:split_resultset)
45
50
  end
@@ -50,6 +50,10 @@ module CIHelper
50
50
  execute_with_env("bundle exec rake db:drop db:create db:migrate")
51
51
  end
52
52
 
53
+ def create_and_migrate_clickhouse_database!
54
+ execute_with_env("bundle exec rake ch:create ch:migrate")
55
+ end
56
+
53
57
  def fail!(message)
54
58
  raise Error, message
55
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CIHelper
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JustAnotherDude
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubygems_version: 3.4.21
115
+ rubygems_version: 3.5.22
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Continuous Integration helpers for Ruby