From e7f5ec74f92d1c18e54f65028caaf540233e48ca Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Fri, 23 Jun 2017 16:42:46 -0700 Subject: [PATCH] Version 0.4.0 --- HISTORY.md | 6 +++++- README.md | 11 +++++------ activejob-locking.gemspec | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index e7e9c00..d3e7a5c 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,6 +1,10 @@ ## 0.3.0 (2017-06-21) -- Change lock_key signature +- Cleanup handling of hosts + +## 0.3.0 (2017-06-21) + +- Change lock_key signature to match perform signature ## 0.2.0 (2017-06-20) diff --git a/README.md b/README.md index 5da0769..db929f5 100644 --- a/README.md +++ b/README.md @@ -159,15 +159,15 @@ class ExampleJob < ActiveJob::Base end ``` -### Host +### Hosts -The host(s) of the distributed system. This format will be dependent on the locking gem, so please read its -documentation. +An array of hosts for the distributed system. This format is dependent on the locking gem, but generally is a url or an existing Memcache or Redis +connection. Please refer to the appropriate locking gem's documentation documentation. Globally update: ```ruby -ActiveJob::Locking.options.hosts = 'localhost' +ActiveJob::Locking.options.hosts = ['localhost'] ``` Locally update: @@ -175,7 +175,7 @@ Locally update: class ExampleJob < ActiveJob::Base include ActiveJob::Locking::Serialized - self.hosts = 'localhost' + self.hosts = ['localhost'] end ``` @@ -226,7 +226,6 @@ class ExampleJob < ActiveJob::Base end ``` - ### AdapterOptions This is a hash table of options that should be sent to the lock gem when it is instantiated. Read the lock diff --git a/activejob-locking.gemspec b/activejob-locking.gemspec index ffaf68f..cbdf8b1 100644 --- a/activejob-locking.gemspec +++ b/activejob-locking.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'activejob-locking' - s.version = '0.3.0' + s.version = '0.4.0' s.date = Time.now.strftime('%Y-%m-%d') s.summary = 'ActiveJob locking to control how jobs are enqueued and performed.' s.license = 'MIT'