Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Upgrade to QC 2.0

  • Loading branch information...
commit c9f87947d87f5931e2006eaac368967671000ebb 1 parent c4d73c6
@rwdaigle authored
View
2  Gemfile
@@ -9,7 +9,7 @@ gem 'pg'
gem 'make_resourceful'
gem 'dynamic_form'
gem 'wordnik'
-gem 'queue_classic', '~> 1.0.1'
+gem 'queue_classic', '~> 2.0.0'
gem 'clockwork'
gem 'haml'
View
24 Gemfile.lock
@@ -36,11 +36,11 @@ GEM
diff-lcs (1.1.3)
dynamic_form (1.1.4)
erubis (2.7.0)
- execjs (1.3.2)
+ execjs (1.4.0)
multi_json (~> 1.0)
foreman (0.46.0)
thor (>= 0.13.6)
- haml (3.1.5)
+ haml (3.1.6)
heroku (2.25.0)
launchy (>= 0.3.2)
netrc (~> 0.7.1)
@@ -53,7 +53,7 @@ GEM
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
- json (1.7.2)
+ json (1.7.3)
kgio (2.7.4)
launchy (2.1.0)
addressable (~> 2.2.6)
@@ -66,15 +66,16 @@ GEM
treetop (~> 1.4.8)
make_resourceful (1.0.1)
mime-types (1.18)
- multi_json (1.3.4)
+ multi_json (1.3.5)
netrc (0.7.1)
newrelic_rpm (3.3.4.1)
nokogiri (1.5.2)
permalink_fu (1.0.0)
- pg (0.11.0)
+ pg (0.13.2)
polyglot (0.3.3)
- queue_classic (1.0.2)
- pg (~> 0.11.0)
+ queue_classic (2.0.0)
+ pg (~> 0.13.2)
+ scrolls (~> 0.0.8)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
@@ -99,7 +100,7 @@ GEM
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
- raindrops (0.8.0)
+ raindrops (0.9.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
@@ -109,7 +110,7 @@ GEM
rspec-core (~> 2.10.0)
rspec-expectations (~> 2.10.0)
rspec-mocks (~> 2.10.0)
- rspec-core (2.10.0)
+ rspec-core (2.10.1)
rspec-expectations (2.10.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.10.1)
@@ -119,11 +120,12 @@ GEM
railties (>= 3.0)
rspec (~> 2.10.0)
rubyzip (0.9.8)
- sass (3.1.17)
+ sass (3.1.18)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
+ scrolls (0.0.9)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
@@ -167,7 +169,7 @@ DEPENDENCIES
newrelic_rpm
permalink_fu
pg
- queue_classic (~> 1.0.1)
+ queue_classic (~> 2.0.0)
rails (~> 3.2)
rails_log_stdout
rspec-rails
View
2  Procfile
@@ -1,3 +1,3 @@
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
-#worker: bundle exec rake jobs:work
+#worker: bundle exec rake qc:work
#clock: bundle exec clockwork clock.rb
View
2  config/initializers/queue_classic.rb
@@ -1 +1 @@
-$queue = QC::Queue.new("queue_classic_jobs")
+$queue = QC
View
16 db/migrate/20120314004517_queue_classic_functions.rb
@@ -1,16 +0,0 @@
-require 'queue_classic'
-
-class QueueClassicFunctions < ActiveRecord::Migration
-
- def up
- db = QC::Database.new
- db.load_functions
- db.disconnect
- end
-
- def down
- db = QC::Database.new
- db.unload_functions
- db.disconnect
- end
-end
View
10 db/migrate/20120523005513_upgrade_queue_classic.rb
@@ -0,0 +1,10 @@
+class UpgradeQueueClassic < ActiveRecord::Migration
+
+ def up
+ QC::Setup.create
+ end
+
+ def down
+ QC::Setup.drop
+ end
+end
View
8 db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20120314004517) do
+ActiveRecord::Schema.define(:version => 20120523005513) do
create_table "associations", :force => true do |t|
t.integer "user_id", :null => false
@@ -34,10 +34,14 @@
add_index "learnings", ["user_id"], :name => "index_learnings_on_user_id"
create_table "queue_classic_jobs", :force => true do |t|
- t.text "details"
+ t.string "q_name"
+ t.string "method"
+ t.text "args"
t.datetime "locked_at"
end
+ add_index "queue_classic_jobs", ["q_name", "id"], :name => "idx_qc_on_name_only_unlocked"
+
create_table "reviews", :force => true do |t|
t.integer "user_id", :null => false
t.integer "unit_id", :null => false
Please sign in to comment.
Something went wrong with that request. Please try again.