Sha256: 365cf94b4075399fe0b2acf7d589d179a1c62c0360d1c95383aac30777c6ae86
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.0 | examples/rapaste/Rakefile |