Archive

Posts Tagged ‘sinatra’

Using Sinatra to test remote services in Rails

March 4th, 2010

So there I thought, why not just initiate a Sinatra application as part of your tests, and easily manage that sinatra as the mocked web service? WIN.

I created the SinatraFakeWebService gem that provides a simple interface to instantiate that Sinatra application and to manage the mocked webservice interface.
(Link: Using Sinatra to test remote services in Rails)

Uncategorized , , , ,

How to use both Rails and Sinatra in the same application

February 7th, 2010

The goal here is to make a Sinatra app run inside of Rails, taking routes it needs directly using the new Rails routing features.
(Link: How to use both Rails and Sinatra in the same application)

Uncategorized

Single User, Ephemeral OpenID Provider – local-openid

April 8th, 2009

local-openid is a small Sinatra application. It requires the Ruby OpenID library (2.x), Sinatra (0.9+), Rack (0.9+), and any Rack-enabled server. To be useful, it also depends on having a user account on a machine with a publically-accessible IP and DNS name to use as your OpenID identity.
(Link: Single User, Ephemeral OpenID Provider – local-openid)

Uncategorized , ,

Link: Sinatra-Tailer: a small app for viewing server log files

March 23rd, 2009

Sinatra-Tailer: a small app for viewing server log files
keep an eye on on our servers… log files. Oh, and I was looking for good excuse to play around with Sinatra. So, “with a one, and-a-two, and-a-three…” we have Sinatra-Tailer.

You can read all about it on the github page, but in short it simply performs a tail and displays the last X lines of the log file.
view sourceprint?
1.tail -n /path/to/my/log/file.log

web2.0 , ,