bauditor 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 1f4f0ce9c0e5f448b630a2f56245013210cfd16b
4
- data.tar.gz: 48a4cfbdb77bb35b9f58988c08e39c954c817296
3
+ metadata.gz: d7ad402619f7d07528f84e7a47b14cece99b5552
4
+ data.tar.gz: 14ef287675f1c1e8d9927a47b8399d3cd13fdbb7
5
5
  SHA512:
6
- metadata.gz: 5cef103a53dbbdcd147d162711dcdf563cd4c3b4008a9147d17647486413b5a9ec85ee91413fb37bb4aa6a2c14d0dc75999c96d070aa613a4be94e298970a9dd
7
- data.tar.gz: 9c3b9714475c19961f16225607f4d7088186e7058c4de8fb9cb71b96b068fb93bcce1040e6101e1ea0b8e42bfbd841975fda34d3095d2f0d97d5e877fd911d86
6
+ metadata.gz: 463f8a85acddb99cd3804fa2ad8649ec9d66416eb28d06e3f9e7a7bdf55347ee68f02879f67781799f44372d0354cc57c1b8f846689f27a8304882f4f7b10190
7
+ data.tar.gz: 54ceda921c48f3470f7eb19275ca7626957dbcf9e9f97554034f285e0252403115a83f0df858b5dc673681d7058edeb246562a1773c9903d9659a5d0f865b9a3
data/lib/bauditor/cli.rb CHANGED
@@ -17,6 +17,8 @@ module Bauditor
17
17
  exit 1
18
18
  end
19
19
 
20
+ @cwd = Dir.getwd
21
+
20
22
  setup_dirs
21
23
  Dir.chdir repo_path
22
24
 
@@ -36,7 +38,7 @@ module Bauditor
36
38
  attr_accessor :repos, :summary
37
39
 
38
40
  def add_repos_from_config
39
- self.repos += File.readlines(options[:config]).map(&:chomp)
41
+ self.repos += File.readlines(File.join(@cwd, options[:config])).map(&:chomp)
40
42
  end
41
43
 
42
44
  def audit_repos
@@ -97,6 +99,8 @@ module Bauditor
97
99
  end
98
100
 
99
101
  def summary_report
102
+ return if summary.empty?
103
+
100
104
  say '[BAUDITOR] summary report:', [:green, :bold]
101
105
 
102
106
  long_name = summary.keys.max_by(&:length)
@@ -1,3 +1,3 @@
1
1
  module Bauditor
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bauditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Eklund