Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
searls committed Sep 1, 2011
1 parent 8452f10 commit 99bd46b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
@@ -1,3 +1,4 @@
source "http://rubygems.org"

gem 'instastache'
gem 'sinatra'
5 changes: 5 additions & 0 deletions Gemfile.lock
Expand Up @@ -19,9 +19,14 @@ GEM
multi_json (0.0.5)
multipart-post (1.1.3)
rack (1.3.2)
sinatra (1.2.6)
rack (~> 1.1)
tilt (< 2.0, >= 1.2.2)
tilt (1.3.3)

PLATFORMS
ruby

DEPENDENCIES
instastache
sinatra
2 changes: 1 addition & 1 deletion server.rb
@@ -1,5 +1,6 @@
require 'sinatra'
require 'erb'
require 'instastache'

module Instastache
class Server < Sinatra::Base
Expand All @@ -19,7 +20,6 @@ class Server < Sinatra::Base
get '/' do
@action = params[:action] ||= 'girl'
@urls = Instagram.tag_recent_media(@action).data.map do |i|
# @urls = Instagram.media_popular.map do |i|
url = i[:images][:standard_resolution][:url]
Instastache.mustachify(url)
end
Expand Down

0 comments on commit 99bd46b

Please sign in to comment.