amplitude-experiment 1.0.0.beta.4 → 1.0.0.beta.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/amplitude-experiment.rb +12 -1
- data/lib/experiment/client.rb +1 -1
- data/lib/experiment/config.rb +1 -1
- data/lib/experiment/cookie.rb +1 -1
- data/lib/experiment/factory.rb +1 -1
- data/lib/experiment/persistent_http_client.rb +1 -1
- data/lib/experiment/user.rb +1 -1
- data/lib/experiment/variant.rb +1 -1
- data/lib/experiment/version.rb +2 -2
- metadata +2 -3
- data/lib/experiment.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eaaabdc2596c108c080f7e30686fa14064c3f2ff050a18274cba34ad547b0b1
|
4
|
+
data.tar.gz: 7e370913bfc802a4a1c3168b99523ceff72965e36667cc8f13844e2f6abc1507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42fa7bb1dbdca51111bd7370bd3e3d1b1f108aa29db8ba79de54b0027bfdc4f7f38b3d7cb149be491a10b01d2fbe2d1b923337aec2e0838e7d5cba6731993657
|
7
|
+
data.tar.gz: 16ee04fe4452383bf9a5b671b97222343cd224256a9be6527e0fa6df3299b72251e732efc55f0a494542096da30503332fae64b69e581f5a1b521a5286401805
|
data/README.md
CHANGED
@@ -33,10 +33,10 @@ require 'amplitude-experiment'
|
|
33
33
|
apiKey = 'YOUR-API-KEY'
|
34
34
|
|
35
35
|
# (2) Initialize the experiment client
|
36
|
-
experiment =
|
36
|
+
experiment = AmplitudeExperiment.init(api_key)
|
37
37
|
|
38
38
|
# (3) Fetch variants for a user
|
39
|
-
user =
|
39
|
+
user = AmplitudeExperiment::User.new(user_id: 'user@company.com', device_id: 'abcezas123', user_properties: {'premium' => true})
|
40
40
|
|
41
41
|
# (4) Lookup a flag's variant
|
42
42
|
#
|
data/lib/amplitude-experiment.rb
CHANGED
@@ -1 +1,12 @@
|
|
1
|
-
require 'experiment'
|
1
|
+
require 'experiment/version'
|
2
|
+
require 'experiment/config'
|
3
|
+
require 'experiment/cookie'
|
4
|
+
require 'experiment/user'
|
5
|
+
require 'experiment/variant'
|
6
|
+
require 'experiment/factory'
|
7
|
+
require 'experiment/persistent_http_client'
|
8
|
+
require 'experiment/client'
|
9
|
+
|
10
|
+
# Amplitude Experiment Module
|
11
|
+
module AmplitudeExperiment
|
12
|
+
end
|
data/lib/experiment/client.rb
CHANGED
data/lib/experiment/config.rb
CHANGED
data/lib/experiment/cookie.rb
CHANGED
data/lib/experiment/factory.rb
CHANGED
data/lib/experiment/user.rb
CHANGED
data/lib/experiment/variant.rb
CHANGED
data/lib/experiment/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = '1.0.0.beta.
|
1
|
+
module AmplitudeExperiment
|
2
|
+
VERSION = '1.0.0.beta.5'.freeze
|
3
3
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amplitude-experiment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amplitude
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -119,7 +119,6 @@ files:
|
|
119
119
|
- Gemfile
|
120
120
|
- README.md
|
121
121
|
- lib/amplitude-experiment.rb
|
122
|
-
- lib/experiment.rb
|
123
122
|
- lib/experiment/client.rb
|
124
123
|
- lib/experiment/config.rb
|
125
124
|
- lib/experiment/cookie.rb
|
data/lib/experiment.rb
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'experiment/version'
|
2
|
-
require 'experiment/config'
|
3
|
-
require 'experiment/cookie'
|
4
|
-
require 'experiment/user'
|
5
|
-
require 'experiment/variant'
|
6
|
-
require 'experiment/factory'
|
7
|
-
require 'experiment/persistent_http_client'
|
8
|
-
require 'experiment/client'
|
9
|
-
|
10
|
-
# Amplitude Experiment Module
|
11
|
-
module Experiment
|
12
|
-
end
|