standup-summary 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +3 -2
- data/lib/standup-summary/version.rb +1 -1
- data/lib/standup_summary.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb4026b4332151501c5db38084a4c2a3304b20f72c85beaa94e0346f0e626e13
|
4
|
+
data.tar.gz: 5dbc9e6fe5c7ebb6891725c998231504dfa1a21fb88ffabbefb4a5b4f7cf961a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f7d716a950efba021a5d0dfa1741839e0b2a4e2756b9570e3e15f21d500de0b14a345ddbbc08c6137f1a6a0391b50b72886135a752143eb4cf1dd27643180b2
|
7
|
+
data.tar.gz: ab787bd33784cf780ceaaeb784a4648a281d5b563d96d4be1716b7e57670d405c15cb73485268df0f4d7c64abe2b23c42ad4c72046f2d6b16db61cfc796ffa51
|
data/README.md
CHANGED
@@ -30,8 +30,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
30
30
|
|
31
31
|
## Todo
|
32
32
|
|
33
|
-
- add option to analyze diffs
|
34
|
-
-
|
33
|
+
- [x] add option to analyze diffs
|
34
|
+
- [ ] figure out way to combine instertions/deletions/changes scores
|
35
|
+
- [ ] support for ruby controll
|
35
36
|
|
36
37
|
## Contributing
|
37
38
|
|
data/lib/standup_summary.rb
CHANGED
@@ -96,8 +96,8 @@ module StandupSummary
|
|
96
96
|
puts
|
97
97
|
out = `#{cmd}`
|
98
98
|
# out.split(/\/home\/.*$/)
|
99
|
-
total_count = `#{cmd} | grep -v #{@options[:path]}
|
100
|
-
projects = `#{cmd} | grep #{@options[:path]}
|
99
|
+
total_count = `#{cmd} | grep -v "#{@options[:path]}/*" -c`
|
100
|
+
projects = `#{cmd} | grep "#{@options[:path]}/*" --color=never`
|
101
101
|
projects = projects.split("\n")
|
102
102
|
project_hash = {}
|
103
103
|
commits_per_project = out.split(/\/home\/.*$/)
|
@@ -111,6 +111,8 @@ module StandupSummary
|
|
111
111
|
end
|
112
112
|
puts "Total projects: #{projects.size}, total commits: #{total_count}"
|
113
113
|
project_hash.each do |project, hash|
|
114
|
+
next if project.nil?
|
115
|
+
|
114
116
|
project = +project
|
115
117
|
project.slice!("#{@options[:path]}/")
|
116
118
|
puts "#{project}: #{hash[:count]} / #{hash[:percentage].floor(2)}%"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standup-summary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Podroužek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.7.
|
114
|
+
rubygems_version: 2.7.6
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Quick git-standup summary
|