rspec-illustrate 0.2.4 → 0.2.5

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c269459b1f41c31ab2988e9f2ea5728b64859e6
4
- data.tar.gz: 1278640868fb745de2d78058ab538966586c635a
3
+ metadata.gz: 7cb15133252dde708b414980ee54f2e63aace71d
4
+ data.tar.gz: dae48ed1b54be595b630b915baa8cbd8a2e39b67
5
5
  SHA512:
6
- metadata.gz: d20f32769c72243e834944cbb2eaf2d91125e0d6101fc8f0f3142e8d9f80da5ad2816dc691c2f2933bf636d001da3e7ade313e75f57d97e1ddd68647d16c3d9a
7
- data.tar.gz: 4064e8efd3d544fe70d0a4bf4c4f6d5915ee8a24677795d7ef1c32b71320ab2c4d6ec0a12161aeedb0dc26af4670dc56cb997f84cbe153be3b3813521351247c
6
+ metadata.gz: 64daa21092685233ff758f770987143143381836b36d17752489c8fc2802db09ce2a1d95ddfa1074746eaf6c602ba326241e7816dec3c456a64232824e807ccb
7
+ data.tar.gz: 49c71096512c9afa147b79c0438a5f48c54a252af65ae4c1078b7a6cb771cc504bb7e13bf64d2960168c4aca034a3978cb5dca11cdb6037247c5a81d89536a55
data/Rakefile CHANGED
@@ -1,24 +1,2 @@
1
1
  require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
- require 'yard/rake/yardoc_task'
4
- require 'rspec/illustrate/yard'
5
- require 'rake/clean'
6
-
7
- desc "Execute RSpec and create a test report at ./tmp/api.rspec."
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- t.rspec_opts = '--format RSpec::Formatters::IllustratedDocumentationFormatter --format RSpec::Formatters::YARD --out tmp/api.rspec'
10
- end
11
- CLEAN.include('tmp')
12
-
13
- desc "Create documentation."
14
- YARD::Rake::YardocTask.new(:doc) do |t|
15
- t.files = ['lib/**/*.rb', 'tmp/api.rspec', '-', 'tmp/api.rspec']
16
- end
17
- CLOBBER.include("doc")
18
- CLEAN.include(".yardoc")
19
- task :doc => [:spec]
20
-
21
- desc "Execute tests."
22
- RSpec::Core::RakeTask.new(:test)
23
-
24
- task :default => :test
2
+ require 'rspec/illustrate/default_rake_targets'
@@ -0,0 +1,27 @@
1
+ require "rspec/core/rake_task"
2
+ require 'rspec/illustrate/yard'
3
+ require 'rake/clean'
4
+
5
+ desc "Execute RSpec tests."
6
+ RSpec::Core::RakeTask.new(:test)
7
+
8
+ desc "Execute RSpec and create a test report at ./tmp/api.rspec."
9
+ RSpec::Core::RakeTask.new(:spec) do |t|
10
+ t.rspec_opts = '--format RSpec::Formatters::IllustratedDocumentationFormatter --format RSpec::Formatters::YARD --out tmp/api.rspec'
11
+ end
12
+ CLEAN << 'tmp'
13
+
14
+ desc "Create documentation."
15
+ YARD::Rake::YardocTask.new(:doc) do |t|
16
+ t.files = ['lib/**/*.rb', 'tmp/api.rspec', '-', 'tmp/api.rspec']
17
+ end
18
+ CLOBBER << 'doc'
19
+ CLEAN << '.yardoc'
20
+ task :doc => [:spec]
21
+
22
+ desc "List code that is undocumented."
23
+ YARD::Rake::YardocTask.new(:undoc) do |t|
24
+ t.stats_options = ['--list-undoc']
25
+ end
26
+
27
+ task :default => :test
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Illustrate
3
3
  # The version used by gemspec
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-illustrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Schlyter
@@ -116,6 +116,7 @@ files:
116
116
  - lib/rspec/formatters/illustration_formatter.rb
117
117
  - lib/rspec/formatters/yard.rb
118
118
  - lib/rspec/illustrate.rb
119
+ - lib/rspec/illustrate/default_rake_targets.rb
119
120
  - lib/rspec/illustrate/version.rb
120
121
  - lib/rspec/illustrate/yard.rb
121
122
  - rspec-illustrate.gemspec