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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1aa6bfe29d050175db60010ea49b38125a9f46f0e903348c67145e881b8dc7e
4
- data.tar.gz: 614acf1d6cd9b22bb7697e54b51437d4cc67e13d65676e82c1ba934dc43e8f50
3
+ metadata.gz: be5f0daccd23cb1ced8508dd4dd4048925d62fa6074e0fece72838f081c5e255
4
+ data.tar.gz: eb5c8470d8b1123d41d7a4125c78dd1635fdb1dd8044afa0abc7b0da1c1fa8d6
5
5
  SHA512:
6
- metadata.gz: a99b5df7187a385ef8895a76a3d4631a540d5a72deab1c704cda1c7bb710a6818ac29a69a702f6e6bb658ef5110af228e972a88a9ac985c0fd30231bcd318a66
7
- data.tar.gz: 3268627ed3a52c57f0b8328498c84a97c416ccb703c860d4599baee885195e7143734ec0096521375bb6f0d40cf5fbd12863b5b25ba5ba32bfd59c52ca97eddc
6
+ metadata.gz: '0209abc7579fb06c9e86e70bf4a76312a0cc78130c416660395aec20b7ceaecd1ae2b78aa47518c57dd38f1344146b65baaeaeb29427259195a514e4e1365a4b'
7
+ data.tar.gz: 48522ba56eb1ce4d907a2d52b21fb71d340c84f2b64ffb9b3923810a758d18b5c01fb5d782f09cefde340e8d0e9e67038704dcff0e5a55eca7ce39d8d5fa3853
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-helper (0.1.0)
4
+ ci-helper (0.1.1)
5
5
  colorize (~> 0.8)
6
6
  dry-inflector (~> 0.2)
7
7
 
@@ -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
 
@@ -10,6 +10,7 @@ require "singleton"
10
10
 
11
11
  require "ci_helper/cli"
12
12
  require "ci_helper/commands"
13
+ require "ci_helper/tools/colorize"
13
14
  require "ci_helper/tools/inflector"
14
15
  require "ci_helper/version"
15
16
 
@@ -29,7 +29,7 @@ module CIHelper
29
29
  def execute(*commands)
30
30
  command = commands.join(" && ")
31
31
 
32
- process_stdout.puts(ColorizedString["> "].green.bold + ColorizedString[command].blue.bold)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CIHelper
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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: []