ruby-watchr 0.3.3 → 0.3.4

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.
@@ -43,7 +43,7 @@ module Watchr
43
43
  smell_type(score, type), target.name, "complexity = #{score}"
44
44
  )
45
45
 
46
- builder.add_location(target.location.file, target.location.line)
46
+ builder.add_location(target.location.file, target.location.line) if target.location
47
47
  builder.add_details({ :complexity => score })
48
48
 
49
49
  add_smell(builder.smell)
@@ -1,3 +1,3 @@
1
1
  module Watchr
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -52,7 +52,7 @@ describe Watchr::Analysers::Flog do
52
52
  :add_location => true,
53
53
  :add_details => true,
54
54
  :smell => smell)
55
- }
55
+ }
56
56
 
57
57
  before { Watchr::SmellBuilder.stubs(:new).returns(builder) }
58
58
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Petr Janda
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-08-12 00:00:00 +02:00
17
+ date: 2012-08-13 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency