omglog 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omglog.rb +2 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3150b2ceb99ef47a8037ee6f0387fe5dd69d4780
|
4
|
+
data.tar.gz: bfa62b47fe865140d5dbe484eefc066dc0afad5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6b7952bafb262769254dc36c2300b84d74561e677e48f0f77d1df74d4a19f4f95e7b18cb6801ee58b9b84347962635c3a167d227252100d265734d978bfc7e5
|
7
|
+
data.tar.gz: 7066c13146c1d1d91d58091aa0ba97d2440f2c8c3d776428f17b358fb07df44e5cb2c083e79f4bbc764139d6d0e01dc839c10a83ac948fb156dfced7eeb422d5
|
data/lib/omglog.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
3
|
module Omglog
|
4
|
-
VERSION = '0.0.
|
4
|
+
VERSION = '0.0.9'
|
5
5
|
|
6
6
|
def run_on system
|
7
7
|
Omglog::Base.run
|
@@ -59,6 +59,7 @@ module Omglog
|
|
59
59
|
def self.arrange_commit commit, cols
|
60
60
|
commit[0].chomp!(' ')
|
61
61
|
commit[-2].sub!(/(\d+)\s(\w)[^\s]+ ago/, '\1\2 ago')
|
62
|
+
commit.each{|c| c.sub!(/\t/, ' ')}
|
62
63
|
room = [cols - [commit[0].gsub(/\e\[[\d;]*m/, ''), commit[1..-2]].flatten.map(&:length).inject(&:+), SHORTEST_MESSAGE].max
|
63
64
|
commit.tap {|commit|
|
64
65
|
commit[-1, 0] = if commit[-1].length > room
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omglog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Hoskings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb-fsevent
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.8.8
|
41
|
-
description:
|
41
|
+
description: Live git logging using fseventsd. omg!
|
42
42
|
email: ben@hoskings.net
|
43
43
|
executables:
|
44
44
|
- omglog
|
@@ -69,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.0.
|
72
|
+
rubygems_version: 2.0.1
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
|
-
summary:
|
75
|
+
summary: Live git logging using fseventsd.
|
76
76
|
test_files: []
|