Skip to content

Commit

Permalink
Version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Savage committed Jun 23, 2017
1 parent bff20d1 commit e7f5ec7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 5 additions & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,23 @@ 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:

```ruby
class ExampleJob < ActiveJob::Base
include ActiveJob::Locking::Serialized

self.hosts = 'localhost'
self.hosts = ['localhost']
end
```

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion activejob-locking.gemspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit e7f5ec7

Please sign in to comment.