Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit of infrastructure files

  • Loading branch information...
commit 4c1e95d83534bd5cd5d0798b423532317033b5d0 0 parents
@aaronpk authored
18 .gitignore
@@ -0,0 +1,18 @@
+# osx noise
+.DS_Store
+profile
+
+# xcode noise
+build/*
+*.mode1
+*.mode1v3
+*.mode2v3
+*.perspective
+*.perspectivev3
+*.pbxuser
+*.xcworkspace
+xcuserdata
+
+# svn & cvs
+.svn
+CVS
36 Gemfile
@@ -0,0 +1,36 @@
+source :rubygems
+
+gem 'sinatra', :require => 'sinatra/base'
+gem 'sinatra-namespace', :require => 'sinatra/namespace'
+gem 'sinatra-support', :require => 'sinatra/support'
+
+gem 'erubis'
+gem 'rainbows', :require => nil
+gem 'rake', :require => nil
+gem 'hashie'
+gem 'json'
+gem 'dalli'
+
+gem 'omniauth'
+gem 'omniauth-facebook'
+gem 'omniauth-flickr'
+gem 'omniauth-geoloqi'
+gem 'omniauth-github'
+gem 'omniauth-google'
+gem 'omniauth-twitter'
+gem 'omniauth-openid'
+
+gem 'mechanize'
+
+gem 'mysql2', '0.3.7'
+gem 'dm-core'
+gem 'dm-timestamps'
+gem 'dm-migrations'
+gem 'dm-aggregates'
+gem 'dm-mysql-adapter'
+gem 'dm-pager'
+
+group :development do
+ gem 'shotgun', :require => nil
+ gem 'thin', :require => nil
+end
163 Gemfile.lock
@@ -0,0 +1,163 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.7)
+ backports (2.4.0)
+ daemons (1.1.8)
+ dalli (1.1.5)
+ data_objects (0.10.7)
+ addressable (~> 2.1)
+ dm-aggregates (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-core (1.1.0)
+ addressable (~> 2.2.4)
+ dm-do-adapter (1.1.0)
+ data_objects (~> 0.10.2)
+ dm-core (~> 1.1.0)
+ dm-migrations (1.1.0)
+ dm-core (~> 1.1.0)
+ dm-mysql-adapter (1.1.0)
+ dm-do-adapter (~> 1.1.0)
+ do_mysql (~> 0.10.2)
+ dm-pager (1.1.0)
+ dm-aggregates (>= 0.10.1)
+ dm-core (>= 0.10.1)
+ dm-timestamps (1.1.0)
+ dm-core (~> 1.1.0)
+ do_mysql (0.10.7)
+ data_objects (= 0.10.7)
+ domain_name (0.5.2)
+ unf (~> 0.0.3)
+ erubis (2.7.0)
+ eventmachine (0.12.10)
+ faraday (0.7.6)
+ addressable (~> 2.2)
+ multipart-post (~> 1.1)
+ rack (~> 1.1)
+ hashie (1.2.0)
+ json (1.6.5)
+ kgio (2.7.4)
+ mechanize (2.3)
+ domain_name (>= 0.5.1, ~> 0.5)
+ mime-types (>= 1.17.2, ~> 1.17)
+ net-http-digest_auth (>= 1.1.1, ~> 1.1)
+ net-http-persistent (>= 2.5.2, ~> 2.5)
+ nokogiri (~> 1.4)
+ ntlm-http (>= 0.1.1, ~> 0.1)
+ webrobots (>= 0.0.9, ~> 0.0)
+ mime-types (1.18)
+ multi_json (1.1.0)
+ multipart-post (1.1.5)
+ mysql2 (0.3.7)
+ net-http-digest_auth (1.2)
+ net-http-persistent (2.5.2)
+ nokogiri (1.5.2)
+ ntlm-http (0.1.1)
+ oauth (0.4.5)
+ oauth2 (0.5.2)
+ faraday (~> 0.7)
+ multi_json (~> 1.0)
+ omniauth (1.0.3)
+ hashie (~> 1.2)
+ rack
+ omniauth-facebook (1.2.0)
+ omniauth-oauth2 (~> 1.0.0)
+ omniauth-flickr (0.0.9)
+ omniauth-oauth (~> 1.0)
+ omniauth-geoloqi (0.1.2)
+ omniauth-oauth2 (>= 1.0.0)
+ omniauth-github (1.0.1)
+ omniauth (~> 1.0)
+ omniauth-oauth2 (~> 1.0)
+ omniauth-google (1.0.1)
+ multi_json
+ omniauth (~> 1.0.0)
+ omniauth-oauth
+ omniauth-oauth (1.0.1)
+ oauth
+ omniauth (~> 1.0)
+ omniauth-oauth2 (1.0.0)
+ oauth2 (~> 0.5.0)
+ omniauth (~> 1.0)
+ omniauth-openid (1.0.1)
+ omniauth (~> 1.0)
+ rack-openid (~> 1.3.1)
+ omniauth-twitter (0.0.8)
+ omniauth-oauth (~> 1.0)
+ rack (1.4.1)
+ rack-openid (1.3.1)
+ rack (>= 1.1.0)
+ ruby-openid (>= 2.1.8)
+ rack-protection (1.2.0)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rainbows (4.3.1)
+ kgio (~> 2.5)
+ rack (~> 1.1)
+ unicorn (~> 4.1)
+ raindrops (0.8.0)
+ rake (0.9.2.2)
+ ruby-openid (2.1.8)
+ shotgun (0.9)
+ rack (>= 1.0)
+ sinatra (1.3.2)
+ rack (>= 1.3.6, ~> 1.3)
+ rack-protection (~> 1.2)
+ tilt (>= 1.3.3, ~> 1.3)
+ sinatra-contrib (1.3.1)
+ backports (>= 2.0)
+ eventmachine
+ rack-protection
+ rack-test
+ sinatra (~> 1.3.0)
+ tilt (~> 1.3)
+ sinatra-namespace (1.0)
+ sinatra-contrib
+ sinatra-support (1.2.2)
+ sinatra (>= 1.0)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ tilt (1.3.3)
+ unf (0.0.5)
+ unf_ext
+ unf_ext (0.0.4)
+ unicorn (4.2.0)
+ kgio (~> 2.6)
+ rack
+ raindrops (~> 0.7)
+ webrobots (0.0.13)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ dalli
+ dm-aggregates
+ dm-core
+ dm-migrations
+ dm-mysql-adapter
+ dm-pager
+ dm-timestamps
+ erubis
+ hashie
+ json
+ mechanize
+ mysql2 (= 0.3.7)
+ omniauth
+ omniauth-facebook
+ omniauth-flickr
+ omniauth-geoloqi
+ omniauth-github
+ omniauth-google
+ omniauth-openid
+ omniauth-twitter
+ rainbows
+ rake
+ shotgun
+ sinatra
+ sinatra-namespace
+ sinatra-support
+ thin
21 README.md
@@ -0,0 +1,21 @@
+Pingbacks
+=========
+
+This project is an implementation of the Pingback protocol. It allows the pingback service to be run separately from the blogging software or website environment, making it easier to manage and integrate with other services.
+
+Say you have a statically-generated website using Jekyll or something similar, you can simply add the appropriate <link> tags to this service, and now you have pingbacks enabled on your static site!
+
+About the Pingback Protocol
+---------------------------
+
+The pingback system is a way for a blog to be automatically notified when other Web sites link to it. It is entirely transparent to the linking author, requiring no user intervention to work, and operates on principles of automatic discovery of everything that it needs to know.
+
+A sample blog post involving pingback might go like this:
+
+* Alice posts to her blog. The post she's made includes a link to a post on Bob's blog.
+* Alice's blogging system contacts Bob's blogging system and says "look, Alice made a post which linked to one of your posts".
+* Bob's blogging system then includes a link back to Alice's post on his original post.
+* Reader's of Bob's article can follow this link to Alice's post to read her opinion.
+
+Read the full protocol here: http://www.hixie.ch/specs/pingback/pingback
+
15 Rakefile
@@ -0,0 +1,15 @@
+def init(env=ENV['RACK_ENV']); end
+require File.join('.', 'environment.rb')
+
+namespace :db do
+ task :bootstrap do
+ init
+ DataMapper.auto_migrate!
+ end
+
+ task :migrate do
+ init
+ DataMapper.auto_upgrade!
+ end
+end
+
5 config.ru
@@ -0,0 +1,5 @@
+require File.join(File.expand_path(File.dirname(__FILE__)), 'environment.rb')
+
+map '/' do
+ run Controller
+end
8 restart.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -e tmp/restart.txt ]
+then
+ rm tmp/restart.txt
+else
+ touch tmp/restart.txt
+fi
3  start.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+bundle exec shotgun -s thin -P public -p 9019

0 comments on commit 4c1e95d

Please sign in to comment.
Something went wrong with that request. Please try again.