log_analyzer 0.3.0 → 0.3.1

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: c264c821832afb95340f8ca5271b0b1689cc3b6a
4
- data.tar.gz: f43cdb0b6233b0176e228e85b497ab282c85f4ae
3
+ metadata.gz: 3949a52059cfee648c1748f24c7568a188c3b7ae
4
+ data.tar.gz: c0bc7095f2140417b1e61ff35421eed7c2c378d0
5
5
  SHA512:
6
- metadata.gz: 471593211dbb5d4687688a00fbc27e9ce344f6b2c992d460efa66aecf725b6aa993df3ac5f79fe41170beffb9aa915543ce9bdf0aecd30400fd45b1410f66d7e
7
- data.tar.gz: 51f4851dc0f8eb1d245f4af434ecb2b4e4c2c9cc4e5a52bbbcad67a0654d5a4cd786db33ad3d95f008bf7bb7f343582424a151d378b109e8884d24b7a76fc529
6
+ metadata.gz: 02afd22979e2959f38520ef65a03cca3f46e26ccc3317d32bca99e591acab8efc9d23ca28ab02ce6cc09a119c759a90e4dce0d7a8df595cd94e75510926371ce
7
+ data.tar.gz: ee999e789c0cc89ee027f2c7a81e8ccb8d6419a16ccaaffe43c453bb23a9a5239d8a87bb9a2425a0482b7564bbe45f7bd91f6d2aaccb1f665208e507f8e00f54
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- log_analyzer (0.3.0)
4
+ log_analyzer (0.3.1)
5
5
  colorize
6
6
  prawn
7
7
  prawn-table
data/README.md CHANGED
@@ -8,6 +8,8 @@ See how fast is rendering in your Ruby on Rails app. Based on information from l
8
8
 
9
9
  [![Sample](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/screenshot.png)](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/screenshot.png)
10
10
 
11
+ [![Reports](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/reports.png)](https://raw.githubusercontent.com/igorkasyanchuk/log_analyzer/master/docs/reports.png)
12
+
11
13
  You can see columns:
12
14
 
13
15
  * Type - type of file (partial or view = P or V)
@@ -38,6 +40,7 @@ Or install it yourself as:
38
40
  ## Usage
39
41
 
40
42
  After installation run in console command `log_analyzer -f log/development.log`. You can change the file or sorting (time, count, name).
43
+
41
44
  Samples:
42
45
 
43
46
  * `log_analyzer log/development.log -s count`
@@ -49,9 +52,9 @@ Samples:
49
52
  * `log_analyzer -file log/production.log -sort count`
50
53
  * `log_analyzer -file log/production.log -sort count -filter view`
51
54
  * `log_analyzer -file log/production.log -sort count -filter partial`
52
- * `log_analyzer -file log/production.log -sort time -filter P`
53
- * `log_analyzer log/production.log --short`
54
- * `log_analyzer log/production.log -sp`
55
+ * `log_analyzer -file log/production.log -sort time -filter p`
56
+ * `log_analyzer development.log -csv -s time -f p`
57
+ * `log_analyzer log/production.log -pdf --short`
55
58
  * `log_analyzer -file log/production.log --short`
56
59
  * `log_analyzer --help`
57
60
 
data/bin/log_analyzer CHANGED
@@ -23,7 +23,7 @@ parser = OptionParser.new do |opts|
23
23
  options[:filter] = v
24
24
  end
25
25
 
26
- opts.on("-sp", "--short", "Shrink long paths") do |v|
26
+ opts.on("--short", "Shrink long paths") do |v|
27
27
  options[:short] = v
28
28
  end
29
29
 
@@ -41,11 +41,6 @@ parser = OptionParser.new do |opts|
41
41
  end
42
42
  end
43
43
 
44
- # hack, because "log_analyzer production.log --short" not works but "-sp" works
45
- if i = ARGV.index("--short")
46
- ARGV[i] = "-sp"
47
- end
48
-
49
44
  parser.parse!
50
45
 
51
46
  # Define default params
@@ -59,7 +54,7 @@ LogAnalyzer::Configuration.configure do |config|
59
54
  config.filter = options[:filter]
60
55
  end
61
56
 
62
- # puts "Running with: #{options.inspect}".green # debug
57
+ #puts "Running with: #{options.inspect}".green # debug
63
58
 
64
59
  if options[:file] && options[:sort]
65
60
  analyzer = LogAnalyzer.analyze(filename: options[:file])
@@ -1,3 +1,3 @@
1
1
  module LogAnalyzer
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk