splitclient-rb 1.0.2.wip2 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.txt +6 -0
- data/NEWS +5 -0
- data/README.md +5 -5
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15357c8ecbeecac712cf426a761d72bd1a23450e
|
4
|
+
data.tar.gz: c2f2774800ba0037bb14f6e28e8e0669e9a4b75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21b66ea0e21a0d450b9af6962ec407a505d2433657786f0ca312cb04ba5992010209c31a50d8d82d3c73f6019d4f12b6b14faac2941ff6ae75b3d310a2b2eb0
|
7
|
+
data.tar.gz: cc60309a6b716d736100bb3787df0cabb0a6a4fc3f71be3cbf87315b61c9f5ec154b1197bb2710e2b810f59cdb9ae313206a120ac9ce16bd784c09e80cfa4610
|
data/CHANGES.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
1.0.2
|
2
|
+
- created between_matcher, equal_to_matcher, greater_than_or_equal_to_matcher, less_than_or_equal_to_matcher to support attributes
|
3
|
+
- refactored whitelist_matcher to support attributes
|
4
|
+
- tweaked to drop analytics data if the POST get an error response
|
5
|
+
- added condition to return CONTROL on the deleted features
|
6
|
+
|
1
7
|
1.0.1
|
2
8
|
|
3
9
|
- .splits to .split for local env
|
data/NEWS
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
1.0.2
|
2
|
+
|
3
|
+
Support for all the new matchers including: number comparison with >=, <=, =, between; date comparison with is on or before, is on or after, is on, between; attribute value in a defined set of values.
|
4
|
+
No other major updates for this release.
|
5
|
+
|
1
6
|
1.0.1
|
2
7
|
|
3
8
|
isTreatment was removed from the API
|
data/README.md
CHANGED
@@ -112,14 +112,14 @@ split_client = SplitIoClient::SplitClient.new("your_api_key", options)
|
|
112
112
|
```
|
113
113
|
### Execution
|
114
114
|
---
|
115
|
-
In your application code you just need to call the
|
115
|
+
In your application code you just need to call the get_treatment method with the required parameters for key and feature name
|
116
116
|
```ruby
|
117
|
-
split_client.
|
117
|
+
split_client.get_treatment('user_id','feature_name', {attr: 'val'})
|
118
118
|
```
|
119
119
|
|
120
120
|
For example
|
121
121
|
```ruby
|
122
|
-
if split_client.
|
122
|
+
if split_client.get_treatment('employee_user_01','view_main_list', {age: 35})
|
123
123
|
my_app.display_main_list
|
124
124
|
end
|
125
125
|
```
|
@@ -132,13 +132,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
132
132
|
|
133
133
|
## Coverage
|
134
134
|
|
135
|
-
The gem uses rspec for unit testing. Under the default `/spec` folder you will find the files for the unit tests and the specs helper file ( spec_helper.rb ). If a new spec file with new unit tests is required you just simply need to create it under the spec
|
135
|
+
The gem uses rspec for unit testing. Under the default `/spec` folder you will find the files for the unit tests and the specs helper file ( spec_helper.rb ). If a new spec file with new unit tests is required you just simply need to create it under the spec folder and all its test will be executed on the next rspec execution.
|
136
136
|
|
137
137
|
To run the suite of unit tests a rake task is provided. It's executed with the following command:
|
138
138
|
|
139
139
|
$ rake spec
|
140
140
|
|
141
|
-
Also, simplecov is used for coverage reporting. After the execution of the rake
|
141
|
+
Also, simplecov is used for coverage reporting. After the execution of the rake task it will create the `/coverage` folder with coverage reports in pretty HTML format.
|
142
142
|
Right now, the code coverage of the gem is at about 95%.
|
143
143
|
|
144
144
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splitclient-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.2
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Split Software
|
@@ -253,9 +253,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
253
|
version: '0'
|
254
254
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
255
|
requirements:
|
256
|
-
- - "
|
256
|
+
- - ">="
|
257
257
|
- !ruby/object:Gem::Version
|
258
|
-
version:
|
258
|
+
version: '0'
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
261
|
rubygems_version: 2.2.2
|