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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9026140c8f832a3b0c0c0e54e60afa818370a5fb
4
- data.tar.gz: a6d1ec36e7b7f3700731651f2bfd623860ac42a6
3
+ metadata.gz: 15357c8ecbeecac712cf426a761d72bd1a23450e
4
+ data.tar.gz: c2f2774800ba0037bb14f6e28e8e0669e9a4b75f
5
5
  SHA512:
6
- metadata.gz: a72fc9d0a3936bd20e7d7bcde2c10465cde57abc40fdbae090bfd5748c38840f13bfbbca6f7a0752ecb0d70e763a60c2f7a25461302df753fb35896e4a9de17f
7
- data.tar.gz: f314f39d42ab4755bc8bd57cd54cca7a6193a036a35ca5ae534950462bdf5a7514837d8865f28774701e9c7be1c3b521c02803e9bfb643f97daa5152ca6c79aa
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 is_on? method with the required parameters for key and feature name
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.is_treatment?('key','feature_name','on')
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.is_treatment?('employee_user_01','view_main_list','on')
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 foleder and all its test will be executed on the next rspec execution.
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 tastk it will create the `/coverage` folder with coverage reports in pretty HTML format.
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
 
@@ -1,3 +1,3 @@
1
1
  module SplitIoClient
2
- VERSION = '1.0.2.wip2'
2
+ VERSION = '1.0.2'
3
3
  end
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.wip2
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: 1.3.1
258
+ version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
261
  rubygems_version: 2.2.2