yardstick 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.6.0
data/lib/yardstick.rb CHANGED
@@ -1,8 +1,7 @@
1
1
  require 'pathname'
2
- require 'yard'
3
2
 
4
3
  module Yardstick
5
- VERSION = '0.5.0'.freeze
4
+ VERSION = '0.6.0'.freeze
6
5
  ROOT = Pathname(__FILE__).dirname.parent.expand_path.freeze
7
6
 
8
7
  # Measure a list of files
@@ -20,7 +19,7 @@ module Yardstick
20
19
  #
21
20
  # @api public
22
21
  def self.measure(path = 'lib/**/*.rb', options = {})
23
- Yardstick::Processor.process_path(path)
22
+ Processor.process_path(path)
24
23
  end
25
24
 
26
25
  # Measure a string of code and YARD documentation
@@ -40,7 +39,7 @@ module Yardstick
40
39
  #
41
40
  # @api public
42
41
  def self.measure_string(string, options = {})
43
- Yardstick::Processor.process_string(string)
42
+ Processor.process_string(string)
44
43
  end
45
44
 
46
45
  end # module Yardstick
@@ -57,6 +57,7 @@ module Yardstick
57
57
  def extended(docstring)
58
58
  included(docstring.meta_class)
59
59
  end
60
+
60
61
  end # module ClassMethods
61
62
 
62
63
  extend ClassMethods
@@ -1,3 +1,5 @@
1
+ require 'yard'
2
+
1
3
  module Yardstick
2
4
  class Processor
3
5
 
@@ -153,7 +153,6 @@ module Yardstick
153
153
  end
154
154
  end
155
155
 
156
-
157
156
  # Round percentage to 1/10th of a percent
158
157
  #
159
158
  # @param [Float] percentage
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,7 @@ require 'pathname'
2
2
  require 'rubygems'
3
3
  require 'spec/autorun'
4
4
 
5
+ require 'yard'
5
6
  require 'yardstick'
6
7
 
7
8
  Pathname.glob(Yardstick::ROOT.join('lib', '**', '*.rb').to_s).sort.each do |file|
data/yardstick.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "yardstick"
8
- s.version = "0.5.0"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Kubb"]
12
- s.date = "2012-06-04"
12
+ s.date = "2012-07-05"
13
13
  s.description = "Measure YARD documentation coverage"
14
14
  s.email = "dan.kubb@gmail.com"
15
15
  s.executables = ["yardstick"]
metadata CHANGED
@@ -1,96 +1,89 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: yardstick
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 0
10
- version: 0.5.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dan Kubb
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-06-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: yard
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
18
+ requirements:
25
19
  - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 61
28
- segments:
29
- - 0
30
- - 8
31
- - 1
20
+ - !ruby/object:Gem::Version
32
21
  version: 0.8.1
33
- prerelease: false
34
22
  type: :runtime
35
- requirement: *id001
36
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.8.1
30
+ - !ruby/object:Gem::Dependency
37
31
  name: jeweler
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
34
+ requirements:
41
35
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 49
44
- segments:
45
- - 1
46
- - 8
47
- - 3
36
+ - !ruby/object:Gem::Version
48
37
  version: 1.8.3
49
- prerelease: false
50
38
  type: :development
51
- requirement: *id002
52
- - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.8.3
46
+ - !ruby/object:Gem::Dependency
53
47
  name: rake
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
55
49
  none: false
56
- requirements:
50
+ requirements:
57
51
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 63
60
- segments:
61
- - 0
62
- - 9
63
- - 2
52
+ - !ruby/object:Gem::Version
64
53
  version: 0.9.2
65
- prerelease: false
66
54
  type: :development
67
- requirement: *id003
68
- - !ruby/object:Gem::Dependency
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.2
62
+ - !ruby/object:Gem::Dependency
69
63
  name: rspec
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
71
65
  none: false
72
- requirements:
66
+ requirements:
73
67
  - - ~>
74
- - !ruby/object:Gem::Version
75
- hash: 31
76
- segments:
77
- - 1
78
- - 3
79
- - 2
68
+ - !ruby/object:Gem::Version
80
69
  version: 1.3.2
81
- prerelease: false
82
70
  type: :development
83
- requirement: *id004
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.2
84
78
  description: Measure YARD documentation coverage
85
79
  email: dan.kubb@gmail.com
86
- executables:
80
+ executables:
87
81
  - yardstick
88
82
  extensions: []
89
-
90
- extra_rdoc_files:
83
+ extra_rdoc_files:
91
84
  - LICENSE
92
85
  - README.rdoc
93
- files:
86
+ files:
94
87
  - .document
95
88
  - .rvmrc
96
89
  - .travis.yml
@@ -135,36 +128,29 @@ files:
135
128
  - yardstick.gemspec
136
129
  homepage: http://github.com/dkubb/yardstick
137
130
  licenses: []
138
-
139
131
  post_install_message:
140
132
  rdoc_options: []
141
-
142
- require_paths:
133
+ require_paths:
143
134
  - lib
144
- required_ruby_version: !ruby/object:Gem::Requirement
135
+ required_ruby_version: !ruby/object:Gem::Requirement
145
136
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- hash: 3
150
- segments:
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ segments:
151
142
  - 0
152
- version: "0"
153
- required_rubygems_version: !ruby/object:Gem::Requirement
143
+ hash: 4342461256610534409
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
154
145
  none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
162
150
  requirements: []
163
-
164
151
  rubyforge_project:
165
152
  rubygems_version: 1.8.24
166
153
  signing_key:
167
154
  specification_version: 3
168
155
  summary: A tool for verifying YARD documentation coverage
169
156
  test_files: []
170
-