omglog 0.0.9 → 0.0.10
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad5672d570941365cb6b72d39c3ea817c9126c6
|
4
|
+
data.tar.gz: 4976d80ba4ddb2e600577fe38b57ad565f66c954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f95bbf2eb6ad25debf580496b7c1cb6f80402a6e05f59343542e38a060f32ceb7df354f693d3247c0319ff7ccacdcc07b62700559068376398d91b8191716d00
|
7
|
+
data.tar.gz: ea4712a125526a0f1ddbd0a929964e319778e4809f9a9d241171517f1b5304d3a2164aafbb47e808ce1020015fdff4b5c4b37bf6c324c3fe8d25084773c2907b
|
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.10'
|
5
5
|
|
6
6
|
def run_on system
|
7
7
|
Omglog::Base.run
|
@@ -60,6 +60,7 @@ module Omglog
|
|
60
60
|
commit[0].chomp!(' ')
|
61
61
|
commit[-2].sub!(/(\d+)\s(\w)[^\s]+ ago/, '\1\2 ago')
|
62
62
|
commit.each{|c| c.sub!(/\t/, ' ')}
|
63
|
+
commit[-2].sub!(/^ (\w)\w+\s(\w).*,/, ' \1\2,')
|
63
64
|
room = [cols - [commit[0].gsub(/\e\[[\d;]*m/, ''), commit[1..-2]].flatten.map(&:length).inject(&:+), SHORTEST_MESSAGE].max
|
64
65
|
commit.tap {|commit|
|
65
66
|
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.10
|
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-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb-fsevent
|
@@ -69,7 +69,7 @@ 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.3
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Live git logging using fseventsd.
|