excellent 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -129,6 +129,6 @@ problematic code early.
129
129
  Author
130
130
  ------
131
131
 
132
- Copyright (c) 2008-2013 Marco Otte-Witte ([http://simplabs.com](http://simplabs.com)), released under the MIT license.
132
+ Copyright (c) 2008-2014 Marco Otte-Witte ([http://simplabs.com](http://simplabs.com)), released under the MIT license.
133
133
 
134
134
  Excellent was inspired by roodi ([https://github.com/martinjandrews/roodi](https://github.com/martinjandrews/roodi)), reek ([https://github.com/troessner/reek](https://github.com/troessner/reek)) and flog ([https://github.com/seattlerb/flog](https://github.com/seattlerb/flog)).
@@ -9,7 +9,7 @@ module Simplabs #:nodoc:
9
9
 
10
10
  module Excellent #:nodoc:
11
11
 
12
- VERSION = '2.1.0'
12
+ VERSION = '2.1.1'
13
13
 
14
14
  end
15
15
 
@@ -19,7 +19,11 @@ module Simplabs
19
19
  private
20
20
 
21
21
  def silent_parse(content, filename)
22
- @parser ||= RUBY_VERSION =~ /2\.0/ ? Ruby19Parser.new : RubyParser.for_current_ruby
22
+ if @parser.nil?
23
+ @parser = RUBY_VERSION =~ /2\.0/ ? Ruby19Parser.new : RubyParser.for_current_ruby
24
+ else
25
+ @parser.reset
26
+ end
23
27
  content = ::ERB.new(content, nil, '-').src if filename =~ /\.erb$/
24
28
  sexp = @parser.parse(content, filename)
25
29
  sexp
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excellent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2009-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_parser
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70120124002760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '3.0'
24
+ version_requirements: *70120124002760
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: sexp_processor
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70120124002280 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '4.0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '4.0'
35
+ version_requirements: *70120124002280
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: hashr
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70120124001800 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ! '>='
@@ -53,12 +43,7 @@ dependencies:
53
43
  version: 0.0.10
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: 0.0.10
46
+ version_requirements: *70120124001800
62
47
  description: Excellent finds the nasty lines in your code. It implements a comprehensive
63
48
  set of checks for possibly buggy parts of your app that would otherwise make it
64
49
  into your repo and eventually to the production server.
@@ -165,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
150
  version: '0'
166
151
  requirements: []
167
152
  rubyforge_project:
168
- rubygems_version: 1.8.23
153
+ rubygems_version: 1.8.11
169
154
  signing_key:
170
155
  specification_version: 2
171
156
  summary: Source Code analysis gem for Ruby and Rails