fasterer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/fasterer/analyzer.rb +0 -2
- data/lib/fasterer/file_traverser.rb +1 -1
- data/lib/fasterer/offense.rb +1 -1
- data/lib/fasterer/version.rb +1 -1
- metadata +2 -3
- data/lib/fasterer/parse_error.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9a616ac05b430472ca9f256d14d39c8bca2b228
|
4
|
+
data.tar.gz: 5dc6f2bd8f06edc6403141d0cbd6b5ae7cfeaf86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0045bffa7b1096481147729775723e35a0a13a87b7d24911bc8f29cc37dafddb26cdb72c5c3c4573bc0e325be4d98c4a2089bfe8cd24b9636314db586a3396f2
|
7
|
+
data.tar.gz: 2e98083140461533bcf3fe7b8effe878e89450840735dcdbb61e1ca43400cde92b5d1314130d7d09b2d666300b3712b98e669cd47b9213b23f550b918b673f6d
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
[![Build Status](https://travis-ci.org/DamirSvrtan/fasterer.svg?branch=master)](https://travis-ci.org/DamirSvrtan/fasterer)
|
2
2
|
[![Code Climate](https://codeclimate.com/github/DamirSvrtan/fasterer/badges/gpa.svg)](https://codeclimate.com/github/DamirSvrtan/fasterer)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/fasterer.svg)](http://badge.fury.io/rb/fasterer)
|
3
4
|
# Fasterer
|
4
5
|
|
5
6
|
Make your Rubies go faster with this command line tool highly inspired by [fast-ruby](https://github.com/JuanitoFatas/fast-ruby) and [Sferik's talk at Baruco Conf](https://speakerdeck.com/sferik/writing-fast-ruby).
|
data/lib/fasterer/analyzer.rb
CHANGED
@@ -3,7 +3,6 @@ require 'fasterer/method_call'
|
|
3
3
|
require 'fasterer/rescue_call'
|
4
4
|
require 'fasterer/offense_collector'
|
5
5
|
require 'fasterer/parser'
|
6
|
-
require 'fasterer/parse_error'
|
7
6
|
require 'fasterer/scanners/method_call_scanner'
|
8
7
|
require 'fasterer/scanners/rescue_call_scanner'
|
9
8
|
require 'fasterer/scanners/method_definition_scanner'
|
@@ -20,7 +19,6 @@ module Fasterer
|
|
20
19
|
|
21
20
|
def scan
|
22
21
|
sexp_tree = Fasterer::Parser.parse(@file_content)
|
23
|
-
fail ParseError.new(file_path) if sexp_tree.nil?
|
24
22
|
traverse_sexp_tree(sexp_tree)
|
25
23
|
end
|
26
24
|
|
@@ -43,7 +43,7 @@ module Fasterer
|
|
43
43
|
def scan_file(path)
|
44
44
|
analyzer = Analyzer.new(path)
|
45
45
|
analyzer.scan
|
46
|
-
rescue
|
46
|
+
rescue RubyParser::SyntaxError, Racc::ParseError
|
47
47
|
parse_error_paths.push(path)
|
48
48
|
else
|
49
49
|
output(analyzer) if offenses_grouped_by_type(analyzer).any?
|
data/lib/fasterer/offense.rb
CHANGED
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.2
|
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-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- lib/fasterer/method_definition.rb
|
123
123
|
- lib/fasterer/offense.rb
|
124
124
|
- lib/fasterer/offense_collector.rb
|
125
|
-
- lib/fasterer/parse_error.rb
|
126
125
|
- lib/fasterer/parser.rb
|
127
126
|
- lib/fasterer/rescue_call.rb
|
128
127
|
- lib/fasterer/scanners/method_call_scanner.rb
|