precis 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. data/bin/precis +6 -1
  2. metadata +1 -1
data/bin/precis CHANGED
@@ -52,13 +52,15 @@ ARGV.each do |path|
52
52
  end
53
53
  end
54
54
 
55
+ zero_commits = []
56
+
55
57
  repos.each do |repo|
56
58
  Dir.chdir(repo)
57
59
 
58
60
  total_commits = `git log --oneline --since="#{since}" | wc -l`.strip
59
61
 
60
62
  if total_commits == "0"
61
- output += "There were 0 commits in #{File.basename(repo)}.\n"
63
+ zero_commits << File.basename(repo)
62
64
  else
63
65
  total_commits = total_commits == "1" ? "was #{total_commits} commit" : "were #{total_commits} commits"
64
66
 
@@ -69,6 +71,9 @@ repos.each do |repo|
69
71
  end
70
72
  end
71
73
 
74
+ # Display the repositories with zero commits at the bottom.
75
+ output += "Repositories with zero commits: #{zero_commits.join(', ')}"
76
+
72
77
  emails.each do |email|
73
78
  send_email email, :subject => "#{period.capitalize} Git update", :body => output
74
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: precis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: