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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b970945c066ebf3e312ecb17bccda2d95021fd787c97754da829eba147640384
4
- data.tar.gz: 459471c518743990bdf22aff76a2faf724774e2200bf976833c5e88883088d42
3
+ metadata.gz: cb4026b4332151501c5db38084a4c2a3304b20f72c85beaa94e0346f0e626e13
4
+ data.tar.gz: 5dbc9e6fe5c7ebb6891725c998231504dfa1a21fb88ffabbefb4a5b4f7cf961a
5
5
  SHA512:
6
- metadata.gz: a4f52b705ecb0114b463e67cda70cea672a7e228195e96f47d26ff59afeded2d1ff72ff166c529f7baa45c3fc327663e3a36d2608d0ceb3689f3ee938cbbfc54
7
- data.tar.gz: 2fc970d195220c923f57a5f41a4694d757fbdb69f34bbafdeb2519a746d1de0cc0873acb723c99666b6835b596dd220378e9caa5db02694a1e98c33b0a661479
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
- - support for ruby controll
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
 
@@ -1,3 +1,3 @@
1
1
  module StandupSummary
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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]}* -c`
100
- projects = `#{cmd} | grep #{@options[:path]}* --color=never`
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.0
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: 2018-12-10 00:00:00.000000000 Z
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.7
114
+ rubygems_version: 2.7.6
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Quick git-standup summary