Permalink
Browse files

Fixed core_ext requirement, fixed README, bumped version.

  • Loading branch information...
krasnoukhov committed Oct 13, 2012
1 parent e9aa277 commit e05595293ca64eda1a8c2affe9ec3f854b0a3590
Showing with 22 additions and 21 deletions.
  1. +19 −19 README.md
  2. +1 −0 lib/sidekiq-middleware.rb
  3. +1 −1 lib/sidekiq-middleware/version.rb
  4. +1 −1 test/test_core_ext.rb
View
@@ -29,26 +29,26 @@ Provides uniqueness for jobs.
Example worker:
```ruby
- class UniqueWorker
- include Sidekiq::Worker
-
- sidekiq_options({
- # Should be set to true (enables uniqueness for async jobs)
- # or :all (enables uniqueness for both async and scheduled jobs)
- unique: :all,
-
- # Set this to true in case your job schedules itself
- forever: true,
-
- # Unique expiration (optional, default is 30 minutes)
- # For scheduled jobs calculates automatically if not provided
- expiration: 24 * 60 * 60
- })
-
- def perform
- # Your code goes here
- end
+class UniqueWorker
+ include Sidekiq::Worker
+
+ sidekiq_options({
+ # Should be set to true (enables uniqueness for async jobs)
+ # or :all (enables uniqueness for both async and scheduled jobs)
+ unique: :all,
+
+ # Set this to true in case your job schedules itself
+ forever: true,
+
+ # Unique expiration (optional, default is 30 minutes)
+ # For scheduled jobs calculates automatically if not provided
+ expiration: 24 * 60 * 60
+ })
+
+ def perform
+ # Your code goes here
end
+end
```
## Contributing
@@ -1,5 +1,6 @@
require "digest"
require "sidekiq-middleware/version"
+require "sidekiq-middleware/core_ext"
require "sidekiq-middleware/server/unique_jobs"
require "sidekiq-middleware/client/unique_jobs"
require "sidekiq-middleware/middleware"
@@ -1,5 +1,5 @@
module Sidekiq
module Middleware
- VERSION = "0.0.2"
+ VERSION = "0.0.3"
end
end
View
@@ -1,5 +1,5 @@
require 'helper'
-require 'sidekiq-middleware/core_ext'
+require 'sidekiq-middleware'
class TestCoreExt < MiniTest::Unit::TestCase
describe 'for an empty array' do

0 comments on commit e055952

Please sign in to comment.