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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4ae8b34c445db665d717e7c4b935ae246c793c4
4
- data.tar.gz: d92e37a658a7a46a08500cf7c14589f7f6df2a17
3
+ metadata.gz: a85a84008f00348fd3416e1067d5edc68dce0b50
4
+ data.tar.gz: 195ad53e080145096107e8c418f40c724918299e
5
5
  SHA512:
6
- metadata.gz: 149952fbd91217d9bb7a92c7eac65607b45af0b35aaf0bba3424996376fa0f49fd205efc02b67e5b6a7f7a7a66a1dd22ad0e35ad576772905b0d91dc9da62950
7
- data.tar.gz: 6a128089af08c252778bf0cef44cfbbc522aea4938c7a4904c9ea74e21528fc13559a3ecb5011700c36a4e87bdd9b98e171593a3e28829312d3b9162c9774d7e
6
+ metadata.gz: 1d70d2c0c9ca01d0786840e258b6652c396b220e88b87dbff53e6241aa2e4490babd2a274e385e44b988a5380c129acefc13a8c96caa4e46ec12520c99918e9d
7
+ data.tar.gz: 43aa778b97d94fcb778b901c9f0fac74d48c8ae098274811ac068288df497431f8adbb0e514a395c936eed605dffea54e97c375a97be24bdfc3f0761b016dcd1
data/CHANGELOG.md CHANGED
@@ -1,9 +1,41 @@
1
- ## 0.11.0 — unreleased
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
@@ -1,5 +1,6 @@
1
1
  require 'optparse'
2
2
 
3
+ require 'hutch/version'
3
4
  require 'hutch/logging'
4
5
  require 'hutch/exceptions'
5
6
  require 'hutch/config'
@@ -1,6 +1,7 @@
1
1
  module Hutch
2
- class ConnectionError < StandardError; end
3
- class AuthenticationError < StandardError; end
4
- class WorkerSetupError < StandardError; end
5
- class PublishError < StandardError; end
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
@@ -1,4 +1,4 @@
1
1
  module Hutch
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
4
4
 
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.11.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-14 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny