github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

calavera / Ape

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

The Atom Protocol Exerciser — Read more

  cancel

http://github.com/calavera/ape

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

preparing relase 1.7.0 
calavera (author)
Tue Oct 27 09:56:07 -0700 2009
commit  fad7fd2204f17e55d0f5e0b5da0ba96dfa0960f6
tree    a1399f85f2b0d631526692efb71d3c38a2edaa6f
parent  d0c6c13f7b25cf7ef91462ac902431acc37478ba
Ape / sinatra / atom_exerciser.rb sinatra/atom_exerciser.rb
100644 24 lines (19 sloc) 0.595 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'rubygems'
require 'sinatra/base'
 
$:.unshift File.dirname(__FILE__) + '/../lib' unless $:.include?(File.dirname(__FILE__) + '/../lib')
require 'ape'
 
class AtomExerciser < Sinatra::Base
  set :static, true
  set :public, File.dirname(__FILE__) + '/../web'
 
  get '/' do
    redirect '/index.html'
  end
 
  post '/atompub/go' do
    ape = Ape::Ape.new({:output => 'html', :debug => false, :server => true, :static_path => ''})
    ape.check(params[:uri], params[:username], params[:password])
    output = StringIO.new
    ape.report(output)
    output.rewind
    output.read
  end
end
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server