yardstick 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
 
4
4
  begin
5
- gem 'jeweler', '~> 1.4'
5
+ gem 'jeweler', '~> 1.5.2'
6
6
  require 'jeweler'
7
7
 
8
8
  Jeweler::Tasks.new do |gem|
@@ -15,11 +15,11 @@ begin
15
15
 
16
16
  gem.rubyforge_project = 'yardstick'
17
17
 
18
- gem.add_dependency 'yard', '~> 0.6.1'
18
+ gem.add_dependency 'yard', '~> 0.6.5'
19
19
 
20
- gem.add_development_dependency 'flay', '~> 1.4.1'
21
- gem.add_development_dependency 'flog', '~> 2.5.0'
22
- gem.add_development_dependency 'metric_fu', '~> 1.5.1'
20
+ gem.add_development_dependency 'flay', '~> 1.4.2'
21
+ gem.add_development_dependency 'flog', '~> 2.5.1'
22
+ gem.add_development_dependency 'metric_fu', '~> 2.1.1'
23
23
  gem.add_development_dependency 'reek', '~> 1.2.8'
24
24
  gem.add_development_dependency 'roodi', '~> 2.1.0'
25
25
  gem.add_development_dependency 'rspec', '~> 1.3.1'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/bin/yardstick CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'pathname'
5
- require Pathname(__FILE__).dirname.expand_path.parent.join('lib', 'yardstick')
5
+ require File.expand_path('../../lib/yardstick', __FILE__)
6
6
 
7
7
  Yardstick::CLI.run(*ARGV)
data/lib/yardstick.rb CHANGED
@@ -45,7 +45,7 @@ module Yardstick
45
45
 
46
46
  end # module Yardstick
47
47
 
48
- $LOAD_PATH.unshift(Yardstick::ROOT + 'lib')
48
+ $LOAD_PATH.unshift((Yardstick::ROOT + 'lib').to_s)
49
49
 
50
50
  require 'yardstick/core_ext/object'
51
51
  require 'yardstick/yard_ext'
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  shared_examples_for 'displays help' do
5
4
  it 'should display the help message' do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  describe Yardstick::MeasurementSet do
5
4
  before do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  shared_examples_for 'measurement is successful' do
5
4
  before do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  shared_examples_for 'method is measured' do
5
4
  before do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  shared_examples_for 'set default name for measurement task' do
5
4
  it 'should set name to :yardstick_measure' do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  shared_examples_for 'set default name for verify task' do
5
4
  it 'should set name to :verify_measurements' do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  describe Yardstick do
5
4
  describe '.measure' do
@@ -1,5 +1,4 @@
1
- require 'pathname'
2
- require Pathname(__FILE__).dirname.expand_path.join('..', '..', 'spec_helper')
1
+ require 'spec_helper'
3
2
 
4
3
  describe Yardstick::Rule do
5
4
  describe '#eql?' do
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,7 @@ require 'pathname'
2
2
  require 'rubygems'
3
3
  require 'spec/autorun'
4
4
 
5
- require Pathname(__FILE__).dirname.expand_path.join('..', 'lib', 'yardstick')
5
+ require 'yardstick'
6
6
 
7
7
  Pathname.glob(Yardstick::ROOT.join('lib', '**', '*.rb').to_s).sort.each do |file|
8
8
  require file.to_s.chomp('.rb')
data/tasks/spec.rake CHANGED
@@ -19,7 +19,4 @@ RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
19
19
  rcov.threshold = 100
20
20
  end
21
21
 
22
- task :spec => :check_dependencies
23
- task :rcov => :check_dependencies
24
-
25
22
  task :default => :spec
data/tasks/yardstick.rake CHANGED
@@ -1,4 +1,4 @@
1
- require Pathname(__FILE__).dirname.expand_path.join('..', 'lib', 'yardstick')
1
+ require File.expand_path('../../lib/yardstick', __FILE__)
2
2
 
3
3
  # yardstick_measure task
4
4
  Yardstick::Rake::Measurement.new
data/yardstick.gemspec CHANGED
@@ -1,109 +1,105 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{yardstick}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.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 = %q{2010-11-07}
12
+ s.date = %q{2011-03-19}
13
13
  s.default_executable = %q{yardstick}
14
14
  s.email = %q{dan.kubb@gmail.com}
15
15
  s.executables = ["yardstick"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
- "README.rdoc"
18
+ "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "bin/yardstick",
28
- "lib/yardstick.rb",
29
- "lib/yardstick/autoload.rb",
30
- "lib/yardstick/cli.rb",
31
- "lib/yardstick/core_ext/object.rb",
32
- "lib/yardstick/measurable.rb",
33
- "lib/yardstick/measurement.rb",
34
- "lib/yardstick/measurement_set.rb",
35
- "lib/yardstick/method.rb",
36
- "lib/yardstick/ordered_set.rb",
37
- "lib/yardstick/processor.rb",
38
- "lib/yardstick/rake/measurement.rb",
39
- "lib/yardstick/rake/verify.rb",
40
- "lib/yardstick/rule.rb",
41
- "lib/yardstick/rule_set.rb",
42
- "lib/yardstick/yard_ext.rb",
43
- "spec/public/yardstick/cli_spec.rb",
44
- "spec/public/yardstick/measurement_set_spec.rb",
45
- "spec/public/yardstick/measurement_spec.rb",
46
- "spec/public/yardstick/method_spec.rb",
47
- "spec/public/yardstick/rake/measurement_spec.rb",
48
- "spec/public/yardstick/rake/verify_spec.rb",
49
- "spec/public/yardstick_spec.rb",
50
- "spec/rcov.opts",
51
- "spec/semipublic/yardstick/rule_spec.rb",
52
- "spec/spec.opts",
53
- "spec/spec_helper.rb",
54
- "tasks/ci.rake",
55
- "tasks/heckle.rake",
56
- "tasks/metrics.rake",
57
- "tasks/spec.rake",
58
- "tasks/yard.rake",
59
- "tasks/yardstick.rake",
60
- "yardstick.gemspec"
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "bin/yardstick",
27
+ "lib/yardstick.rb",
28
+ "lib/yardstick/autoload.rb",
29
+ "lib/yardstick/cli.rb",
30
+ "lib/yardstick/core_ext/object.rb",
31
+ "lib/yardstick/measurable.rb",
32
+ "lib/yardstick/measurement.rb",
33
+ "lib/yardstick/measurement_set.rb",
34
+ "lib/yardstick/method.rb",
35
+ "lib/yardstick/ordered_set.rb",
36
+ "lib/yardstick/processor.rb",
37
+ "lib/yardstick/rake/measurement.rb",
38
+ "lib/yardstick/rake/verify.rb",
39
+ "lib/yardstick/rule.rb",
40
+ "lib/yardstick/rule_set.rb",
41
+ "lib/yardstick/yard_ext.rb",
42
+ "spec/public/yardstick/cli_spec.rb",
43
+ "spec/public/yardstick/measurement_set_spec.rb",
44
+ "spec/public/yardstick/measurement_spec.rb",
45
+ "spec/public/yardstick/method_spec.rb",
46
+ "spec/public/yardstick/rake/measurement_spec.rb",
47
+ "spec/public/yardstick/rake/verify_spec.rb",
48
+ "spec/public/yardstick_spec.rb",
49
+ "spec/rcov.opts",
50
+ "spec/semipublic/yardstick/rule_spec.rb",
51
+ "spec/spec.opts",
52
+ "spec/spec_helper.rb",
53
+ "tasks/ci.rake",
54
+ "tasks/heckle.rake",
55
+ "tasks/metrics.rake",
56
+ "tasks/spec.rake",
57
+ "tasks/yard.rake",
58
+ "tasks/yardstick.rake",
59
+ "yardstick.gemspec"
61
60
  ]
62
- s.has_rdoc = %q{yard}
63
61
  s.homepage = %q{http://github.com/dkubb/yardstick}
64
- s.rdoc_options = ["--charset=UTF-8"]
65
62
  s.require_paths = ["lib"]
66
63
  s.rubyforge_project = %q{yardstick}
67
- s.rubygems_version = %q{1.3.7}
64
+ s.rubygems_version = %q{1.6.2}
68
65
  s.summary = %q{A tool for verifying YARD documentation coverage}
69
66
  s.test_files = [
70
67
  "spec/public/yardstick/cli_spec.rb",
71
- "spec/public/yardstick/measurement_set_spec.rb",
72
- "spec/public/yardstick/measurement_spec.rb",
73
- "spec/public/yardstick/method_spec.rb",
74
- "spec/public/yardstick/rake/measurement_spec.rb",
75
- "spec/public/yardstick/rake/verify_spec.rb",
76
- "spec/public/yardstick_spec.rb",
77
- "spec/semipublic/yardstick/rule_spec.rb",
78
- "spec/spec_helper.rb"
68
+ "spec/public/yardstick/measurement_set_spec.rb",
69
+ "spec/public/yardstick/measurement_spec.rb",
70
+ "spec/public/yardstick/method_spec.rb",
71
+ "spec/public/yardstick/rake/measurement_spec.rb",
72
+ "spec/public/yardstick/rake/verify_spec.rb",
73
+ "spec/public/yardstick_spec.rb",
74
+ "spec/semipublic/yardstick/rule_spec.rb",
75
+ "spec/spec_helper.rb"
79
76
  ]
80
77
 
81
78
  if s.respond_to? :specification_version then
82
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
83
79
  s.specification_version = 3
84
80
 
85
81
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
86
- s.add_runtime_dependency(%q<yard>, ["~> 0.6.1"])
87
- s.add_development_dependency(%q<flay>, ["~> 1.4.1"])
88
- s.add_development_dependency(%q<flog>, ["~> 2.5.0"])
89
- s.add_development_dependency(%q<metric_fu>, ["~> 1.5.1"])
82
+ s.add_runtime_dependency(%q<yard>, ["~> 0.6.5"])
83
+ s.add_development_dependency(%q<flay>, ["~> 1.4.2"])
84
+ s.add_development_dependency(%q<flog>, ["~> 2.5.1"])
85
+ s.add_development_dependency(%q<metric_fu>, ["~> 2.1.1"])
90
86
  s.add_development_dependency(%q<reek>, ["~> 1.2.8"])
91
87
  s.add_development_dependency(%q<roodi>, ["~> 2.1.0"])
92
88
  s.add_development_dependency(%q<rspec>, ["~> 1.3.1"])
93
89
  else
94
- s.add_dependency(%q<yard>, ["~> 0.6.1"])
95
- s.add_dependency(%q<flay>, ["~> 1.4.1"])
96
- s.add_dependency(%q<flog>, ["~> 2.5.0"])
97
- s.add_dependency(%q<metric_fu>, ["~> 1.5.1"])
90
+ s.add_dependency(%q<yard>, ["~> 0.6.5"])
91
+ s.add_dependency(%q<flay>, ["~> 1.4.2"])
92
+ s.add_dependency(%q<flog>, ["~> 2.5.1"])
93
+ s.add_dependency(%q<metric_fu>, ["~> 2.1.1"])
98
94
  s.add_dependency(%q<reek>, ["~> 1.2.8"])
99
95
  s.add_dependency(%q<roodi>, ["~> 2.1.0"])
100
96
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
101
97
  end
102
98
  else
103
- s.add_dependency(%q<yard>, ["~> 0.6.1"])
104
- s.add_dependency(%q<flay>, ["~> 1.4.1"])
105
- s.add_dependency(%q<flog>, ["~> 2.5.0"])
106
- s.add_dependency(%q<metric_fu>, ["~> 1.5.1"])
99
+ s.add_dependency(%q<yard>, ["~> 0.6.5"])
100
+ s.add_dependency(%q<flay>, ["~> 1.4.2"])
101
+ s.add_dependency(%q<flog>, ["~> 2.5.1"])
102
+ s.add_dependency(%q<metric_fu>, ["~> 2.1.1"])
107
103
  s.add_dependency(%q<reek>, ["~> 1.2.8"])
108
104
  s.add_dependency(%q<roodi>, ["~> 2.1.0"])
109
105
  s.add_dependency(%q<rspec>, ["~> 1.3.1"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yardstick
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 19
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Kubb
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-07 00:00:00 -07:00
18
+ date: 2011-03-19 00:00:00 -07:00
19
19
  default_executable: yardstick
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- hash: 5
29
+ hash: 13
30
30
  segments:
31
31
  - 0
32
32
  - 6
33
- - 1
34
- version: 0.6.1
33
+ - 5
34
+ version: 0.6.5
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 5
45
+ hash: 3
46
46
  segments:
47
47
  - 1
48
48
  - 4
49
- - 1
50
- version: 1.4.1
49
+ - 2
50
+ version: 1.4.2
51
51
  type: :development
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
@@ -58,12 +58,12 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- hash: 27
61
+ hash: 25
62
62
  segments:
63
63
  - 2
64
64
  - 5
65
- - 0
66
- version: 2.5.0
65
+ - 1
66
+ version: 2.5.1
67
67
  type: :development
68
68
  version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
@@ -74,12 +74,12 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- hash: 1
77
+ hash: 9
78
78
  segments:
79
+ - 2
79
80
  - 1
80
- - 5
81
81
  - 1
82
- version: 1.5.1
82
+ version: 2.1.1
83
83
  type: :development
84
84
  version_requirements: *id004
85
85
  - !ruby/object:Gem::Dependency
@@ -141,7 +141,6 @@ extra_rdoc_files:
141
141
  - README.rdoc
142
142
  files:
143
143
  - .document
144
- - .gitignore
145
144
  - LICENSE
146
145
  - README.rdoc
147
146
  - Rakefile
@@ -180,13 +179,13 @@ files:
180
179
  - tasks/yard.rake
181
180
  - tasks/yardstick.rake
182
181
  - yardstick.gemspec
183
- has_rdoc: yard
182
+ has_rdoc: true
184
183
  homepage: http://github.com/dkubb/yardstick
185
184
  licenses: []
186
185
 
187
186
  post_install_message:
188
- rdoc_options:
189
- - --charset=UTF-8
187
+ rdoc_options: []
188
+
190
189
  require_paths:
191
190
  - lib
192
191
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -210,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
209
  requirements: []
211
210
 
212
211
  rubyforge_project: yardstick
213
- rubygems_version: 1.3.7
212
+ rubygems_version: 1.6.2
214
213
  signing_key:
215
214
  specification_version: 3
216
215
  summary: A tool for verifying YARD documentation coverage
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- *.rbc
2
- *.sw?
3
- .DS_Store
4
- .yardoc
5
- coverage
6
- profiling
7
- measurements
8
- rdoc
9
- doc
10
- pkg
11
- tmp