determinator 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/determinator.rb +1 -1
- data/lib/determinator/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: 2ece9989b7ac3a6e9ab04d4933e27d4225011283
|
4
|
+
data.tar.gz: 3675d4b2c99d14b5161c402651827e84cfe2d14a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2408a3051c80f95368f920e63331b2aa147fd91edf4b1e4701b823a0e2e2f61361e725531b5b9a99ef8f560abc1f4b670cb4c5b464d6ac592c5576f6a41c39d
|
7
|
+
data.tar.gz: 872e0b1696d9a7cc37f013f0fb2df9b39b0aee3c4967b66051d3711bdf4183302c1561158c86815fe8a5aa4a7670625d8b5f2787c2eed0b28a8b83e6c3de58dd
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -91,7 +91,7 @@ Determinator.configure(
|
|
91
91
|
)
|
92
92
|
Determinator.on_error(NewRelic::Agent.method(:notice_error))
|
93
93
|
Determinator.on_missing_feature do |feature_name|
|
94
|
-
STATSD.increment 'determinator.missing_feature', tags: ["feature:#{
|
94
|
+
STATSD.increment 'determinator.missing_feature', tags: ["feature:#{feature_name}"]
|
95
95
|
end
|
96
96
|
|
97
97
|
Determinator.on_determination do |id, guid, feature, determination|
|
data/lib/determinator.rb
CHANGED
@@ -13,7 +13,7 @@ module Determinator
|
|
13
13
|
# @param :missing_feature [#call, nil] a proc, accepting a feature name, which will be called any time a feature is requested but isn't available
|
14
14
|
# @param :feature_cache [#call, nil] a caching proc, accepting a feature name, which will return the named feature or yield (and store) if not available
|
15
15
|
def configure(retrieval:, errors: nil, missing_feature: nil, feature_cache: nil)
|
16
|
-
self.
|
16
|
+
self.on_error(&errors) if errors
|
17
17
|
self.on_missing_feature(&missing_feature) if missing_feature
|
18
18
|
@feature_cache = feature_cache if feature_cache.respond_to?(:call)
|
19
19
|
@instance = Control.new(retrieval: retrieval)
|
data/lib/determinator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: determinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Hastings-Spital
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: routemaster-drain
|