bard 1.0.8 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/install_files/.github/workflows/ci.yml +1 -1
- data/lib/bard/cli/install.rb +4 -4
- data/lib/bard/cli/open.rb +10 -1
- data/lib/bard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60643d6e6625f8282271b1c48632b2d58d0f06fb3f15c8381a7c874763804b93
|
4
|
+
data.tar.gz: 68ca4b9ccde0f014918f8dcd652d5a55ab6ccaf0ce7038405989e73f25a4b1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76ba32e8b731544a78c2e4d40346d12a1ae6132f1807e12f00da17c30ebc4300d7e364d52e4620458b1b42fdc9b9b2a6b2db9c9e093d83aade05333af902cfe4
|
7
|
+
data.tar.gz: eba8b5a401b1ab505c0efde3c1c5897e934639cbf87b938ba016500ba3bb0e3311374b742196e6d905ec3842b6e0d1c717fc360c41b19f82a53ca499b2b7883d
|
data/lib/bard/cli/install.rb
CHANGED
@@ -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__, "
|
8
|
-
|
9
|
-
|
10
|
-
system "cp -R #{
|
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 #{
|
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
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
|
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-
|
11
|
+
date: 2024-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|