amplitude-experiment 1.0.0.beta.11 → 1.0.1

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
  SHA256:
3
- metadata.gz: c4ba4f5f08e2f00936b54e27ea8c3fdcc5b751b2d0f6bd7f91c8597fecdad0e1
4
- data.tar.gz: 53c70aac85b3931c148ef89765f02fbfbd9b54b43556772e1d01e6ea825efd7c
3
+ metadata.gz: 264b075c9fe812647617e67dc99c5a6baf91e4951e32617a8da612570f43001b
4
+ data.tar.gz: c197188d0084bb00618e578e57bcd0fc0235517218b718ce04d128b3a61c2d58
5
5
  SHA512:
6
- metadata.gz: 7d2c1a19145295220f8c1f13052a4e2895599bea8041677928456da280f10159bd821181bced3a8c9ccd5f8196b915a1e878d1fb1dacaf4f64374cb292140a17
7
- data.tar.gz: a738154c1d73845df4c1addc15442458dce828b4e8cc39e4356ebbd62a4f3726b3753f3a0a155f3fb0829dc8e5674c88e275dc8576759b568a3116e31d00a368
6
+ metadata.gz: 3a5e609cd8a605fe6612c9979840e5dd57ed4994aece4f559c51ac2ed7cb881916edbc1428eec0f1b2f373e2423c262293a6dee0005ed848722125a7167d7ec0
7
+ data.tar.gz: ef2db5134be745c70e61fd5f9647512f1202966d509f3785409ae540d6846d0013b55f694b84881b933b56b4c2489ab028939f63c629db26dff77ef45340cb33
data/README.md CHANGED
@@ -96,5 +96,7 @@ Please visit our :100:[Developer Center](https://www.docs.developers.amplitude.c
96
96
 
97
97
  See our [Experiment Ruby SDK Docs](https://amplitude.github.io/experiment-ruby-server/) for a list and description of all available SDK methods.
98
98
 
99
+ See our [Local Evaluation Repo](https://github.com/amplitude/experiment-evaluation) for more details about local evaluation binary logic.
100
+
99
101
  ## Need Help?
100
102
  If you have any problems or issues over our SDK, feel free to [create a github issue](https://github.com/amplitude/experiments-ruby-server/issues/new) or submit a request on [Amplitude Help](https://help.amplitude.com/hc/en-us/requests/new).
@@ -44,7 +44,7 @@ module AmplitudeExperiment
44
44
  user_str = user.to_json
45
45
  @logger.debug("[Experiment] Evaluate: User: #{user_str} - Rules: #{flag_configs_str}") if @config.debug
46
46
  result_json = evaluation(flag_configs_str, user_str)
47
- @logger.debug(`[Experiment] evaluate - result: #{variants}`) if @config.debug
47
+ @logger.debug("[Experiment] evaluate - result: #{variants}") if @config.debug
48
48
  result = JSON.parse(result_json)
49
49
  variants = {}
50
50
  result.each do |key, value|
@@ -10,7 +10,7 @@ module EvaluationInterop
10
10
  ffi_lib ["#{evaluation_dir}/lib/macosX64/libevaluation_interop.dylib"] if host_os =~ /darwin|mac os/ && cpu =~ /x86_64/
11
11
  ffi_lib ["#{evaluation_dir}/lib/macosArm64/libevaluation_interop.dylib"] if host_os =~ /darwin|mac os/ && cpu =~ /arm64/
12
12
  ffi_lib ["#{evaluation_dir}/lib/linuxX64/libevaluation_interop.so"] if host_os =~ /linux/ && cpu =~ /x86_64/
13
- ffi_lib ["#{evaluation_dir}/lib/linuxArm64/libevaluation_interop.so"] if host_os =~ /linux/ && cpu =~ /arm64/
13
+ ffi_lib ["#{evaluation_dir}/lib/linuxArm64/libevaluation_interop.so"] if host_os =~ /linux/ && cpu =~ /arm64|aarch64/
14
14
 
15
15
  class Root < FFI::Struct
16
16
  layout :evaluate, callback([:string, :string], :pointer)
@@ -25,7 +25,7 @@ module AmplitudeExperiment
25
25
  }
26
26
  request = Net::HTTP::Get.new(@uri, headers)
27
27
  response = @http.request(request)
28
- raise `flagConfigs - received error response: #{response.code}: #{response.body}` unless response.is_a?(Net::HTTPOK)
28
+ raise "flagConfigs - received error response: #{response.code}: #{response.body}" unless response.is_a?(Net::HTTPOK)
29
29
 
30
30
  flag_configs = parse(response.body)
31
31
  @logger.debug("[Experiment] Fetch flag configs: #{request.body}") if @debug
@@ -1,3 +1,3 @@
1
1
  module AmplitudeExperiment
2
- VERSION = '1.0.0.beta.11'.freeze
2
+ VERSION = '1.0.1'.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.11
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amplitude
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-19 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '6.0'
33
+ version: '6.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '6.0'
40
+ version: '6.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1.21'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '1.21'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: psych
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: ffi
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -171,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
185
  version: '2.0'
172
186
  required_rubygems_version: !ruby/object:Gem::Requirement
173
187
  requirements:
174
- - - ">"
188
+ - - ">="
175
189
  - !ruby/object:Gem::Version
176
- version: 1.3.1
190
+ version: '0'
177
191
  requirements: []
178
192
  rubygems_version: 3.1.6
179
193
  signing_key: