rubcat 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/rubcat/pretty_logcat.rb +6 -5
- data/lib/rubcat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499dd59d537a9f0ce726f8b206bd400d66ae32ed
|
4
|
+
data.tar.gz: 9b52b5a27829dcbcc61d7b2bf8cbc9020100e83a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa27f3d0c124b4603f4ef6cbd529b7d6aa50c5187f1447a3ccc0680a4f53470457a46f5033d6630ba9f14e5b2fd0cee11fa5ad1dbeefbf2f901d3ccd16360e8
|
7
|
+
data.tar.gz: 5153327dd9be4b4f9f4c5fea3ed7095dacc7e1057d5ad2c2eac9cc9b7d7b24085de9be982267f64ba84e2f29ca37f65b99cd6a2dcb991a4daad8160b589335b8
|
data/README.md
CHANGED
@@ -10,6 +10,16 @@ Just execute:
|
|
10
10
|
|
11
11
|
$ gem install rubcat
|
12
12
|
|
13
|
+
## Options
|
14
|
+
|
15
|
+
-l, --level={V,D,I,W,E,F} Minimul level to display
|
16
|
+
-s, --serial=DEVICE_SERIAL
|
17
|
+
-d Use first device for log input (adb -d option)
|
18
|
+
-e Use first emulator for log input (adb -e option)
|
19
|
+
--tag-length=LENGTH Length of tag shown in left of screen (default is 25)
|
20
|
+
--split-tags Insert empty line between tags
|
21
|
+
|
22
|
+
|
13
23
|
## Contributing
|
14
24
|
|
15
25
|
1. Fork it ( https://github.com/polamjag/rubcat/fork )
|
data/lib/rubcat/pretty_logcat.rb
CHANGED
@@ -10,12 +10,13 @@ module Rubcat
|
|
10
10
|
}.merge options
|
11
11
|
end
|
12
12
|
|
13
|
-
def parse_message(
|
13
|
+
def parse_message(message)
|
14
|
+
m = message.match(/^([VDIWEFS])\/(.*)\((\s*[0-9]+)\):\s(.*)$/)
|
14
15
|
{
|
15
|
-
type:
|
16
|
-
tag:
|
17
|
-
pid:
|
18
|
-
message:
|
16
|
+
type: m[1],
|
17
|
+
tag: m[2].strip,
|
18
|
+
pid: m[3],
|
19
|
+
message: m[4]
|
19
20
|
}
|
20
21
|
end
|
21
22
|
|
data/lib/rubcat/version.rb
CHANGED