From f654f0f2c0153a497f2aae4aede33cc43f8ea2f7 Mon Sep 17 00:00:00 2001 From: Ryan Smith Date: Mon, 1 Jul 2013 21:17:23 -0700 Subject: [PATCH] version bump -> 2.2.0 --- changelog | 2 +- lib/queue_classic.rb | 2 +- queue_classic.gemspec | 2 +- readme.md | 6 +++--- test/benchmark_test.rb | 12 ++++++------ 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/changelog b/changelog index a6633a06..229b3e97 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,4 @@ -Unreleased (in Git) +Version 2.2.0 - Use json from the stdlib in place of MultiJson. - Use postgresql's json type for the args column if json type is available - QC::Worker#handle_failure logs the job and the error diff --git a/lib/queue_classic.rb b/lib/queue_classic.rb index f21bc1c1..97d1e781 100644 --- a/lib/queue_classic.rb +++ b/lib/queue_classic.rb @@ -16,7 +16,7 @@ module QC # You can use the APP_NAME to query for # postgres related process information in the - # pg_stat_activity table. + # pg_stat_activity table. APP_NAME = ENV["QC_APP_NAME"] || "queue_classic" # Why do you want to change the table name? diff --git a/queue_classic.gemspec b/queue_classic.gemspec index 97eb64e8..e8a30b48 100644 --- a/queue_classic.gemspec +++ b/queue_classic.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = "queue_classic" s.email = "ryan@heroku.com" - s.version = "2.1.4" + s.version = "2.2.0" s.date = "2013-01-02" s.description = "queue_classic is a queueing library for Ruby apps. (Rails, Sinatra, Etc...) queue_classic features asynchronous job polling, database maintained locks and no ridiculous dependencies. As a matter of fact, queue_classic only requires pg." s.summary = "postgres backed queue" diff --git a/readme.md b/readme.md index 8d333915..f7b8a9d3 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # queue_classic -v2.1.4 +v2.2.0 queue_classic provides a simple interface to a PostgreSQL-backed message queue. queue_classic specializes in concurrent locking and minimizing database load while providing a simple, intuitive developer experience. queue_classic assumes that you are already using PostgreSQL in your production environment and that adding another dependency (e.g. redis, beanstalkd, 0mq) is undesirable. @@ -14,7 +14,7 @@ Features: Contents: -* [Documentation](http://rubydoc.info/gems/queue_classic/2.1.4/frames) +* [Documentation](http://rubydoc.info/gems/queue_classic/2.2.0/frames) * [Usage](#usage) * [Setup](#setup) * [Configuration](#configuration) @@ -129,7 +129,7 @@ Declare dependencies in Gemfile. ```ruby source "http://rubygems.org" -gem "queue_classic", "2.1.4" +gem "queue_classic", "2.2.0" ``` Require these files in your Rakefile so that you can run `rake qc:work`. diff --git a/test/benchmark_test.rb b/test/benchmark_test.rb index c379653f..55b0a4be 100644 --- a/test/benchmark_test.rb +++ b/test/benchmark_test.rb @@ -2,7 +2,7 @@ if ENV["QC_BENCHMARK"] class BenchmarkTest < QCTest - + def test_enqueue n = 10_000 start = Time.now @@ -10,11 +10,11 @@ def test_enqueue QC.enqueue("1.odd?", []) end assert_equal(n, QC.count) - + elapsed = Time.now - start assert_in_delta(4, elapsed, 1) end - + def test_dequeue worker = QC::Worker.new worker.running = true @@ -23,16 +23,16 @@ def test_dequeue QC.enqueue("1.odd?", []) end assert_equal(n, QC.count) - + start = Time.now n.times do worker.work end elapsed = Time.now - start - + assert_equal(0, QC.count) assert_in_delta(10, elapsed, 3) end - + end end