File: Rakefile

package info (click to toggle)
ruby-dry-types 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 504 kB
  • sloc: ruby: 3,059; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

task :run_specs do
  require 'rspec/core'

  types_result = RSpec::Core::Runner.run(['spec/dry'])
  RSpec.clear_examples

  Dry::Types.load_extensions(:maybe)
  ext_result = RSpec::Core::Runner.run(['spec'])

  exit [types_result, ext_result].max
end

task default: :run_specs

require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new(:doc)