bard 1.0.8 → 1.1.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: 1d8accacf270a551abbd5d6acac6a3bd1d2cfdadc04f840a272c2de65559d00a
4
- data.tar.gz: 1229036cf1eb5a98be113f205085b1770a88aefd9bc92b476b9a33c96395d5c1
3
+ metadata.gz: 60643d6e6625f8282271b1c48632b2d58d0f06fb3f15c8381a7c874763804b93
4
+ data.tar.gz: 68ca4b9ccde0f014918f8dcd652d5a55ab6ccaf0ce7038405989e73f25a4b1a0
5
5
  SHA512:
6
- metadata.gz: ca2b041802f628bc879a42bdd117802eeef533c98e31e633e2a93221d5c91e68f12c327fe5cb1840f7da6a044ccc84ecfb53dce39d92f36a66af741af6ae8d2b
7
- data.tar.gz: 7b65fd1eecf7e4b894e8b9ae004c7760d824f334a8a9208686a63de248104b4eb132bdf4899bbb45df5f1c549c0997612d89279624201c4248d11d9e9e2ac5eb
6
+ metadata.gz: 76ba32e8b731544a78c2e4d40346d12a1ae6132f1807e12f00da17c30ebc4300d7e364d52e4620458b1b42fdc9b9b2a6b2db9c9e093d83aade05333af902cfe4
7
+ data.tar.gz: eba8b5a401b1ab505c0efde3c1c5897e934639cbf87b938ba016500ba3bb0e3311374b742196e6d905ec3842b6e0d1c717fc360c41b19f82a53ca499b2b7883d
@@ -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
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.8"
2
+ VERSION = "1.1.0"
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.0
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-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor