bard 0.61.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: bdddc541607bbf0fb29fbdd281e8065785f1a5c381fb4494a62947cb2c21d0e7
4
- data.tar.gz: cc3e28b16f6807f42140638e3bce5dbb0a5404500250bd520cb52ccec88eb6d0
3
+ metadata.gz: f18316a4dc7dcd513e1dcac34f50fb757cfbf9072a617680ba1241a53c484539
4
+ data.tar.gz: 1c8fcb0539271a4f86e22cf442b65cf3ee864388c4705ef6b1b2243e7a46e5cf
5
5
  SHA512:
6
- metadata.gz: 5d932199974ba63b0c2c204afaa94597178ef54fbfa3ef9730064d54014ca59886332f54d8a6199a1fe6fc815f49f6b3be34fa2b3240aa8f5a3926165964652b
7
- data.tar.gz: fb837322767db80c5fcfd41d9e365aedc90d4d72533fc1daba6949d4db8f3773a641a9a2860e7d8190369d2565ab73760ece62fa31488ff4669b6ac9b888d186
6
+ metadata.gz: 6ef61f9c77b19fbff8231eb2707501c9f6185eb343b8da84507d00673bf38ec5c28da1e636a972955f976237f256e8f40b890c750350665a6b28819b74fa76d5
7
+ data.tar.gz: 5da351a322da23ac6f8351a46161939d4b0288538a9e4610e7a5d92eec4599932f00fd1972bb4b3b130d9dbe4b0ba6ad8151824c11b85380ccdbcb4813692f86
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "bundler"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ allow:
8
+ - dependency-type: "all"
9
+ rebase-strategy: "disabled"
10
+ versioning-strategy: "lockfile-only"
11
+ groups:
12
+ semver_updates:
13
+ applies-to: "version-updates"
14
+ update-types:
15
+ - "minor"
16
+ - "patch"
17
+
@@ -6,7 +6,7 @@ on:
6
6
  - cron: '0 0 */3 * *'
7
7
  jobs:
8
8
  build_ruby_cache:
9
- runs-on: ubuntu-20.04
9
+ runs-on: ubuntu-22.04
10
10
  steps:
11
11
  - uses: actions/checkout@v3
12
12
  - uses: ruby/setup-ruby@v1
@@ -4,8 +4,6 @@ on:
4
4
  workflow_dispatch:
5
5
  inputs:
6
6
  git-ref:
7
- description: Git Ref
8
- default: master
9
7
  required: true
10
8
 
11
9
  permissions:
@@ -14,7 +12,7 @@ permissions:
14
12
 
15
13
  jobs:
16
14
  test:
17
- runs-on: ubuntu-20.04-16core
15
+ runs-on: ubuntu-22.04-16core
18
16
  env:
19
17
  RAILS_ENV: test
20
18
  RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
@@ -26,7 +24,7 @@ jobs:
26
24
  - name: Checkout code
27
25
  uses: actions/checkout@v3
28
26
  with:
29
- ref: ${{ github.event.inputs.git-ref }}
27
+ ref: ${{ github.event.inputs.git-ref || github.event.pull_request.head.sha }}
30
28
  - name: Install Ruby and gems
31
29
  uses: ruby/setup-ruby@v1
32
30
  with:
@@ -38,7 +36,7 @@ jobs:
38
36
 
39
37
  autodeploy-dependabot-prs:
40
38
  needs: test
41
- runs-on: ubuntu-20.04
39
+ runs-on: ubuntu-22.04
42
40
  if: github.actor == 'dependabot[bot]'
43
41
  steps:
44
42
  - name: Merge Dependabot PR
@@ -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.61.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.61.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-06-06 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
@@ -138,6 +138,7 @@ files:
138
138
  - features/support/env.rb
139
139
  - features/support/grit_ext.rb
140
140
  - features/support/io.rb
141
+ - install_files/.github/dependabot.yml
141
142
  - install_files/.github/workflows/cache-ci.yml
142
143
  - install_files/.github/workflows/ci.yml
143
144
  - install_files/apt_dependencies.rb