Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update jumpstart

  • Loading branch information...
commit fc7ec66aa67d83090693949f6caeefd737b1a7d9 1 parent 81eddce
@quix authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 devel/jumpstart.rb
View
18 devel/jumpstart.rb
@@ -564,7 +564,9 @@ def define_package
def define_spec
unless spec_files.empty?
- require 'spec/rake/spectask'
+ Ruby.no_warnings {
+ require 'spec/rake/spectask'
+ }
desc "run specs"
Spec::Rake::SpecTask.new('spec') do |t|
@@ -585,6 +587,8 @@ def define_spec
t.spec_opts = ["-fh:#{spec_output}"]
end
+ suppress_task_warnings :spec, :full_spec, :text_spec
+
desc "run full_spec then open browser"
task :show_spec => :full_spec do
open_browser(spec_output, rcov_dir + "/index.html")
@@ -859,6 +863,18 @@ def open_browser(*files)
sh(*([browser].flatten + files))
end
+ def suppress_task_warnings(*task_names)
+ task_names.each { |task_name|
+ Rake::Task[task_name].actions.map! { |action|
+ lambda { |*args|
+ Ruby.no_warnings {
+ action.call(*args)
+ }
+ }
+ }
+ }
+ end
+
class << self
include Util
include InstanceEvalWithArgs
Please sign in to comment.
Something went wrong with that request. Please try again.