bard 0.50.2 → 0.50.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/install_files/apt_dependencies.rb +3 -3
- 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: be37d580380ed839c71802d1957700a394a4425eef2dec647dd36f3eeeab756a
|
4
|
+
data.tar.gz: 1df460eb38491080b05e3322b0033a758bd350c650cb4ee4d23f21f1528d2767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b802d5b13a84c8a4c7b2655892144266505f9ee39e75ab9a30246d9e63776e48ff300229ccb882f31c7695065ff200396966f2d3d8adb0dc0c674a7a291e7a64
|
7
|
+
data.tar.gz: c9bff3498db70bf2dd2806af9f39fda3d0cb7b6998192cf5fce3e6a6bc6ea4dabac9c3aa99f0d9d46a0dfdb43ac5768795e8aaf470b65e0b749b48fcff7f361a
|
@@ -4,17 +4,17 @@ module AptDependencies
|
|
4
4
|
def self.ensure!
|
5
5
|
return "true" if deps_to_install.none?
|
6
6
|
if sudo_password_required? && ENV["RAILS_ENV"] != "development"
|
7
|
-
$stderr.puts "sudo requires password! cannot install #{deps_to_install.join}"
|
7
|
+
$stderr.puts "sudo requires password! cannot install #{deps_to_install.join(' ')}"
|
8
8
|
exit 1
|
9
9
|
else
|
10
|
-
"sudo apt install -y #{deps_to_install.join}"
|
10
|
+
"sudo apt install -y #{deps_to_install.join(' ')}"
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def deps_to_install
|
17
|
-
installed_deps = `apt list
|
17
|
+
installed_deps = `apt list #{deps.join(' ')} --installed 2>/dev/null`.chomp.split("\n")[1..]
|
18
18
|
.map { |line| line.split("/")[0] }
|
19
19
|
deps - installed_deps
|
20
20
|
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: 0.50.
|
4
|
+
version: 0.50.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|