ci-helper 0.1.0 → 0.1.1
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/Gemfile.lock +1 -1
- data/ci_helper.gemspec +1 -1
- data/lib/ci_helper.rb +1 -0
- data/lib/ci_helper/commands.rb +1 -1
- data/lib/ci_helper/commands/check_db_development.rb +18 -0
- data/lib/ci_helper/tools/colorize.rb +17 -0
- data/lib/ci_helper/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be5f0daccd23cb1ced8508dd4dd4048925d62fa6074e0fece72838f081c5e255
|
4
|
+
data.tar.gz: eb5c8470d8b1123d41d7a4125c78dd1635fdb1dd8044afa0abc7b0da1c1fa8d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0209abc7579fb06c9e86e70bf4a76312a0cc78130c416660395aec20b7ceaecd1ae2b78aa47518c57dd38f1344146b65baaeaeb29427259195a514e4e1365a4b'
|
7
|
+
data.tar.gz: 48522ba56eb1ce4d907a2d52b21fb71d340c84f2b64ffb9b3923810a758d18b5c01fb5d782f09cefde340e8d0e9e67038704dcff0e5a55eca7ce39d8d5fa3853
|
data/Gemfile.lock
CHANGED
data/ci_helper.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "Continuous Integration helpers for Ruby"
|
12
12
|
spec.description = "CIHelper is a gem with Continuous Integration helpers for Ruby"
|
13
|
-
spec.homepage = "https://github.com/umbrellio"
|
13
|
+
spec.homepage = "https://github.com/umbrellio/ci_helper"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
16
16
|
|
data/lib/ci_helper.rb
CHANGED
data/lib/ci_helper/commands.rb
CHANGED
@@ -29,7 +29,7 @@ module CIHelper
|
|
29
29
|
def execute(*commands)
|
30
30
|
command = commands.join(" && ")
|
31
31
|
|
32
|
-
process_stdout.puts(
|
32
|
+
process_stdout.puts(Tools::Colorize.command(command))
|
33
33
|
|
34
34
|
Open3.popen2e(command) do |_stdin, stdout, thread|
|
35
35
|
stdout.each_char { |char| process_stdout.print(char) }
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CIHelper
|
4
|
+
module Commands
|
5
|
+
class CheckDBDevelopment < BaseCommand
|
6
|
+
def call
|
7
|
+
create_and_migrate_database!
|
8
|
+
execute("bundle exec rake db:seed")
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def env
|
14
|
+
:development
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CIHelper
|
4
|
+
module Tools
|
5
|
+
module Colorize
|
6
|
+
extend self
|
7
|
+
|
8
|
+
def command(str)
|
9
|
+
ColorizedString[ColorizedString["> "].green.bold + ColorizedString[str].blue.bold]
|
10
|
+
end
|
11
|
+
|
12
|
+
def info(str)
|
13
|
+
ColorizedString[str].yellow
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/ci_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JustAnotherDude
|
@@ -176,16 +176,18 @@ files:
|
|
176
176
|
- lib/ci_helper/cli.rb
|
177
177
|
- lib/ci_helper/commands.rb
|
178
178
|
- lib/ci_helper/commands/bundler_audit.rb
|
179
|
+
- lib/ci_helper/commands/check_db_development.rb
|
179
180
|
- lib/ci_helper/commands/check_db_rollback.rb
|
180
181
|
- lib/ci_helper/commands/rubocop_lint.rb
|
181
182
|
- lib/ci_helper/commands/run_specs.rb
|
183
|
+
- lib/ci_helper/tools/colorize.rb
|
182
184
|
- lib/ci_helper/tools/inflector.rb
|
183
185
|
- lib/ci_helper/version.rb
|
184
|
-
homepage: https://github.com/umbrellio
|
186
|
+
homepage: https://github.com/umbrellio/ci_helper
|
185
187
|
licenses:
|
186
188
|
- MIT
|
187
189
|
metadata:
|
188
|
-
homepage_uri: https://github.com/umbrellio
|
190
|
+
homepage_uri: https://github.com/umbrellio/ci_helper
|
189
191
|
source_code_uri: https://github.com/umbrellio/ci_helper
|
190
192
|
post_install_message:
|
191
193
|
rdoc_options: []
|