bard 0.62.0 → 0.62.1

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: d24009e6972f214ff02cffed4b23dd3ff8f07f55c6cea8ca8d56e78d57793733
4
- data.tar.gz: 56b93c510186793a22f86ad5774850cf68f4e267f02a18b1ece70cf1be3fd86a
3
+ metadata.gz: f18316a4dc7dcd513e1dcac34f50fb757cfbf9072a617680ba1241a53c484539
4
+ data.tar.gz: 1c8fcb0539271a4f86e22cf442b65cf3ee864388c4705ef6b1b2243e7a46e5cf
5
5
  SHA512:
6
- metadata.gz: 50167a79d3331b5facaccaa4bb68c1426c1ffee6f8f49eeb44361d23239aac705365d0c99485146473ca33712a93a7ee57d6585db4e8f558f09928d8a8d79a60
7
- data.tar.gz: 25dc69a864a834cb7624a6fdf6b5df017a3fc038db9fd0fb2815bb34ce334a584f49ffbb6c63b2d1f425fc1b71509b7a658f198674aff64796c4bc6fd86a85c7
6
+ metadata.gz: 6ef61f9c77b19fbff8231eb2707501c9f6185eb343b8da84507d00673bf38ec5c28da1e636a972955f976237f256e8f40b890c750350665a6b28819b74fa76d5
7
+ data.tar.gz: 5da351a322da23ac6f8351a46161939d4b0288538a9e4610e7a5d92eec4599932f00fd1972bb4b3b130d9dbe4b0ba6ad8151824c11b85380ccdbcb4813692f86
@@ -7,16 +7,16 @@ module AptDependencies
7
7
  $stderr.puts "sudo requires password! cannot install #{deps_to_install.join(' ')}"
8
8
  exit 1
9
9
  else
10
- "sudo apt update && sudo apt install -y #{deps_to_install.join(' ')}"
10
+ system "sudo DEBIAN_FRONTEND=noninteractive apt-get update -y && sudo DEBIAN_FRONTEND=noninteractive apt-get 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 #{deps.join(' ')} --installed 2>/dev/null`.chomp.split("\n")[1..]
18
- .map { |line| line.split("/")[0] }
19
- deps - installed_deps
17
+ deps.reject do |dep|
18
+ system("dpkg-query -W -f='${Status}' #{dep} 2>/dev/null > /dev/null")
19
+ end
20
20
  end
21
21
 
22
22
  def deps
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.62.0"
2
+ VERSION = "0.62.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: 0.62.0
4
+ version: 0.62.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-07-27 00:00:00.000000000 Z
11
+ date: 2024-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor