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 +4 -4
- data/lib/optimizely.rb +1 -1
- data/lib/optimizely/project_config.rb +4 -8
- data/lib/optimizely/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b913b8bcbd2644300fe6517aea21b9cb927519fe
|
4
|
+
data.tar.gz: fab9656efacd4482f667c1b36094d83bcf26ddde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f16c84ffb903af5a9fadfbd3abc55ad8b2c88229eef21e908a86455d4bd171420a871192b5d0184e94f4b55863f84154be2beacd88cb20478d452d6588b2840
|
7
|
+
data.tar.gz: 054ef49bf622b8de3802481d4717667c9bdf75b6ff1a9d220402f4517201e5f66b663f21f59e9a26323cc2f8a13905fba9b84d2717b5c8667fedf05d9da39dec
|
data/lib/optimizely.rb
CHANGED
@@ -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
|
-
|
294
|
-
|
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
|
-
|
311
|
-
|
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")
|
data/lib/optimizely/version.rb
CHANGED
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
|
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-
|
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:
|
155
|
+
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 2.6.13
|