bard 1.0.8 → 1.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: 1d8accacf270a551abbd5d6acac6a3bd1d2cfdadc04f840a272c2de65559d00a
4
- data.tar.gz: 1229036cf1eb5a98be113f205085b1770a88aefd9bc92b476b9a33c96395d5c1
3
+ metadata.gz: ea1c7399cff6b2a09c2c5a69ceda9ee34926bb6992736ad28d27ac79809d63bb
4
+ data.tar.gz: f059eaab39a0e8b1e95890a17607e033c6b427781f51e4a4343025d6eab5ca8e
5
5
  SHA512:
6
- metadata.gz: ca2b041802f628bc879a42bdd117802eeef533c98e31e633e2a93221d5c91e68f12c327fe5cb1840f7da6a044ccc84ecfb53dce39d92f36a66af741af6ae8d2b
7
- data.tar.gz: 7b65fd1eecf7e4b894e8b9ae004c7760d824f334a8a9208686a63de248104b4eb132bdf4899bbb45df5f1c549c0997612d89279624201c4248d11d9e9e2ac5eb
6
+ metadata.gz: 4d247f23ceb37bebe9f6ed99484623031fa8605c9b3dbed7222145bead70a7c0bb5b54da0efa0fdfcf9d3f53e6a0afe38480801a0d30afc43f94f61705a3a163
7
+ data.tar.gz: bd3b7ceeadc1e983bc8785bf3d83c5c32a7c9fee8773441025cedb94ab95d64a99cd8ea54fb6a1879921d73ec541d02aeadc8d014e1d44be21274a02c0d13320
@@ -12,7 +12,7 @@ permissions:
12
12
 
13
13
  jobs:
14
14
  test:
15
- runs-on: ubuntu-22.04-16core
15
+ runs-on: ubuntu-22.04${{ github.actor != 'dependabot[bot]' && '-16core' || '' }}
16
16
  timeout-minutes: 30
17
17
  env:
18
18
  RAILS_ENV: test
@@ -4,10 +4,10 @@ module Bard::CLI::Install
4
4
 
5
5
  desc "install", "copies bin/setup and bin/ci scripts into current project."
6
6
  def install
7
- install_files_path = File.expand_path(File.join(__dir__, "../../install_files/*"))
8
- system "cp -R #{install_files_path} bin/"
9
- github_files_path = File.expand_path(File.join(__dir__, "../../install_files/.github"))
10
- system "cp -R #{github_files_path} ./"
7
+ install_files_path = File.expand_path(File.join(__dir__, "../../../install_files"))
8
+
9
+ system "cp -R #{install_files_path}/* bin/"
10
+ system "cp -R #{install_files_path}/.github ./"
11
11
  end
12
12
 
13
13
  end
data/lib/bard/cli/open.rb CHANGED
@@ -4,9 +4,18 @@ module Bard::CLI::Open
4
4
 
5
5
  desc "open [server=production]", "opens the url in the web browser."
6
6
  def open server=:production
7
- exec "xdg-open #{config[server].ping.first}"
7
+ exec "xdg-open #{open_url server}"
8
8
  end
9
9
 
10
+ private
11
+
12
+ def open_url server
13
+ if server.to_sym == :ci
14
+ "https://github.com/botandrosedesign/#{project_name}/actions/workflows/ci.yml"
15
+ else
16
+ config[server].ping.first
17
+ end
18
+ end
10
19
  end
11
20
  end
12
21
  end
@@ -15,7 +15,7 @@ class Bard::Provision::MySQL < Bard::Provision
15
15
  end
16
16
 
17
17
  def mysql_responding?
18
- provision_server.run "sudo service mysql status | cat", home: true, quiet: true
18
+ provision_server.run "sudo systemctl is-active --quiet mysql", home: true, quiet: true
19
19
  end
20
20
  end
21
21
 
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1.1"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-26 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor