Sha256: 64ae03a9a6a91dcc59bc630a9ac2d76cba446e16810cc2cee74f972d21adeb1d
Contents?: true
Size: 694 Bytes
Versions: 4
Compression:
Stored size: 694 Bytes
Contents
require 'rake' require 'ramaze' require 'ramaze/spec/helper/simple_http' task :fill do uri = URI('http://localhost:7000/save') base = Ramaze::BASEDIR/'..' ext_syntax = { 'xhtml' => 'html', 'rb' => 'ruby', 'css' => 'css', 'js' => 'javascript' }.each do |ext, syntax| Dir[base/"**/*.#{ext}"].each do |file| next if file =~ /_darcs/ p syntax => file begin req = SimpleHttp.new(uri) req.post('syntax' => syntax, 'text' => File.read(file)) rescue Net::HTTPInternalServerError => ex puts ex retry end end end end desc 'run specs' task :spec do sh 'ruby spec/rapaste.rb' end task :default => :spec
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
clivecrous-ramaze-0.3.9.5 | examples/rapaste/Rakefile |
ramaze-0.3.5 | examples/rapaste/Rakefile |
ramaze-0.3.9 | examples/rapaste/Rakefile |
ramaze-0.3.9.1 | examples/rapaste/Rakefile |