fasterer 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fasterer/file_traverser.rb +3 -3
- data/lib/fasterer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a9044b0734156a715894ea721ea8a13105c55fc
|
|
4
|
+
data.tar.gz: 5cee39bd66ce0513d1fa3a6175d3b5f35de4ba70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d89297fc809382f092941e12f52dd092e999af45d521d07c7bdca0350d070e096fe0235ddf7b56a6d82d5fbead89bbd3d1c9d177a4d5e6bda56d0efa80fd3c4
|
|
7
|
+
data.tar.gz: 4f50e5a4512471e8f812541a432970712e0c94f3336a80400d5226e29553f50ccf4a74df53981d50d5b952161fa1686dd8e9b0b13e17f160d648212f5dadf2bd
|
|
@@ -54,7 +54,7 @@ module Fasterer
|
|
|
54
54
|
def scan_file(path)
|
|
55
55
|
analyzer = Analyzer.new(path)
|
|
56
56
|
analyzer.scan
|
|
57
|
-
rescue RubyParser::SyntaxError, Racc::ParseError
|
|
57
|
+
rescue RubyParser::SyntaxError, Racc::ParseError, Timeout::Error
|
|
58
58
|
parse_error_paths.push(path)
|
|
59
59
|
else
|
|
60
60
|
output(analyzer) if offenses_grouped_by_type(analyzer).any?
|
|
@@ -85,8 +85,8 @@ module Fasterer
|
|
|
85
85
|
|
|
86
86
|
def output_parse_errors
|
|
87
87
|
puts 'Fasterer was unable to process some files because the'
|
|
88
|
-
puts 'internal parser is not able to read some characters
|
|
89
|
-
puts 'Unprocessable files were:'
|
|
88
|
+
puts 'internal parser is not able to read some characters or'
|
|
89
|
+
puts 'has timeouted. Unprocessable files were:'
|
|
90
90
|
puts '-----------------------------------------------------'
|
|
91
91
|
puts parse_error_paths
|
|
92
92
|
puts
|
data/lib/fasterer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fasterer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damir Svrtan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|