ruby-watchr 0.1.2 → 0.1.3

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
@@ -18,11 +18,11 @@ module Watchr
18
18
  VERY_COMPLEX_METHOD,
19
19
  COMPLEX_OBJECT,
20
20
  VERY_COMPLEX_OBJECT
21
- smell.options.score
21
+ smell.options[:score]
22
22
 
23
23
  when IDENTICAL_CODE,
24
24
  SIMILAR_CODE
25
- smell.options.mass
25
+ smell.options[:mass]
26
26
  end
27
27
  end
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module Watchr
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -6,13 +6,13 @@ describe Watchr::Rating do
6
6
  let(:complexity_smell) {
7
7
  stub('smell',
8
8
  :type => Watchr::SmellTypes::COMPLEX_METHOD,
9
- :options => stub(:score => 29.3))
9
+ :options => {:score => 29.3})
10
10
  }
11
11
 
12
12
  let(:duplication_smell) {
13
13
  stub('smell',
14
14
  :type => Watchr::SmellTypes::IDENTICAL_CODE,
15
- :options => stub(:mass => 72))
15
+ :options => {:mass => 72})
16
16
  }
17
17
 
18
18
  let(:smells) { [complexity_smell, duplication_smell] }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Petr Janda