unleash 0.1.6 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +53 -5
- data/.travis.yml +12 -8
- data/README.md +4 -6
- data/Rakefile +1 -1
- data/bin/unleash-client +21 -17
- data/examples/simple.rb +4 -4
- data/lib/unleash.rb +7 -8
- data/lib/unleash/client.rb +49 -57
- data/lib/unleash/configuration.rb +54 -35
- data/lib/unleash/context.rb +18 -7
- data/lib/unleash/feature_toggle.rb +42 -41
- data/lib/unleash/metrics.rb +3 -4
- data/lib/unleash/metrics_reporter.rb +9 -22
- data/lib/unleash/scheduled_executor.rb +26 -13
- data/lib/unleash/strategy/application_hostname.rb +2 -2
- data/lib/unleash/strategy/base.rb +2 -2
- data/lib/unleash/strategy/default.rb +1 -1
- data/lib/unleash/strategy/gradual_rollout_random.rb +1 -1
- data/lib/unleash/strategy/gradual_rollout_sessionid.rb +2 -2
- data/lib/unleash/strategy/gradual_rollout_userid.rb +2 -2
- data/lib/unleash/strategy/remote_address.rb +1 -1
- data/lib/unleash/strategy/user_with_id.rb +1 -1
- data/lib/unleash/toggle_fetcher.rb +19 -36
- data/lib/unleash/util/http.rb +48 -0
- data/lib/unleash/variant.rb +2 -5
- data/lib/unleash/variant_definition.rb +1 -2
- data/lib/unleash/version.rb +1 -1
- data/unleash-client.gemspec +9 -9
- metadata +26 -11
- data/TODO.md +0 -37
data/TODO.md
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
TODO
|
2
|
-
====
|
3
|
-
|
4
|
-
The Ruby client should be pretty stable now. But no warranty is given, and some work still remains.
|
5
|
-
|
6
|
-
|
7
|
-
Implement:
|
8
|
-
----------
|
9
|
-
* Document writing of custom strategies.
|
10
|
-
|
11
|
-
To test: (and write tests for)
|
12
|
-
--------
|
13
|
-
* MetricsReporter
|
14
|
-
* everything else :)
|
15
|
-
|
16
|
-
To consider:
|
17
|
-
------------
|
18
|
-
* Not using class hierarchy for strategies (more duck typing)
|
19
|
-
* Better compliance to https://github.com/rubocop-hq/ruby-style-guide
|
20
|
-
* Reduce the amount of comments and logs
|
21
|
-
|
22
|
-
DONE:
|
23
|
-
-----
|
24
|
-
* Client registration with the server.
|
25
|
-
* Reporter of the status of the feature toggles used.
|
26
|
-
* Abstract the Thread/sleep loop with scheduled_executor
|
27
|
-
* Thread the Reporter code
|
28
|
-
* Tests for All of strategies
|
29
|
-
* Configure via yield/blk
|
30
|
-
* Configurable Logging (logger + level)
|
31
|
-
* Switch hashing function to use murmurhash3 as per https://github.com/Unleash/unleash/issues/247
|
32
|
-
* Document usage with Rails
|
33
|
-
* Support for allowing custom strategies.
|
34
|
-
* Possibility for custom HTTP headers when interacting with unleash server.
|
35
|
-
* Implement spec test for ruby client specs using https://github.com/Unleash/client-specification/blob/master/05-gradual-rollout-random-strategy.json (similar to the examples below) to ensure consistent client behaviour.
|
36
|
-
* java: https://github.com/Unleash/unleash-client-java/compare/master...integration-spec
|
37
|
-
* node: https://github.com/Unleash/unleash-client-node/compare/client-specification?expand=1
|