repos_report 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6367bb17f00e283a1ed5f0aad41a975c01a4f8d
4
- data.tar.gz: 9d008023b8c91dc082581aa0b1871cb34bfb8e66
3
+ metadata.gz: 630f4c76ec370935eec44fd18cadcb92fbe21fb5
4
+ data.tar.gz: daa179cfb164c4cf8ca37de6d3b5a0bd927424c5
5
5
  SHA512:
6
- metadata.gz: 88a91551414dbbae38f3492a8c3fa5fbb5f84fa518db86d0ddd6bf979761029980bb84fc00dfb096604dc8c0ed024f1fb35839208d3e0e9a4bb09e357589efa8
7
- data.tar.gz: 030748e3d8442513def9a6994ec6edb27f850ae232b25f677fdaf2421be7c8731fb002853127777f474140a83ca128061e6e85719dacd955d610c3d3a2950571
6
+ metadata.gz: 15f4ed930d17d12d0dd31cc25ccae67a93a3e5e412be5ee87f173f0f8f9a9c49e11a2326fda551e42e1ea41f19dea31b7d3bcc28e1bdea071188fba4011de448
7
+ data.tar.gz: f84f78c4f15ffdda7ed9af0950ec91fb13959181dcdbcd6d514826ed8c55c478023b2a9b8c2e1a758cbf4f188383de88c521fb0e498a5623b4916a00ae563e8a
data/bin/rep2 CHANGED
@@ -15,10 +15,11 @@ when 'list'
15
15
  directory = get_directory(ARGV[1])
16
16
  ReposReport.list_all_repos(directory)
17
17
 
18
- when /\//
19
- directory = get_directory(ARGV[0])
20
- ReposReport.print_status_of_projects_under(directory)
18
+ when /(-h)|(--help)/
19
+ puts "Run 'rep2 [directory_path]' get a report on the status of repos in that directory."
20
+ puts "Run 'rep2 list [directory_path]' to get a list of the paths of repos in that directory."
21
21
 
22
22
  else
23
- puts "Run 'rep2 [directory_path]' get a report on the status of repos in that directory."
23
+ directory = get_directory(ARGV[0])
24
+ ReposReport.print_status_of_projects_under(directory)
24
25
  end
data/lib/repos_report.rb CHANGED
@@ -4,10 +4,10 @@ module ReposReport
4
4
  class << self
5
5
  def print_status_of_projects_under(directory)
6
6
  repos = RepoFinder.repos_in_or_below(directory)
7
- padding = whitespace_padding_for(repos)
8
7
 
9
8
  puts_repo_data(repos) do |repo|
10
- repo.concise_status(padding)
9
+ @padding ||= whitespace_padding_for(repos)
10
+ repo.concise_status(@padding)
11
11
  end
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module ReposReport
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repos_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - neurodynamic