A Ruby / Sinatra application to shorten URLs
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bundle
lib
log
spec
views
.autotest
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
application.rb
config.ru
environment.rb
settings.xml

README.md

Build Status

Coverage Status

URL Shortening Application

A Ruby application using Sinatra to create shortened URLs for use in social media sites (and anywhere else you want to place them).

Simply fork it and build. Good times.

Includes Bundler, DataMapper and Haml.

Works with Ruby 1.9.2 and 1.9.3

Configuration

Some configuration variables can be set within environment.rb. The database is also created within this file. This application uses DataMapper and a sqlite3 database.

The model/s for the application are stored in the lib directory and are auto-loaded.

Installation

Unzip / clone project into desired location. Install bundle and then run server:

bundle install
ruby application.rb

Download

URL Shortener

1.0.1 - April 04, 2012###

  • Commit: Updated for testing
  • Addition of rspec tests to run checks on the application routes
  • Addition of new root /post route to allow for url shortening from get or post requests

1.0.0 - January 31, 2012###

  • Commit: Initial Release
  • Revised save method to include first_or_create for short_urls and added clickTrack model

Bitdeli Badge