Rakefile in json-streamer-0.6.0 vs Rakefile in json-streamer-1.0.0
- old
+ new
@@ -1,2 +1,11 @@
require "bundler/gem_tasks"
-task :default => :spec
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:spec)
+
+desc "Check if source can be required locally"
+task :require do
+ sh "ruby -e \"require '#{File.dirname __FILE__}/lib/json/streamer'\""
+end
+
+task :default => [:require, :spec]