| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Tue, 23 Dec 2025 10:27:37 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091115193720
location: https://web.archive.org/web/20091115193720/https://github.com/dancroak/shorty
server-timing: captures_list;dur=0.706851, exclusion.robots;dur=0.055396, exclusion.robots.policy;dur=0.046843, esindex;dur=0.012256, cdx.remote;dur=22.846558, LoadShardBlock;dur=266.019762, PetaboxLoader3.datanode;dur=116.041032, PetaboxLoader3.resolve;dur=95.979573
x-app-server: wwwb-app242-dc8
x-ts: 302
x-tr: 355
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app242; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Tue, 23 Dec 2025 10:27:38 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sun, 15 Nov 2009 19:37:20 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "19edc0a5542cd0ea16577fe5708d7b3c"
x-archive-orig-x-runtime: 128ms
x-archive-orig-content-length: 22749
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 15 Nov 2009 19:37:20 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_12_20091115192505_crawl101-c/51_12_20091115193545_crawl101.arc.gz
server-timing: captures_list;dur=0.574491, exclusion.robots;dur=0.025890, exclusion.robots.policy;dur=0.015448, esindex;dur=0.011235, cdx.remote;dur=6.408870, LoadShardBlock;dur=196.558602, PetaboxLoader3.datanode;dur=141.699308, PetaboxLoader3.resolve;dur=136.969788, load_resource;dur=177.622278
x-app-server: wwwb-app242-dc8
x-ts: 200
x-tr: 447
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
dancroak's shorty at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| Description: | URL shortener using Sinatra and MongoDB. edit |
| Homepage: | edit |
| Public Clone URL: |
git://github.com/dancroak/shorty.git
Give this clone URL to anyone.
git clone git://github.com/dancroak/shorty.git
|
| Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:dancroak/shorty.git
|
Dan Lawless (author)
Sat Nov 07 23:38:37 -0800 2009
shorty /
| name | age | message | |
|---|---|---|---|
| |
.gems | Sat Oct 17 12:20:49 -0700 2009 | adding hoptoad [dancroak] |
| |
.gitignore | Tue Oct 27 19:09:09 -0700 2009 | moving stuff around [dancroak] |
| |
README.md | Tue Nov 03 17:06:29 -0800 2009 | crazy hustling rasta frog test suite works [dancroak] |
| |
config.ru | Sat Oct 17 12:20:49 -0700 2009 | adding hoptoad [dancroak] |
| |
features/ | Sat Nov 07 23:38:37 -0800 2009 | using x [Dan Lawless] |
| |
shorty.rb | Tue Nov 03 17:07:18 -0800 2009 | final cleanup [dancroak] |
README.md
Shorty
A URL shortener written in Sinatra and MongoDB.
Mongo
Follow the Ruby tutorial to learn how to interact with Mongo with Ruby.
Hosting
I recommend using Heroku for the app and MongoHQ for storage.
Feature
Feature 'Shorten URL' do
Given 'I am on the homepage' do
visit '/'
end
When 'I submit https://dancroak.com' do
fill_in 'url', :with => 'https://dancroak.com'
click_button 'shorten'
end
Then 'I should see a short link' do
assert_have_selector 'a#short'
end
When 'I follow the short link' do
click_link 'short'
end
Then 'I should be on https://dancroak.com' do
assert_equal 'https://dancroak.com', current_url
end
end
This feature is coming soon. Sit tight!







