Skip to content

Commit

Permalink
Add development dep yard-junk and Rake task lint:yard:junk
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Sep 5, 2017
1 parent 47517c7 commit 7af9170
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ group :development, :test do
# Code Coverage
gem 'simplecov', '~> 0.10'

# API docs generation
gem 'yard', '~>0.9.9'

if RUBY_VERSION >= '2.3.0'
gem 'yard-junk', '~> 0'
end

# Test api
gem 'rspec', '~> 3.4'
gem 'fuubar', '~> 2.2.0'
Expand Down
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ namespace :lint do
task :licenses do
sh 'bundle exec license_finder'
end

begin
require 'yard-junk/rake'
YardJunk::Rake.define_task
rescue LoadError # rubocop:disable Lint/HandleExceptions
# Not an issue; this lint tool requires Ruby 2.3+
end
end

namespace :rubygem do
Expand Down

0 comments on commit 7af9170

Please sign in to comment.