request_handler 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8e315a0edd52be9b9cb71f954b28bd167350bd9
4
- data.tar.gz: 4890f5dbee778780b5c98165e693feeaa5de058f
3
+ metadata.gz: 14b3530f39b336a119b6c37b07c9e4a4cfef1033
4
+ data.tar.gz: b54120aaaf4c7934d4726b052405e7129a5cb68d
5
5
  SHA512:
6
- metadata.gz: 4b7010ce210fb7fbfee81f82c9660a86ff4ffe06b2e59c9f689674cac313a6526cf8be1a7c8691da21b2acb6b2ce1442044f22d86e87a5d3cdb21d1302d40e82
7
- data.tar.gz: fbb91b67a25d63e1e792bddd67283384dd8b30dbfa874e9d45e31fbfebb3ec5143d202d4d798127ef300bff5da5b52711d0ed113132e18145f084e6433425011
6
+ metadata.gz: 0da96498795ecef95acfa1b4136b580e77155755ed9db531fa5e172ee6a464698a7a9c7c5d496ad361b60d5473cbbdb0a148d4056c4c2ba236baa177a5ad95cc
7
+ data.tar.gz: 5226d3a8ba5d4dbb3dfff3cc354b644f03d176f3ba7f0084180072fde33a7f912e65ab713c74e8942292f48e1f2d9a8bd653ec53d15abd52b02e7ad7686f3706
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@ Changelog
3
3
 
4
4
  ## master
5
5
 
6
+ ## 0.9.1
7
+
8
+ - fix configure method
9
+
6
10
  ## 0.9.0
7
11
 
8
12
  - change nesting separator from `_` to `__` and use it consistently (also in sorting fields)
data/README.md CHANGED
@@ -147,6 +147,18 @@ include_options = [:posts__comments]
147
147
  sort_options = SortOption.new(:posts__published_on, :asc)
148
148
  ```
149
149
 
150
+ ### Configuration
151
+
152
+ The default logger and separator can be changed globally by using
153
+ `RequestHandler.configure {}`.
154
+
155
+ ```ruby
156
+ RequestHandler.configure do
157
+ logger Logger.new(STDERR)
158
+ separator '____'
159
+ end
160
+ ```
161
+
150
162
  ### Caveats
151
163
 
152
164
  It is currently expected that _url_ parameter are already parsed and included in
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RequestHandler
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
@@ -9,7 +9,7 @@ require 'logger'
9
9
  module RequestHandler
10
10
  class << self
11
11
  def configure(&block)
12
- @configuration.configure(&block)
12
+ configuration.configure(&block)
13
13
  end
14
14
 
15
15
  def configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request_handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Eger