hiiro 0.1.54 → 0.1.55

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: ed4284e83a1b52e665208b5e706de9017e9acfb3eedbcd0e1b265e3719292638
4
- data.tar.gz: 23dbed41838b15eeaa2f312669da58bd5a2546a0b1cd52b6149b44bf54d7316e
3
+ metadata.gz: 8ef7a585109b14b6a8de8f7036b8d0099c1abbee33569c55436dcb51ac4c1905
4
+ data.tar.gz: 0f20d4397f16fd0b4f67a3ee7485d9ee8583a5e96d7b2352c6bbcd9fb0dc1329
5
5
  SHA512:
6
- metadata.gz: 5ea8a092c971853fbf396ab63702dabf56e88abb09ca34ab170d45cf8cec0ae5a561ece441768136780f98b024657b93d9d3adb46174d15354fec6a9d3545d6b
7
- data.tar.gz: 3677c376b5a84c7da0ffe69c10cddceb9c3c9446bfbee8aa37282a1e1b33cbd20534d98e67d6deacbc62a78480393d7b2238b1bb992a714903d670d9014b14cf
6
+ metadata.gz: 8b6579c8c352aeafa41d6e066956ff56a29c17acd41fca0825f6ac35555cca1db9a726e83e150f28f2c938987e7fd1d35dc424e817c1cc0b1f1f6d078858ab93
7
+ data.tar.gz: 958d0c9c18f69e90578941f90457865eec33492b5bf83594c3fd8dd5d0d4e2cb30aced8e6535246729043fe3248e2f242731b63d08dacf8168133afe58975dc3
@@ -85,12 +85,13 @@ class Hiiro
85
85
  def oneline(index = nil)
86
86
  time_str = timestamp ? Time.parse(timestamp).strftime('%m/%d %H:%M') : ''
87
87
  prefix = index ? format('%3d ', index) : ''
88
+ sha_str = git_sha ? git_sha[0..6] : '-------'
88
89
  branch_str = git_branch ? "[#{git_branch}]" : ''
89
90
  task_str = task ? "(#{task})" : ''
90
91
  cmd_str = cmd || description || ''
91
- cmd_str = cmd_str[0..40] + '...' if cmd_str.length > 43
92
+ cmd_str = cmd_str[0..35] + '...' if cmd_str.length > 38
92
93
 
93
- "#{prefix}#{time_str} #{branch_str.ljust(20)} #{task_str.ljust(15)} #{cmd_str}"
94
+ "#{prefix}#{time_str} #{sha_str} #{branch_str.ljust(20)} #{task_str.ljust(15)} #{cmd_str}"
94
95
  end
95
96
 
96
97
  def full_display
data/lib/hiiro/history.rb CHANGED
@@ -382,13 +382,13 @@ class Hiiro
382
382
  end
383
383
 
384
384
  def current_git_sha
385
- git_helper.commit('HEAD', short: true)
385
+ git_helper.commit('HEAD')
386
386
  end
387
387
 
388
388
  def current_git_origin_sha
389
389
  branch = current_git_branch
390
390
  return nil unless branch
391
- git_helper.commit("origin/#{branch}", short: true)
391
+ git_helper.commit("origin/#{branch}")
392
392
  end
393
393
 
394
394
  def current_git_worktree
data/lib/hiiro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.54"
2
+ VERSION = "0.1.55"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.54
4
+ version: 0.1.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota