Rakefile in strong_json-0.7.1 vs Rakefile in strong_json-0.8.0
- old
+ new
@@ -1,6 +1,16 @@
require "bundler/gem_tasks"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
-task :default => :spec
+task :default => [:spec, :typecheck, :"example:typecheck"]
+
+task :typecheck do
+ sh "bundle exec steep check --strict lib"
+end
+
+namespace :example do
+ task :typecheck do
+ sh "bundle exec steep check --strict -I sig -I example example"
+ end
+end