yardstick 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,36 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## Rubinius
17
+ *.rbc
18
+
19
+ ## PROJECT::GENERAL
20
+ *.gem
21
+ coverage
22
+ profiling
23
+ turbulence
24
+ rdoc
25
+ pkg
26
+ tmp
27
+ doc
28
+ log
29
+ .yardoc
30
+ measurements
31
+
32
+ ## BUNDLER
33
+ .bundle
34
+ Gemfile.lock
35
+
36
+ ## PROJECT::SPECIFIC
data/.travis.yml CHANGED
@@ -1,17 +1,19 @@
1
1
  language: ruby
2
- bundler_args: --without yard guard metrics
2
+ before_install: gem install bundler
3
+ bundler_args: --without yard guard benchmarks metrics
3
4
  script: "bundle exec rake spec"
4
5
  rvm:
6
+ - ree
5
7
  - 1.8.7
6
8
  - 1.9.2
7
9
  - 1.9.3
10
+ - 2.0.0
11
+ - ruby-head
8
12
  - jruby-18mode
9
13
  - jruby-19mode
14
+ - jruby-head
10
15
  - rbx-18mode
11
16
  - rbx-19mode
12
- - ree
13
- - ruby-head
14
- - jruby-head
15
17
  notifications:
16
18
  email:
17
19
  - dan.kubb@gmail.com
data/Gemfile CHANGED
@@ -2,41 +2,55 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'backports', '~> 2.6.4'
6
- gem 'yard', '~> 0.8.3'
5
+ gemspec
7
6
 
8
- group :development do
9
- gem 'jeweler', '~> 1.8.3'
10
- gem 'rake', '~> 0.9.2'
11
- gem 'rspec', '~> 1.3.2'
7
+ group :yard do
8
+ gem 'redcarpet', '~> 2.2.2', :platforms => [ :mri, :rbx ]
12
9
  end
13
10
 
14
- group :jruby do
15
- platform :jruby do
16
- gem 'jruby-openssl', '~> 0.7.4'
11
+ group :guard do
12
+ gem 'guard', '~> 1.5.4'
13
+ gem 'guard-bundler', '~> 1.0.0'
14
+ gem 'guard-rspec', '~> 1.2.1'
15
+ end
16
+
17
+ group :benchmarks do
18
+ gem 'rbench', '~> 0.2.3'
19
+ end
20
+
21
+ platform :jruby do
22
+ group :jruby do
23
+ gem 'jruby-openssl', '~> 0.8.2'
17
24
  end
18
25
  end
19
26
 
20
27
  group :metrics do
21
- gem 'flay', '~> 1.4.2'
22
- gem 'flog', '~> 2.5.1'
23
- gem 'reek', '~> 1.2.8', :github => 'dkubb/reek'
24
- gem 'roodi', '~> 2.1.0'
25
- gem 'yard-spellcheck', '~> 0.1.5'
28
+ gem 'flay', '~> 1.4.3'
29
+ gem 'flog', '~> 2.5.3'
30
+ gem 'roodi', '~> 2.1.0'
31
+
32
+ platforms :ruby_18, :ruby_19 do
33
+ # this indirectly depends on ffi which does not build on ruby-head
34
+ gem 'yard-spellcheck', '~> 0.1.5'
35
+ end
26
36
 
27
37
  platforms :mri_18 do
28
38
  gem 'arrayfields', '~> 4.7.4' # for metric_fu
29
39
  gem 'fattr', '~> 2.2.0' # for metric_fu
30
40
  gem 'heckle', '~> 1.4.3'
31
41
  gem 'json', '~> 1.7.3' # for metric_fu rake task
32
- gem 'map', '~> 6.0.1' # for metric_fu
42
+ gem 'map', '~> 6.2.0' # for metric_fu
33
43
  gem 'metric_fu', '~> 2.1.1'
34
44
  gem 'mspec', '~> 1.5.17'
35
45
  gem 'rcov', '~> 1.0.0'
36
- gem 'ruby2ruby', '= 1.2.2'
46
+ gem 'ruby2ruby', '= 1.2.2' # for heckle
47
+ end
48
+
49
+ platforms :ruby_19 do
50
+ gem 'simplecov', '~> 0.7.1'
37
51
  end
38
52
 
39
53
  platforms :rbx do
40
- gem 'pelusa', '~> 0.2.1'
54
+ gem 'pelusa', '~> 0.2.2'
41
55
  end
42
56
  end
data/Rakefile CHANGED
@@ -1,7 +1,5 @@
1
1
  require 'rake'
2
2
 
3
- require File.expand_path('../lib/yardstick/version', __FILE__)
4
-
5
3
  FileList['tasks/**/*.rake'].each { |task| import task }
6
4
 
7
5
  task :default => :spec
@@ -1,3 +1,3 @@
1
1
  module Yardstick
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.0'.freeze
3
3
  end # module Yardstick
data/yardstick.gemspec CHANGED
@@ -1,94 +1,25 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ # encoding: utf-8
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = "yardstick"
8
- s.version = "0.8.0"
3
+ require File.expand_path('../lib/yardstick/version', __FILE__)
9
4
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Dan Kubb"]
12
- s.date = "2012-11-12"
13
- s.description = "Measure YARD documentation coverage"
14
- s.email = "dan.kubb@gmail.com"
15
- s.executables = ["yardstick"]
16
- s.extra_rdoc_files = [
17
- "LICENSE",
18
- "README.rdoc"
19
- ]
20
- s.files = [
21
- ".document",
22
- ".rvmrc",
23
- ".travis.yml",
24
- "Gemfile",
25
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "VERSION",
29
- "bin/yardstick",
30
- "lib/yardstick.rb",
31
- "lib/yardstick/cli.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/version.rb",
43
- "lib/yardstick/yard_ext.rb",
44
- "spec/public/yardstick/cli_spec.rb",
45
- "spec/public/yardstick/measurement_set_spec.rb",
46
- "spec/public/yardstick/measurement_spec.rb",
47
- "spec/public/yardstick/method_spec.rb",
48
- "spec/public/yardstick/rake/measurement_spec.rb",
49
- "spec/public/yardstick/rake/verify_spec.rb",
50
- "spec/public/yardstick_spec.rb",
51
- "spec/rcov.opts",
52
- "spec/semipublic/yardstick/rule_spec.rb",
53
- "spec/spec.opts",
54
- "spec/spec_helper.rb",
55
- "spec/support/config_alias.rb",
56
- "tasks/ci.rake",
57
- "tasks/heckle.rake",
58
- "tasks/jeweler.rake",
59
- "tasks/metrics.rake",
60
- "tasks/spec.rake",
61
- "tasks/yard.rake",
62
- "tasks/yardstick.rake",
63
- "yardstick.gemspec"
64
- ]
65
- s.homepage = "http://github.com/dkubb/yardstick"
66
- s.require_paths = ["lib"]
67
- s.rubygems_version = "1.8.24"
68
- s.summary = "A tool for verifying YARD documentation coverage"
5
+ Gem::Specification.new do |gem|
6
+ gem.name = 'yardstick'
7
+ gem.version = Yardstick::VERSION.dup
8
+ gem.authors = ['Dan Kubb']
9
+ gem.email = %w[dan.kubb@gmail.com]
10
+ gem.description = 'Measure YARD documentation coverage'
11
+ gem.summary = 'A tool for verifying YARD documentation coverage'
12
+ gem.homepage = 'https://github.com/dkubb/yardstick'
69
13
 
70
- if s.respond_to? :specification_version then
71
- s.specification_version = 3
14
+ gem.require_paths = %w[lib]
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.test_files = `git ls-files -- spec/{public,semipublic}`.split($/)
17
+ gem.extra_rdoc_files = %w[LICENSE README.rdoc]
18
+ gem.executables = %w[yardstick]
72
19
 
73
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
- s.add_runtime_dependency(%q<backports>, ["~> 2.6.4"])
75
- s.add_runtime_dependency(%q<yard>, ["~> 0.8.3"])
76
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
77
- s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
78
- s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
79
- else
80
- s.add_dependency(%q<backports>, ["~> 2.6.4"])
81
- s.add_dependency(%q<yard>, ["~> 0.8.3"])
82
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
83
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
84
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
85
- end
86
- else
87
- s.add_dependency(%q<backports>, ["~> 2.6.4"])
88
- s.add_dependency(%q<yard>, ["~> 0.8.3"])
89
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
90
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
91
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
92
- end
93
- end
20
+ gem.add_runtime_dependency('backports', '~> 2.7.0')
21
+ gem.add_runtime_dependency('yard', '~> 0.8.3')
94
22
 
23
+ gem.add_development_dependency('rake', '~> 10.0.3')
24
+ gem.add_development_dependency('rspec', '~> 1.3.2')
25
+ end
metadata CHANGED
@@ -1,113 +1,105 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: yardstick
3
- version: !ruby/object:Gem::Version
4
- version: 0.8.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 9
9
+ - 0
10
+ version: 0.9.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Dan Kubb
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-11-12 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-01-20 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: backports
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 2.6.4
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
- requirements:
25
+ requirements:
27
26
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 2.6.4
30
- - !ruby/object:Gem::Dependency
31
- name: yard
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 0.8.3
27
+ - !ruby/object:Gem::Version
28
+ hash: 19
29
+ segments:
30
+ - 2
31
+ - 7
32
+ - 0
33
+ version: 2.7.0
38
34
  type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: yard
39
38
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
41
+ requirements:
43
42
  - - ~>
44
- - !ruby/object:Gem::Version
43
+ - !ruby/object:Gem::Version
44
+ hash: 57
45
+ segments:
46
+ - 0
47
+ - 8
48
+ - 3
45
49
  version: 0.8.3
46
- - !ruby/object:Gem::Dependency
47
- name: jeweler
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 1.8.3
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 1.8.3
62
- - !ruby/object:Gem::Dependency
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
63
53
  name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 0.9.2
70
- type: :development
71
54
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 0.9.2
78
- - !ruby/object:Gem::Dependency
79
- name: rspec
80
- requirement: !ruby/object:Gem::Requirement
55
+ requirement: &id003 !ruby/object:Gem::Requirement
81
56
  none: false
82
- requirements:
57
+ requirements:
83
58
  - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 1.3.2
59
+ - !ruby/object:Gem::Version
60
+ hash: 73
61
+ segments:
62
+ - 10
63
+ - 0
64
+ - 3
65
+ version: 10.0.3
86
66
  type: :development
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: rspec
87
70
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
89
72
  none: false
90
- requirements:
73
+ requirements:
91
74
  - - ~>
92
- - !ruby/object:Gem::Version
75
+ - !ruby/object:Gem::Version
76
+ hash: 31
77
+ segments:
78
+ - 1
79
+ - 3
80
+ - 2
93
81
  version: 1.3.2
82
+ type: :development
83
+ version_requirements: *id004
94
84
  description: Measure YARD documentation coverage
95
- email: dan.kubb@gmail.com
96
- executables:
85
+ email:
86
+ - dan.kubb@gmail.com
87
+ executables:
97
88
  - yardstick
98
89
  extensions: []
99
- extra_rdoc_files:
90
+
91
+ extra_rdoc_files:
100
92
  - LICENSE
101
93
  - README.rdoc
102
- files:
94
+ files:
103
95
  - .document
96
+ - .gitignore
104
97
  - .rvmrc
105
98
  - .travis.yml
106
99
  - Gemfile
107
100
  - LICENSE
108
101
  - README.rdoc
109
102
  - Rakefile
110
- - VERSION
111
103
  - bin/yardstick
112
104
  - lib/yardstick.rb
113
105
  - lib/yardstick/cli.rb
@@ -137,37 +129,51 @@ files:
137
129
  - spec/support/config_alias.rb
138
130
  - tasks/ci.rake
139
131
  - tasks/heckle.rake
140
- - tasks/jeweler.rake
141
132
  - tasks/metrics.rake
142
133
  - tasks/spec.rake
143
134
  - tasks/yard.rake
144
135
  - tasks/yardstick.rake
145
136
  - yardstick.gemspec
146
- homepage: http://github.com/dkubb/yardstick
137
+ homepage: https://github.com/dkubb/yardstick
147
138
  licenses: []
139
+
148
140
  post_install_message:
149
141
  rdoc_options: []
150
- require_paths:
142
+
143
+ require_paths:
151
144
  - lib
152
- required_ruby_version: !ruby/object:Gem::Requirement
145
+ required_ruby_version: !ruby/object:Gem::Requirement
153
146
  none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- segments:
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ hash: 3
151
+ segments:
159
152
  - 0
160
- hash: 3755619333426981008
161
- required_rubygems_version: !ruby/object:Gem::Requirement
153
+ version: "0"
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
155
  none: false
163
- requirements:
164
- - - ! '>='
165
- - !ruby/object:Gem::Version
166
- version: '0'
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ hash: 3
160
+ segments:
161
+ - 0
162
+ version: "0"
167
163
  requirements: []
164
+
168
165
  rubyforge_project:
169
166
  rubygems_version: 1.8.24
170
167
  signing_key:
171
168
  specification_version: 3
172
169
  summary: A tool for verifying YARD documentation coverage
173
- test_files: []
170
+ test_files:
171
+ - spec/public/yardstick/cli_spec.rb
172
+ - spec/public/yardstick/measurement_set_spec.rb
173
+ - spec/public/yardstick/measurement_spec.rb
174
+ - spec/public/yardstick/method_spec.rb
175
+ - spec/public/yardstick/rake/measurement_spec.rb
176
+ - spec/public/yardstick/rake/verify_spec.rb
177
+ - spec/public/yardstick_spec.rb
178
+ - spec/semipublic/yardstick/rule_spec.rb
179
+ has_rdoc:
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.8.0
data/tasks/jeweler.rake DELETED
@@ -1,18 +0,0 @@
1
- begin
2
- require 'jeweler'
3
-
4
- Jeweler::Tasks.new do |gem|
5
- gem.name = 'yardstick'
6
- gem.summary = 'A tool for verifying YARD documentation coverage'
7
- gem.description = 'Measure YARD documentation coverage'
8
- gem.email = 'dan.kubb@gmail.com'
9
- gem.homepage = 'http://github.com/dkubb/yardstick'
10
- gem.authors = [ 'Dan Kubb' ]
11
-
12
- gem.version = Yardstick::VERSION
13
- end
14
-
15
- Jeweler::GemcutterTasks.new
16
- rescue LoadError
17
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
18
- end