hutch 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -2
- data/lib/hutch.rb +11 -9
- data/lib/hutch/cli.rb +1 -0
- data/lib/hutch/exceptions.rb +5 -4
- data/lib/hutch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a85a84008f00348fd3416e1067d5edc68dce0b50
|
4
|
+
data.tar.gz: 195ad53e080145096107e8c418f40c724918299e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d70d2c0c9ca01d0786840e258b6652c396b220e88b87dbff53e6241aa2e4490babd2a274e385e44b988a5380c129acefc13a8c96caa4e46ec12520c99918e9d
|
7
|
+
data.tar.gz: 43aa778b97d94fcb778b901c9f0fac74d48c8ae098274811ac068288df497431f8adbb0e514a395c936eed605dffea54e97c375a97be24bdfc3f0761b016dcd1
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,41 @@
|
|
1
|
-
## 0.
|
1
|
+
## 0.12.0 — unreleased
|
2
|
+
|
3
|
+
### Explicit Requires
|
4
|
+
|
5
|
+
Hutch no longer relies on `Kernel#autoload` to load its key
|
6
|
+
modules and classes.
|
7
|
+
|
8
|
+
Contributed by Pierre-Louis Gottfrois.
|
9
|
+
|
10
|
+
|
11
|
+
### hutch --version No Longer Fails
|
12
|
+
|
13
|
+
```
|
14
|
+
hutch --version
|
15
|
+
```
|
16
|
+
|
17
|
+
no longer fails with an exception.
|
18
|
+
|
19
|
+
Contributed by Olle Jonsson.
|
20
|
+
|
21
|
+
|
22
|
+
### Base Class for All Hutch Exceptions
|
23
|
+
|
24
|
+
All Hutch exceptions now inherit from `Hutch::Exception`.
|
25
|
+
|
26
|
+
Contributed by Pierre-Louis Gottfrois.
|
27
|
+
|
28
|
+
|
29
|
+
## 0.11.0 — Nov 14th, 2014
|
2
30
|
|
3
31
|
### Publisher Confirms Support
|
4
32
|
|
5
33
|
`:force_publisher_confirms` is a new configuration option that forces `Hutch.publish` to wait
|
6
|
-
for a confirm for every message published. Note that this **will cause a significant drop in throughput
|
34
|
+
for a confirm for every message published. Note that this **will cause a significant drop in throughput**:
|
35
|
+
|
36
|
+
``` ruby
|
37
|
+
Hutch::Config.set(:force_publisher_confirms, true)
|
38
|
+
```
|
7
39
|
|
8
40
|
`Hutch::Broker#confirm_select` and `Hutch::Broker#wait_for_confirms` are new public API methods
|
9
41
|
that delegate to their respective `Bunny::Channel` counterparts. `Hutch::Broker#confirm_select`
|
data/lib/hutch.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
+
require 'hutch/consumer'
|
2
|
+
require 'hutch/worker'
|
3
|
+
require 'hutch/broker'
|
4
|
+
require 'hutch/logging'
|
5
|
+
require 'hutch/config'
|
6
|
+
require 'hutch/message'
|
7
|
+
require 'hutch/cli'
|
8
|
+
require 'hutch/version'
|
9
|
+
require 'hutch/error_handlers'
|
10
|
+
require 'hutch/exceptions'
|
11
|
+
|
1
12
|
module Hutch
|
2
|
-
autoload :Consumer, 'hutch/consumer'
|
3
|
-
autoload :Worker, 'hutch/worker'
|
4
|
-
autoload :Broker, 'hutch/broker'
|
5
|
-
autoload :Logging, 'hutch/logging'
|
6
|
-
autoload :Config, 'hutch/config'
|
7
|
-
autoload :Message, 'hutch/message'
|
8
|
-
autoload :CLI, 'hutch/cli'
|
9
|
-
autoload :Version, 'hutch/version'
|
10
|
-
autoload :ErrorHandlers, 'hutch/error_handlers'
|
11
13
|
|
12
14
|
def self.register_consumer(consumer)
|
13
15
|
self.consumers << consumer
|
data/lib/hutch/cli.rb
CHANGED
data/lib/hutch/exceptions.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Hutch
|
2
|
-
class
|
3
|
-
class
|
4
|
-
class
|
5
|
-
class
|
2
|
+
class Exception < StandardError; end
|
3
|
+
class ConnectionError < Exception; end
|
4
|
+
class AuthenticationError < Exception; end
|
5
|
+
class WorkerSetupError < Exception; end
|
6
|
+
class PublishError < Exception; end
|
6
7
|
end
|
data/lib/hutch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hutch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Marr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|