Skip to content

Commit

Permalink
version bump -> 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Smith committed Jul 2, 2013
1 parent 31521dc commit f654f0f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/queue_classic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion queue_classic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = "queue_classic"
s.email = "[email protected]"
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"
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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)
Expand Down Expand Up @@ -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`.
Expand Down
12 changes: 6 additions & 6 deletions test/benchmark_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

if ENV["QC_BENCHMARK"]
class BenchmarkTest < QCTest

def test_enqueue
n = 10_000
start = Time.now
n.times do
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
Expand All @@ -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

0 comments on commit f654f0f

Please sign in to comment.