hutch 0.4.0 → 0.4.1

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: 7796c2e714b41d75ba0dac9b55b51e2aa45e2c44
4
- data.tar.gz: 53e10daaf146ea25c39b374249040e0a2eb3281b
3
+ metadata.gz: 9f6769adb52304d77e335c68fcb57f8cb6f5ee37
4
+ data.tar.gz: 4fe4c8bbf1b7f44be549193f3c0027b6d8e4ec46
5
5
  SHA512:
6
- metadata.gz: 864361f79c19d277caaa6fada23e6a9b8dd750b7731e279a6ffc95d06f2bacd239e8cdffb62cb7e3dbb8caf3e1c0f06df2bf72da91b8a33cf1d29af6dd0e74df
7
- data.tar.gz: 5b00698982dfb82b7a837d7207c79e9afd84fdfdceca3804cd60b0d9a7e231186d12ef5a8c0a4a5d42582902eebc40956105a37aff8fe51742c5401aa0824377
6
+ metadata.gz: 68091e7fbac0048d592a4b8b77b52b27695b90ffcac2e64fd361472763adcf3b74d929a04c6a08b3e6a29d6399e857f109ee85540cdfca6e504d1deea10b11d9
7
+ data.tar.gz: 7e6a89c2212f7686abc006f30f1e390a2160881d2a068dbabc42f6b4c744a5664bc5955b3d8621c22773c62a98767d4fe0ce0b4d70bec658ee9ab14bedf94332
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.4.1 - October 11, 2013
2
+
3
+ - Autoload internal modules. Fixes regression where the `Config` module was
4
+ not available by simply `require`ing `hutch`.
5
+
6
+ ## 0.4.0 - October 9, 2013
7
+
8
+ - Support for loading configuration from a file, specified with the `--config`
9
+ command line option.
10
+
1
11
  ## 0.3.0 - September 24, 2013
2
12
 
3
13
  - Add `--[no-]autoload-rails` flag to optionally disable the autoloading of
data/README.md CHANGED
@@ -29,7 +29,7 @@ gem install hutch
29
29
  To use in a project managed with Bundler:
30
30
 
31
31
  ``` ruby
32
- gem "hutch", "~> 0.1.1"
32
+ gem "hutch", "~> 0.4.1"
33
33
  ```
34
34
 
35
35
  ## Overview
data/lib/hutch.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Hutch
2
- require 'hutch/consumer'
3
- require 'hutch/worker'
4
- require 'hutch/logging'
5
- require 'hutch/error_handlers/logger'
6
- ErrorHandlers.autoload :Sentry, 'hutch/error_handlers/sentry'
2
+ autoload :Consumer, 'hutch/consumer'
3
+ autoload :Worker, 'hutch/worker'
4
+ autoload :Logging, 'hutch/logging'
5
+ autoload :Config, 'hutch/config'
6
+ autoload :ErrorHandlers, 'hutch/error_handlers'
7
7
 
8
8
  def self.register_consumer(consumer)
9
9
  self.consumers << consumer
@@ -0,0 +1,6 @@
1
+ module Hutch
2
+ module ErrorHandlers
3
+ autoload :Logger, 'hutch/error_handlers/logger'
4
+ autoload :Sentry, 'hutch/error_handlers/sentry'
5
+ end
6
+ end
data/lib/hutch/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Hutch
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Marr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-09 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny
@@ -92,6 +92,7 @@ files:
92
92
  - lib/hutch/cli.rb
93
93
  - lib/hutch/config.rb
94
94
  - lib/hutch/consumer.rb
95
+ - lib/hutch/error_handlers.rb
95
96
  - lib/hutch/error_handlers/logger.rb
96
97
  - lib/hutch/error_handlers/sentry.rb
97
98
  - lib/hutch/exceptions.rb