Skip to content

Commit

Permalink
Trying more rails stuff. Looks like the SASS thing is fixed and uploa…
Browse files Browse the repository at this point in the history
…ding all gems works too. This requires the rails_bs branch of simple_worker.
  • Loading branch information
treeder committed Jun 29, 2011
1 parent 91da355 commit 9783f3e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Gemfile
Expand Up @@ -19,13 +19,14 @@ gem 'active_sanity'
#gem 'acts-as-taggable-on'gem 'aws-s3', :require => 'aws/s3'
gem 'backup'
gem 'bson_ext', '~> 1.3'
gem 'cancan'
# todo: get this working: gem 'cancan'
gem 'client_side_validations'
gem 'compass'
gem 'concerned_with'
gem 'dalli'
gem 'delayed_job'
gem 'devise'
gem 'devise_invitable'
#gem 'devise_invitable'
gem 'haml'
gem 'haml-rails'
gem 'rest-client', :require=>'rest_client'
7 changes: 1 addition & 6 deletions Gemfile.lock
Expand Up @@ -36,7 +36,6 @@ GEM
bcrypt-ruby (2.1.4)
bson_ext (1.3.1)
builder (2.1.2)
cancan (1.6.5)
chunky_png (1.2.0)
client_side_validations (3.1.0)
compass (0.11.3)
Expand All @@ -53,9 +52,6 @@ GEM
bcrypt-ruby (~> 2.1.2)
orm_adapter (~> 0.0.3)
warden (~> 1.0.3)
devise_invitable (0.5.1)
devise (< 1.5, >= 1.3.1)
rails (< 3.2, >= 3.0.0)
erubis (2.6.6)
abstract (>= 1.0.0)
eventmachine (0.12.10)
Expand Down Expand Up @@ -125,19 +121,18 @@ DEPENDENCIES
active_sanity
backup
bson_ext (~> 1.3)
cancan
client_side_validations
compass
concerned_with
dalli
delayed_job
devise
devise_invitable
eventmachine
haml
haml-rails
jquery-rails
mini_fb
mysql2 (< 0.3)
rails (= 3.0.9)
rest-client
simple_worker
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
Expand Up @@ -2,7 +2,7 @@ class HomeController < ApplicationController
def index
worker = UberWorker.new
p worker
worker.queue
worker.queue(:priority=>1)
end


Expand Down
2 changes: 1 addition & 1 deletion app/controllers/posts_controller.rb
Expand Up @@ -17,7 +17,7 @@ def email
if params[:async]
worker = MailWorker.new
worker.post_id = params[:id]
worker.queue
worker.queue(:priority=>1)
flash[:success] = "Post sent!"
else
# send default
Expand Down
10 changes: 9 additions & 1 deletion app/workers/uber_worker.rb
@@ -1,7 +1,15 @@
# bump........
class UberWorker < SimpleWorker::Base

def run
log "hello!"
# log "Rails is " + Rails.inspect
# Rails.env
log 3.seconds.ago
log 'mini_fb? ' + MiniFB.scopes.inspect

# This tests different require statement in Gemfile
log 'rest-client? ' + RestClient.get("http://www.github.com").inspect
end

end
end

0 comments on commit 9783f3e

Please sign in to comment.