flog 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +6 -0
  3. data/README.txt +4 -3
  4. data/lib/flog.rb +8 -7
  5. metadata +12 -16
  6. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 2.5.2 / 2011-08-11
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Improved parse error output. (impurist)
6
+
1
7
  === 2.5.1 / 2011-02-18
2
8
 
3
9
  * 3 minor enhancements:
data/README.txt CHANGED
@@ -1,7 +1,8 @@
1
1
  = flog
2
2
 
3
- * http://ruby.sadi.st/
4
- * http://rubyforge.org/projects/seattlerb
3
+ home :: http://ruby.sadi.st/
4
+ repo :: https://github.com/seattlerb/flog
5
+ rdoc :: http://seattlerb.rubyforge.org/flog
5
6
 
6
7
  == DESCRIPTION:
7
8
 
@@ -36,7 +37,7 @@ report. The higher the score, the more pain the code is in.
36
37
 
37
38
  (The MIT License)
38
39
 
39
- Copyright (c) 2007-2009 Ryan Davis, Seattle.rb
40
+ Copyright (c) Ryan Davis, seattle.rb
40
41
 
41
42
  Permission is hereby granted, free of charge, to any person obtaining
42
43
  a copy of this software and associated documentation files (the
@@ -4,7 +4,7 @@ require 'ruby_parser'
4
4
  require 'optparse'
5
5
 
6
6
  class Flog < SexpProcessor
7
- VERSION = '2.5.1'
7
+ VERSION = '2.5.2'
8
8
 
9
9
  THRESHOLD = 0.60
10
10
  SCORES = Hash.new 1
@@ -247,12 +247,13 @@ class Flog < SexpProcessor
247
247
  warn "#{e.inspect} at #{e.backtrace.first(5).join(', ')}"
248
248
  warn "\n...stupid lemmings and their bad erb templates... skipping"
249
249
  else
250
+ warn "ERROR: parsing ruby file #{file}"
250
251
  unless option[:continue] then
251
252
  warn "ERROR! Aborting. You may want to run with --continue."
252
253
  raise e
253
254
  end
254
- warn file
255
- warn "#{e.inspect} at #{e.backtrace.first(5).join(', ')}"
255
+ warn "#{e.class}: #{e.message.strip} at:"
256
+ warn " #{e.backtrace.first(5).join("\n ")}"
256
257
  end
257
258
  end
258
259
  end
@@ -534,11 +535,11 @@ class Flog < SexpProcessor
534
535
 
535
536
  def process_call(exp)
536
537
  penalize_by 0.2 do
537
- recv = process exp.shift
538
+ process exp.shift # recv
538
539
  end
539
540
  name = exp.shift
540
541
  penalize_by 0.2 do
541
- args = process exp.shift
542
+ process exp.shift # args
542
543
  end
543
544
 
544
545
  add_to_score name, SCORES[name]
@@ -582,7 +583,7 @@ class Flog < SexpProcessor
582
583
  end
583
584
 
584
585
  def process_defs(exp)
585
- recv = process exp.shift
586
+ process exp.shift # recv
586
587
  in_method "::#{exp.shift}", exp.file, exp.line do
587
588
  process_until_empty exp
588
589
  end
@@ -675,7 +676,7 @@ class Flog < SexpProcessor
675
676
 
676
677
  def process_sclass(exp)
677
678
  penalize_by 0.5 do
678
- recv = process exp.shift
679
+ process exp.shift # recv
679
680
  process_until_empty exp
680
681
  end
681
682
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 5
9
- - 1
10
- version: 2.5.1
9
+ - 2
10
+ version: 2.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,8 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2011-02-18 00:00:00 -08:00
40
- default_executable:
39
+ date: 2011-08-12 00:00:00 Z
41
40
  dependencies:
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: sexp_processor
@@ -75,14 +74,13 @@ dependencies:
75
74
  requirement: &id003 !ruby/object:Gem::Requirement
76
75
  none: false
77
76
  requirements:
78
- - - ">="
77
+ - - ~>
79
78
  - !ruby/object:Gem::Version
80
79
  hash: 11
81
80
  segments:
82
81
  - 2
83
- - 0
84
- - 2
85
- version: 2.0.2
82
+ - 4
83
+ version: "2.4"
86
84
  type: :development
87
85
  version_requirements: *id003
88
86
  - !ruby/object:Gem::Dependency
@@ -91,14 +89,13 @@ dependencies:
91
89
  requirement: &id004 !ruby/object:Gem::Requirement
92
90
  none: false
93
91
  requirements:
94
- - - ">="
92
+ - - ~>
95
93
  - !ruby/object:Gem::Version
96
- hash: 41
94
+ hash: 23
97
95
  segments:
98
96
  - 2
99
- - 9
100
- - 1
101
- version: 2.9.1
97
+ - 10
98
+ version: "2.10"
102
99
  type: :development
103
100
  version_requirements: *id004
104
101
  description: |-
@@ -126,7 +123,6 @@ files:
126
123
  - lib/gauntlet_flog.rb
127
124
  - test/test_flog.rb
128
125
  - .gemtest
129
- has_rdoc: true
130
126
  homepage: http://ruby.sadi.st/
131
127
  licenses: []
132
128
 
@@ -157,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
153
  requirements: []
158
154
 
159
155
  rubyforge_project: seattlerb
160
- rubygems_version: 1.4.2
156
+ rubygems_version: 1.8.5
161
157
  signing_key:
162
158
  specification_version: 3
163
159
  summary: Flog reports the most tortured code in an easy to read pain report
metadata.gz.sig CHANGED
Binary file