umbra-rb 0.1.5.pre → 0.2.0

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
  SHA256:
3
- metadata.gz: 7332c71e2a8b849c0d6ac484527a731fdc289c18cd26963aa8bb178f90708290
4
- data.tar.gz: 2ffd6eb5d29f8c426ab90939e51a6913a1ba06fffeb08cfc31645a36ba169ff4
3
+ metadata.gz: 12773099d5e69ca31d44d8751335f2dd7652c3d37626be3f7e69ba1048f2d8eb
4
+ data.tar.gz: 7d29a4d0c0bf0e7c715a88e8696e99b9c92e2eb590738edab34b62e334e900e6
5
5
  SHA512:
6
- metadata.gz: abf9b577c779755ba3fe841b871693b7a86a6d7de5baeaa130fa961596839439f20b6f8d7832efcaff82f52c12fe144ae2f256f20eaa82d46f14f128ed05779b
7
- data.tar.gz: '088c46c1a7de2d8a06d75b0694d4996cb436184b795184c1994cb012079e1821b59a55c45d2f0e958fb5dc91b4861d00027f2d3f23de6acec94a47f4f0e7906f'
6
+ metadata.gz: e7ba308273cf8ab2d97d12081e03449b220972b1f9759613f99507b956f29c6538ff3aa11c9e5fbced6326878fbb096393ab95fa2659c0b3410b835a94f2966d
7
+ data.tar.gz: a3e54eb44ff862456c5d474e38fd5058f358e5a36264bd65aaffed18861baa456a65259d890b069e40554d2bda7515e9d412e94d62d048b48671f2a1487cf0f6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- umbra-rb (0.1.5.pre)
4
+ umbra-rb (0.2.0)
5
5
  multi_json (~> 1.13)
6
6
  oj (~> 3.9)
7
7
  redis (~> 4.1)
@@ -23,7 +23,7 @@ GEM
23
23
  jaro_winkler (1.5.3)
24
24
  method_source (0.9.2)
25
25
  multi_json (1.13.1)
26
- oj (3.9.1)
26
+ oj (3.9.2)
27
27
  parallel (1.17.0)
28
28
  parser (2.6.4.1)
29
29
  ast (~> 2.4.0)
data/README.md CHANGED
@@ -74,6 +74,23 @@ The `payload` is the encoded request and response, as defined by the configured
74
74
 
75
75
  # Config
76
76
 
77
+ `umbra` allows you to add custom configuration by passing a block to `Umbra.configure`. You may pass custom configuration in the following form:
78
+
79
+ ```ruby
80
+ Umbra.configure do |config|
81
+ config.<config_option> = <config_value>
82
+ end
83
+ ```
84
+
85
+ | config_option | default | description |
86
+ | ------------- | ------- | ----------- |
87
+ | publisher | `Umbra::Publisher` | Must respond to `call`. By default, pushes the encoded rack request/response to a `Queue` that is consumed in a different thread and publishes to `redis`. |
88
+ | request_selector | `Umbra::RequestSelector` / `proc { true }` | Must respond to `call`. Determines whether request/response will be published |
89
+ | encoder | `Umbra::Encoder` | Must response to `call`. Encodes the rack request/response for publishing |
90
+ | error_handler | `Umbra::SupressErrorHandler` / `proc { nil }` | Must respond to `call`. Called on exception, is always passed the exception as first argument, *may* be passed rack environment and response. |
91
+ | redis_options | `{}` | Hash of options passed to `Redis` client. See [`Redis::Client` docs](https://www.rubydoc.info/gems/redis/Redis/Client) |
92
+ | logger | `Logger.new(STDOUT)` | The logger to be used. |
93
+
77
94
  ## Contributing
78
95
 
79
96
  Bug reports and pull requests are welcome on GitHub at https://github.com/carwow/umbra.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Umbra
4
- VERSION = '0.1.5.pre'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umbra-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.pre
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - carwow Developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -181,9 +181,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
- - - ">"
184
+ - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: 1.3.1
186
+ version: '0'
187
187
  requirements: []
188
188
  rubygems_version: 3.0.3
189
189
  signing_key: