Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iced committed Jan 13, 2012
1 parent 34caf19 commit e3c91f8
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 327 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'http://rubygems.org' source 'http://rubygems.org'

gem 'sinatra' gem 'sinatra'


gem 'iron_worker' gem 'iron_worker'
gem 'iron_mq' gem 'iron_mq'
gem 'twitter'
22 changes: 3 additions & 19 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
@@ -1,13 +1,6 @@
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
activesupport (3.1.3)
multi_json (~> 1.0)
addressable (2.2.6)
faraday (0.7.5)
addressable (~> 2.2.6)
multipart-post (~> 1.1.3)
rack (< 2, >= 1.1.0)
iron_mq (1.2.8) iron_mq (1.2.8)
typhoeus typhoeus
typhoeus typhoeus
Expand All @@ -17,24 +10,16 @@ GEM
zip zip
zip zip
mime-types (1.17.2) mime-types (1.17.2)
multi_json (1.0.4)
multipart-post (1.1.4)
rack (1.3.5) rack (1.3.5)
rack-protection (1.1.4) rack-protection (1.1.4)
rack rack
rest-client (1.6.7) rest-client (1.6.7)
mime-types (>= 1.16) mime-types (>= 1.16)
simple_oauth (0.1.5)
sinatra (1.3.1) sinatra (1.3.1)
rack (>= 1.3.4, ~> 1.3) rack (~> 1.3, >= 1.3.4)
rack-protection (>= 1.1.2, ~> 1.1) rack-protection (~> 1.1, >= 1.1.2)
tilt (>= 1.3.3, ~> 1.3) tilt (~> 1.3, >= 1.3.3)
tilt (1.3.3) tilt (1.3.3)
twitter (2.0.2)
activesupport (< 4, >= 2.3.9)
faraday (~> 0.7)
multi_json (~> 1.0)
simple_oauth (~> 0.1)
typhoeus (0.3.3) typhoeus (0.3.3)
mime-types mime-types
zip (2.0.2) zip (2.0.2)
Expand All @@ -46,4 +31,3 @@ DEPENDENCIES
iron_mq iron_mq
iron_worker iron_worker
sinatra sinatra
twitter
14 changes: 0 additions & 14 deletions README.md
Original file line number Original file line Diff line number Diff line change
@@ -1,14 +0,0 @@


First you need a token and project_id from your Iron.io account. Login at http://www.iron.io
to get it.

To run in development, run:

IRON_WORKER_TOKEN=my_token IRON_WORKER_PROJECT_ID=my_project_id rackup -p 3000 config.ru

To run on heroku:

- heroku addons:add iron_worker
- heroku addons:add iron_mq

17 changes: 17 additions & 0 deletions app.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'rubygems'
require 'sinatra'
require 'iron_worker'
require 'iron_mq'

enable :sessions

set :public_folder, File.dirname(__FILE__) + '/static'

IronWorker.configure do |iwc|
iwc.token = ENV['IRON_WORKER_TOKEN']
iwc.project_id = ENV['IRON_WORKER_PROJECT_ID']
end

set :ironmq, IronMQ::Client.new('token' => ENV['IRON_WORKER_TOKEN'], 'project_id' => ENV['IRON_WORKER_PROJECT_ID'])

require 'controllers/main'
13 changes: 2 additions & 11 deletions config.ru
Original file line number Original file line Diff line number Diff line change
@@ -1,14 +1,5 @@
require 'yaml' $: << File.expand_path(File.dirname(__FILE__))
require 'iron_worker'


#@config = YAML.load_file('config.yml') require 'app'


IronWorker.configure do |iwc|
iwc.token = ENV['IRON_WORKER_TOKEN']
iwc.project_id = ENV['IRON_WORKER_PROJECT_ID']
#iwc.token = @config['iron']['token']
#iwc.project_id = @config['iron']['project_id']
end

require './hello'
run Sinatra::Application run Sinatra::Application
3 changes: 3 additions & 0 deletions controllers/main.rb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
get '*' do
erb :index
end
61 changes: 0 additions & 61 deletions hello.rb

This file was deleted.

Binary file removed static/images/ajax-loader.gif
Binary file not shown.
9 changes: 0 additions & 9 deletions static/js/jquery.ba-dotimeout.min.js

This file was deleted.

191 changes: 0 additions & 191 deletions views/hello.erb

This file was deleted.

8 changes: 8 additions & 0 deletions views/index.erb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body>
Hello
</body>
</html>
Loading

0 comments on commit e3c91f8

Please sign in to comment.