bard 0.59.2 → 0.59.3

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: be03f18048d42fca18c08b2e4acfc1ec0abc689cc3308e3672774d67098556c2
4
- data.tar.gz: ebfe954ff476c1fd5f1a2120f3be08ce0cdab036bb49584921bd2b43d14bc6c4
3
+ metadata.gz: 38956ca84edead7bc46197a53aff83f1684eae930e8fed10d230091b4ec3af50
4
+ data.tar.gz: '095c71e86c3eb768809b37702dc5e45639ca8697677dfbb3941d1a7cb6e28fbe'
5
5
  SHA512:
6
- metadata.gz: 156f27088ee94fef48ee33c054fdf7a14eadf0875eb3752b661a0cc12b60bb56f655d124799e21566b4d8324bc5deb362ba2fd5991c6070821431e54925987f4
7
- data.tar.gz: dfaea284d495faa359018c0fbacf194d03bd77491c4d4ea21372fca3aadaec0fe6869b7f80fde8f1ada60ef2660b76b378137358892c875a27705f782d4a39d4
6
+ metadata.gz: b3f6f485712f5a5cc6343fcadfd989041da32f303d87291af7b093f8d5a6238ec0e71ae117e6993a635222abcfe2e2b1b1261d948bd0a4fed1905cf6649369ca
7
+ data.tar.gz: 3002ddf4ce77835ef490f623090ed3ce249d90825f41f45428d49f0cabad1b51ecc5815d86ce84c857950dfdc641522ff7d0814c43d6a2bb2394f5de30ec780c
data/lib/bard/ci.rb CHANGED
@@ -21,30 +21,32 @@ class Bard::CLI < Thor
21
21
  extend Forwardable
22
22
  delegate [:run, :exists?, :console, :last_response, :status] => :runner
23
23
 
24
+ def local?
25
+ @local
26
+ end
27
+
28
+ def github_actions?
29
+ File.exist?(".github/workflows/ci.yml")
30
+ end
31
+
32
+ def jenkins?
33
+ !local? && !github_actions?
34
+ end
35
+
24
36
  private
25
37
 
26
38
  def choose_runner_class
27
39
  if local?
28
40
  require_relative "./ci/local"
29
41
  Local
30
- else
31
- if github_actions?
32
- require_relative "./ci/github_actions"
33
- GithubActions
34
- else
35
- require_relative "./ci/jenkins"
36
- Jenkins
37
- end
42
+ elsif github_actions?
43
+ require_relative "./ci/github_actions"
44
+ GithubActions
45
+ elsif jenkins?
46
+ require_relative "./ci/jenkins"
47
+ Jenkins
38
48
  end
39
49
  end
40
-
41
- def local?
42
- @local
43
- end
44
-
45
- def github_actions?
46
- File.exist?(".github/workflows/ci.yml")
47
- end
48
50
  end
49
51
  end
50
52
 
data/lib/bard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.59.2"
2
+ VERSION = "0.59.3"
3
3
  end
4
4
 
data/lib/bard.rb CHANGED
@@ -111,7 +111,7 @@ class Bard::CLI < Thor
111
111
  if success
112
112
  puts
113
113
  puts "Continuous integration: success!"
114
- if !options["local-ci"] && File.exist?("coverage")
114
+ if ci.jenkins? && File.exist?("coverage")
115
115
  puts "Downloading test coverage from CI..."
116
116
  download_ci_test_coverage
117
117
  end
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.59.2
4
+ version: 0.59.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: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.5.3
183
+ rubygems_version: 3.5.6
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: CLI to automate common development tasks.