yardstick 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 12
3
- total_score: 160
3
+ total_score: 162
@@ -48,8 +48,8 @@ module Yardstick
48
48
  #
49
49
  # @api private
50
50
  def self.method_objects
51
- YARD::Registry.all(:method).sort_by do |method_object|
52
- [method_object.file || '', method_object.line || 0]
51
+ YARD::Registry.all(:method).select(&:file).select(&:line).sort_by do |method_object|
52
+ [method_object.file, method_object.line]
53
53
  end
54
54
  ensure
55
55
  YARD::Registry.clear
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Yardstick
4
4
  # Gem version
5
- VERSION = '0.9.8'.freeze
5
+ VERSION = '0.9.9'.freeze
6
6
  end # module Yardstick
@@ -37,5 +37,6 @@ describe Yardstick::Parser, '.parse_string' do
37
37
  end
38
38
 
39
39
  it { should be_a(Yardstick::DocumentSet) }
40
+ its(:length) { should be(1) }
40
41
  end
41
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yardstick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: