git-worklog 0.1.2 → 0.1.3

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: 5c896a49cb8e12d86b1f5a825e13f2f2f99b3dc6e7ada9eea58d3eb7d40a97b7
4
- data.tar.gz: e60145e3aa95180d138a98cd2c0b2ff05ecf0c831af549e43fc70187b060f91a
3
+ metadata.gz: 5c3db475069042c06c4af6fca6cedb4733609395706f817a31e70c4f757072da
4
+ data.tar.gz: 6046b4b65e84b0d2317de71afac0cf9befd1468931fd11378170d1bdb16cb7df
5
5
  SHA512:
6
- metadata.gz: 38c0612096a226467f4e792519fc242d96dce89ebdc3ef94ab54c577b7212163adaeeeefe61b123c6ab6e3bd31aed1e74336c4ecc9f4a383cc5d900b769e7331
7
- data.tar.gz: b2eb353d704ca84175d8c6995a3d504aef627577e7cb7bf649cd76ba821fed3a2f98d7cc94a39842cbaf30083130856b174a85f8efa038c85421807364639f3f
6
+ metadata.gz: 4ef7455476c6782a7858ada856c4fccafcb8499c1c112835faa31d1a1483561cefaef8357c5bc87bac19f3b5c33fa8764c3a3af4d29adece6623be2276a83568
7
+ data.tar.gz: f5edc2c6646833edf6945a56747d445a9276133b766027d6c40eb6392e38f8d8dcb11442a06cfb44f8e9ac0af4ea58b4eae0efae694b1506a37201051d63e4b7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-worklog (0.1.0)
4
+ git-worklog (0.1.3)
5
5
  thor
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Git
4
4
  module Worklog
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
data/lib/git/worklog.rb CHANGED
@@ -53,18 +53,18 @@ module Worklog
53
53
  end
54
54
 
55
55
  desc "show", "Shows worklog from current repository/directory (Default: Last 7 days)"
56
- method_option :days, :aliases => "-d", :desc => "Specify number of days", default: 7
56
+ method_option :days, :aliases => "-d", :desc => "Specify number of days"
57
57
  method_option :weeks, :aliases => "-w", :desc => "Specify number of weeks"
58
58
  method_option :user, :aliases => "-u", :desc => "Specify Author name"
59
59
  method_option :path, :aliases => "-p", :desc => "Specify path from where to check for the repos"
60
60
  method_option :format, :aliases => "-f", :desc => "Oneline, short, medium, full, fuller and raw"
61
- method_option :reverse, :aliases => "-r", :desc => "Show output of logs in reverse", default: true
61
+ method_option :reverse, :aliases => "-r", :desc => "Show output of logs in reverse"
62
62
  method_option :type, :aliases => "-t", :desc => "Merge Commits, Branch Commits"
63
- method_option :repositories, :aliases => "-repos", :desc => "Show commits only from these repositories", default: "all"
63
+ method_option :repositories, :aliases => "-repos", :desc => "Show commits only from these repositories"
64
64
 
65
65
  def show
66
66
  commits = {}
67
- git_command = "git --no-pager log --pretty=oneline --date=short --since=#{options[:days] || 7}.days --author=\"#{user(options[:user])}\" --all"
67
+ git_command = "git --no-pager log --exclude=refs/stash --pretty=oneline --date=short --since=#{options[:days] || 7}.days --author=\"#{user(options[:user])}\" --all"
68
68
  repos.each do |repo|
69
69
  repo_name = repo.split("/").last
70
70
  output = `cd #{repo} && #{git_command}`
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-worklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ghouse Mohamed