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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f63a121a44be1405918038ea696c903ffaebda06
4
- data.tar.gz: 7f9395a5379fbcaa0f2396c0fc900c369af1674d
3
+ metadata.gz: 499dd59d537a9f0ce726f8b206bd400d66ae32ed
4
+ data.tar.gz: 9b52b5a27829dcbcc61d7b2bf8cbc9020100e83a
5
5
  SHA512:
6
- metadata.gz: 5d8cc83d8c823a141410075e57def77863b59352ec198158be82096a431397eee09bc63d234966d46a0bee916c2a7c8eecce04fa051c9f35ce8d5bf2de965fdf
7
- data.tar.gz: 0630f050ee64c0841854ccc014336a8fbce6bd06538ee72cdff28df706f6133c06d6b3bc06c99778819365c8b4f9e1f12662ab53e74eb73d2194854ea7bbe2ac
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 )
@@ -10,12 +10,13 @@ module Rubcat
10
10
  }.merge options
11
11
  end
12
12
 
13
- def parse_message(mes)
13
+ def parse_message(message)
14
+ m = message.match(/^([VDIWEFS])\/(.*)\((\s*[0-9]+)\):\s(.*)$/)
14
15
  {
15
- type: mes.match(/^[VDIWEFS]/).to_s,
16
- tag: mes.match(/^.\/(.*)\(\s*[0-9]+\):/)[1].strip,
17
- pid: mes.match(/\(\s*([0-9]+)\):/)[1],
18
- message: mes.match(/\(\s*[0-9]+\):\s(.*)/)[1]
16
+ type: m[1],
17
+ tag: m[2].strip,
18
+ pid: m[3],
19
+ message: m[4]
19
20
  }
20
21
  end
21
22
 
@@ -1,3 +1,3 @@
1
1
  module Rubcat
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - polamjag