determinator 1.1.1 → 1.1.2
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/docs/local_development.md +27 -0
- data/lib/determinator/retrieve/file.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: fd852966a9351ecb27cf0b4d6553686e995d291e
|
4
|
+
data.tar.gz: 48f7d48e91deb7f5dcb142ebdf764cf68ee949b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3c92e42762d687546e4f48869786f0e85484b39780acf49429bc05b8bd7e881266eab8fe8db5b703321ca65615ce723ef2225daf8286f5063846cf6b728d185
|
7
|
+
data.tar.gz: cda308dc0f3b656d221827c66877ea62f0b2729453472b7178a63b692a28af705eea589e07e122f6bd53b2ab3f51e5a44b59390c2947c4de1d43cf9e4ef7a970
|
data/CHANGELOG.md
CHANGED
data/docs/local_development.md
CHANGED
@@ -88,3 +88,30 @@ determinator.which_variant(:my_experiment, id: 123)
|
|
88
88
|
```
|
89
89
|
|
90
90
|
More information can be found on the [Fake Florence](https://github.com/deliveroo/fake_florence) project page.
|
91
|
+
|
92
|
+
## File support for local
|
93
|
+
|
94
|
+
Alternatively, Determinator can be configured to read from a local file store.
|
95
|
+
|
96
|
+
Add 'local_feature_flags' to your .gitignore file and the following to your determinator setup initializer.
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
# /config/initializers/determinator.rb
|
100
|
+
require 'determinator/retrieve/file'
|
101
|
+
retrieval = if Rails.env.development?
|
102
|
+
Determinator::Retrieve::File.new(
|
103
|
+
root: Rails.root.join('local_feature_flags')
|
104
|
+
)
|
105
|
+
else
|
106
|
+
#Your regular production config
|
107
|
+
end
|
108
|
+
|
109
|
+
Determinator.configure(retrieval: retrieval)
|
110
|
+
```
|
111
|
+
|
112
|
+
Then add a your feature definitions as a json file (without an extension) to the `local_feature_flags` folder.
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
# checks /local_feature_flags/deliveroo_does
|
116
|
+
Determinator.instance.feature_flag_on?('deliveroo_does', id: 5)
|
117
|
+
```
|
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.2
|
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-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: routemaster-drain
|