bard 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62659c90d5cd7cf39ef14edf5b0146338d0571fff437df85040d4cdcb0d82ff0
4
- data.tar.gz: e3ac33d2ca9513a925060561a3a40608236346ee87a2beaca6524f8922da1bdd
3
+ metadata.gz: 60643d6e6625f8282271b1c48632b2d58d0f06fb3f15c8381a7c874763804b93
4
+ data.tar.gz: 68ca4b9ccde0f014918f8dcd652d5a55ab6ccaf0ce7038405989e73f25a4b1a0
5
5
  SHA512:
6
- metadata.gz: 9b50ddaeba02751089df9469427a663ebd36481115c01a1e72e808f96d9a869fd929cbf20df185668536b91e1c838090c82b41a1b05b0af990ebd31a328c3b3c
7
- data.tar.gz: 638a531d23991f1fd01e284eaf1951994da92ab6ad695d1c9a53d10e814c7be91c5c3c487a90dd9b45d3443000f7e029198451140876d4674e68e162bc29420e
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/config.rb CHANGED
@@ -10,7 +10,7 @@ module Bard
10
10
  :local,
11
11
  false,
12
12
  "./",
13
- "#{project_name}.local",
13
+ ["#{project_name}.local"],
14
14
  ),
15
15
  gubs: Server.new(
16
16
  project_name,
@@ -31,7 +31,7 @@ module Bard
31
31
  :staging,
32
32
  "www@staging.botandrose.com:22022",
33
33
  project_name,
34
- "#{project_name}.botandrose.com",
34
+ ["#{project_name}.botandrose.com"],
35
35
  ),
36
36
  }
37
37
  if path && File.exist?(path)
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.0.7"
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.7
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