flog 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +6 -0
  3. data/lib/flog.rb +4 -1
  4. metadata +10 -10
  5. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 3.2.2 / 2013-01-22
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed stupid error when run on empty file.
6
+
1
7
  === 3.2.1 / 2012-12-19
2
8
 
3
9
  * 1 bug fix:
@@ -13,7 +13,7 @@ class File
13
13
  end
14
14
 
15
15
  class Flog < SexpProcessor
16
- VERSION = "3.2.1"
16
+ VERSION = "3.2.2"
17
17
 
18
18
  THRESHOLD = 0.60
19
19
  SCORES = Hash.new 1
@@ -294,6 +294,9 @@ class Flog < SexpProcessor
294
294
  warn "** flogging #{file}" if option[:verbose]
295
295
 
296
296
  ast = @parser.process ruby, file, timeout
297
+
298
+ return unless ast
299
+
297
300
  mass[file] = ast.mass
298
301
  process ast
299
302
  end
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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 1
10
- version: 3.2.1
9
+ - 2
10
+ version: 3.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-12-20 00:00:00 Z
39
+ date: 2013-01-23 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sexp_processor
@@ -84,11 +84,11 @@ dependencies:
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
- hash: 29
87
+ hash: 19
88
88
  segments:
89
89
  - 4
90
- - 3
91
- version: "4.3"
90
+ - 4
91
+ version: "4.4"
92
92
  type: :development
93
93
  version_requirements: *id003
94
94
  - !ruby/object:Gem::Dependency
@@ -114,11 +114,11 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- hash: 15
117
+ hash: 13
118
118
  segments:
119
119
  - 3
120
- - 4
121
- version: "3.4"
120
+ - 5
121
+ version: "3.5"
122
122
  type: :development
123
123
  version_requirements: *id005
124
124
  description: |-
metadata.gz.sig CHANGED
Binary file