ruby-watchr 0.1.4 → 0.1.5

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.
data/lib/watchr/rating.rb CHANGED
@@ -15,10 +15,12 @@ module Watchr
15
15
  def rate(smell)
16
16
  case smell.type
17
17
  when COMPLEX_METHOD,
18
- VERY_COMPLEX_METHOD,
19
- COMPLEX_OBJECT,
18
+ VERY_COMPLEX_METHOD
19
+ 0.4 * smell.options[:score]
20
+
21
+ when COMPLEX_OBJECT,
20
22
  VERY_COMPLEX_OBJECT
21
- smell.options[:score]
23
+ 0.6 * smell.options[:score]
22
24
 
23
25
  when IDENTICAL_CODE,
24
26
  SIMILAR_CODE
@@ -1,3 +1,3 @@
1
1
  module Watchr
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Petr Janda