this_feature-adapters-split_io 0.5.0 → 0.5.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 +4 -4
- data/README.md +1 -1
- data/lib/this_feature/adapters/flipper.rb +1 -7
- data/lib/this_feature/configuration.rb +2 -0
- data/lib/this_feature/errors.rb +2 -2
- data/lib/this_feature/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 972688c726c043f9b1736df75ab9dbcc289c24736fb8dc63eccae07cccbcf538
|
|
4
|
+
data.tar.gz: d0b53e618914652d232e311c8f81d95d78c86e1c45cde05b2c211c5b7f8aaa5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b56825070e901b6e976a0bc422fd81009fa9d12ae817ea211853b20f9f1045343642c1d551b27b757627816d558451f23425701fb7492cc198c9c9918b89e82
|
|
7
|
+
data.tar.gz: 8ed1cff1db6f1f3a50fe1b3bf79a250dd639b7ff819831150fc6bf2599b764314b29ed9c4f1385aa0524d6103a67c395c47b1b0596018f9829d515dfc81ac6d4
|
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ These adapters do behave slightly differently, so make sure to read the followin
|
|
|
63
63
|
|
|
64
64
|
- [Flipper adapter](./docs/flipper.md)
|
|
65
65
|
- [Split.io adapter](./docs/splitio.md)
|
|
66
|
-
- [Memory adapter](./docs/memory.md) - **
|
|
66
|
+
- [Memory adapter](./docs/memory.md) - **designed for use in tests**
|
|
67
67
|
|
|
68
68
|
## Development
|
|
69
69
|
|
|
@@ -19,17 +19,11 @@ class ThisFeature
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def on?(flag_name, context: nil, data: {})
|
|
22
|
-
return unless present?(flag_name)
|
|
23
|
-
|
|
24
22
|
client[flag_name].enabled?(*[context].compact)
|
|
25
23
|
end
|
|
26
24
|
|
|
27
25
|
def off?(flag_name, context: nil, data: {})
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return if on_result.nil?
|
|
31
|
-
|
|
32
|
-
!on_result
|
|
26
|
+
!on?(flag_name, context: context)
|
|
33
27
|
end
|
|
34
28
|
|
|
35
29
|
private
|
data/lib/this_feature/errors.rb
CHANGED
|
@@ -14,9 +14,9 @@ class ThisFeature
|
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class NoAdaptersError < Error
|
|
18
18
|
def initialize
|
|
19
|
-
super("
|
|
19
|
+
super("No adapters configured.")
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
data/lib/this_feature/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: this_feature-adapters-split_io
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Max Pleaner
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: this_feature
|