Skip to content

Commit 619f3bc

Browse files
authored
Bump to 2.0 for General Availability. (#100)
1 parent a80d4ac commit 619f3bc

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## 2.0.0
2+
April 12th, 2018
3+
4+
This major release of the Optimizely SDK introduces APIs for Feature Management. It also introduces some breaking changes listed below.
5+
6+
### New Features
7+
* Introduces the `is_feature_enabled` API to determine whether to show a feature to a user or not.
8+
```
9+
enabled = optimizely_client.is_feature_enabled('my_feature_key', 'user_1', user_attributes)
10+
```
11+
12+
* You can also get all the enabled features for the user by calling the following method which returns a list of strings representing the feature keys:
13+
```
14+
enabled_features = optimizely_client.get_enabled_features('user_1', user_attributes)
15+
```
16+
17+
* Introduces Feature Variables to configure or parameterize your feature. There are four variable types: `Integer`, `String`, `Double`, `Boolean`.
18+
```
19+
string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'user_1')
20+
integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'user_1')
21+
double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'user_1')
22+
boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'user_1')
23+
```
24+
25+
### Breaking changes
26+
* The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry of the event tags map. The key for the revenue tag is `revenue` and will be treated by Optimizely as the key for analyzing revenue data in results.
27+
```
28+
event_tags = {
29+
'revenue'=> 1200
30+
}
31+
32+
optimizely_client.track('event_key', 'user_id', user_attributes, event_tags)
33+
```
34+
135
## 2.0.0.beta1
236
March 29th, 2018
337

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The SDK is available through [RubyGems](https://rubygems.org/gems/optimizely-sdk
1515
gem install optimizely-sdk
1616
```
1717

18+
### Feature Management Access
19+
To access the Feature Management configuration in the Optimizely dashboard, please contact your Optimizely account executive.
20+
1821
### Using the SDK
1922
See the Optimizely Full Stack [developer documentation](http://developers.optimizely.com/server/reference/index.html) to learn how to set up your first Full Stack project and use the SDK.
2023

lib/optimizely/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
#
1818
module Optimizely
1919
CLIENT_ENGINE = 'ruby-sdk'
20-
VERSION = '2.0.0.beta1'
20+
VERSION = '2.0.0'
2121
end

0 commit comments

Comments
 (0)