optimizely-sdk 2.0.0.beta1 → 2.0.0

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: f57d0b3e13c6c5bc057719cd5fa0689c9b93ade1
4
- data.tar.gz: e67d075ed5fc5e42e41e8a5620e4e038ae3f1afd
3
+ metadata.gz: b913b8bcbd2644300fe6517aea21b9cb927519fe
4
+ data.tar.gz: fab9656efacd4482f667c1b36094d83bcf26ddde
5
5
  SHA512:
6
- metadata.gz: 5fe41284c79ebc016276afcac83a1d87fb6e7a355738c8ff6c9fb38cd4c7d1a0494c44558394170edd380c0dee42c8accc91d67afb300a6d973a33f03762e984
7
- data.tar.gz: 85fa4cb24da1cdd082846b80f4939419023c774e9305d048e9564381e68e4acdf78f76a937885998523afdecf47cce1c09dca3eb7b04ea320c852805d69b44cd
6
+ metadata.gz: 2f16c84ffb903af5a9fadfbd3abc55ad8b2c88229eef21e908a86455d4bd171420a871192b5d0184e94f4b55863f84154be2beacd88cb20478d452d6588b2840
7
+ data.tar.gz: 054ef49bf622b8de3802481d4717667c9bdf75b6ff1a9d220402f4517201e5f66b663f21f59e9a26323cc2f8a13905fba9b84d2717b5c8667fedf05d9da39dec
data/lib/optimizely.rb CHANGED
@@ -319,7 +319,7 @@ module Optimizely
319
319
  attributes
320
320
  ) == true
321
321
  end
322
- enabled_features.sort
322
+ enabled_features
323
323
  end
324
324
 
325
325
  def get_feature_variable_string(feature_flag_key, variable_key, user_id, attributes = nil)
@@ -290,10 +290,8 @@ module Optimizely
290
290
  experiment = get_experiment_from_key(experiment_key)
291
291
  experiment_id = experiment['id'] if experiment
292
292
  # check for nil and empty string experiment ID
293
- if experiment_id.nil? || experiment_id.empty?
294
- # this case is logged in get_experiment_from_key
295
- return nil
296
- end
293
+ # this case is logged in get_experiment_from_key
294
+ return nil if experiment_id.nil? || experiment_id.empty?
297
295
 
298
296
  unless experiment_to_variation_map.key? experiment_id
299
297
  @logger.log(Logger::DEBUG, "No experiment '#{experiment_key}' mapped to user '#{user_id}' "\
@@ -307,10 +305,8 @@ module Optimizely
307
305
  variation_key = variation['key'] if variation
308
306
 
309
307
  # check if the variation exists in the datafile
310
- if variation_key.empty?
311
- # this case is logged in get_variation_from_id
312
- return nil
313
- end
308
+ # this case is logged in get_variation_from_id
309
+ return nil if variation_key.empty?
314
310
 
315
311
  @logger.log(Logger::DEBUG, "Variation '#{variation_key}' is mapped to experiment '#{experiment_key}' "\
316
312
  "and user '#{user_id}' in the forced variation map")
@@ -17,5 +17,5 @@
17
17
  #
18
18
  module Optimizely
19
19
  CLIENT_ENGINE = 'ruby-sdk'
20
- VERSION = '2.0.0.beta1'
20
+ VERSION = '2.0.0'
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimizely-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Optimizely
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-29 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - ">"
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
- version: 1.3.1
155
+ version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 2.6.13