amplitude-experiment 1.0.0.beta.12 → 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
  SHA256:
3
- metadata.gz: c1d0e0df050662d2ad81e129d2e4ab162d7555c63546124216f716977828f982
4
- data.tar.gz: 64afa393e382f42bbb4d11d170479bef43c74f02a3eaa43c18a380411fac2628
3
+ metadata.gz: b67557de274413377e21002269cd9f493f3a5188707700de19f7dc2f49afc7fd
4
+ data.tar.gz: c84dbde1419617bda96c2d9bb59a595b8e6375ac8089a6c8ad5c371bd0133be8
5
5
  SHA512:
6
- metadata.gz: bfeb1ffdfb5bddcd145153fecfcf0aeb0b89057cd89e2055e52d8b7da739a79f3ab200015603dd85cc050f94e061141ffe8cfa9057a67a25f41b4042e7646b23
7
- data.tar.gz: 86a6e401ebf724eb1bf082117da9c9b5cfe4baf7835ccdeba811a1ab3feb38772e49bacecbb3fd9b801227b1c1cd604c196d9e56dd282c1cbe455a283e32b3b5
6
+ metadata.gz: fea3bbc7566ccf40c68241a27459264486976dba51b3d83e2fc75507f2e0b64803e9aa15ec9adfcd311c0e49964676556fc582f07d8a7eda1fb6d771001fc9e7
7
+ data.tar.gz: dbcbdcad28bf17b029345aabdc67445830256eda6ec0e240856892bec7f34a8cc45c71c6d7ff59d0368a721daa09b29a86885ce91bc3792051952b7bff84c01e
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).
@@ -0,0 +1,32 @@
1
+ require File.expand_path('lib/experiment/version', __dir__)
2
+ Gem::Specification.new do |spec|
3
+ spec.name = 'amplitude-experiment'
4
+ spec.version = AmplitudeExperiment::VERSION
5
+ spec.authors = ['Amplitude']
6
+ spec.email = ['sdk@amplitude.com']
7
+ spec.summary = 'Amplitude Experiment Ruby Server SDK'
8
+ spec.description = 'Amplitude Experiment Ruby Server SDK'
9
+ spec.homepage = 'https://github.com/amplitude/experiment-ruby-server'
10
+ spec.license = 'MIT'
11
+ spec.platform = Gem::Platform::RUBY
12
+ spec.required_ruby_version = '>= 2.0'
13
+
14
+ spec.files = Dir['README.md',
15
+ 'lib/**/*.rb',
16
+ 'amplitude-experiment.gemspec',
17
+ 'Gemfile',
18
+ 'lib/experiment/local/evaluation/lib/**/*']
19
+ spec.require_paths = ["lib"]
20
+ spec.extra_rdoc_files = ['README.md']
21
+
22
+ spec.add_development_dependency 'rake', '~> 13.0'
23
+ spec.add_development_dependency 'rdoc', '= 6.4'
24
+ spec.add_development_dependency 'rspec', '~> 3.6'
25
+ spec.add_development_dependency 'rubocop', '= 1.21'
26
+ spec.add_development_dependency 'simplecov', '~> 0.21'
27
+ spec.add_development_dependency 'webmock', '~> 3.14'
28
+ spec.add_development_dependency 'yard', '~> 0.9'
29
+ spec.add_development_dependency 'psych', '~> 4.0'
30
+ spec.metadata['rubygems_mfa_required'] = 'false'
31
+ spec.add_runtime_dependency 'ffi', '~> 1.15.5'
32
+ end
@@ -1,6 +1,5 @@
1
1
  require 'uri'
2
2
  require 'logger'
3
- require 'experiment/local/evaluation/evaluation'
4
3
 
5
4
  module AmplitudeExperiment
6
5
  # Main client for fetching variant data.
@@ -10,6 +9,7 @@ module AmplitudeExperiment
10
9
  # @param [String] api_key The environment API Key
11
10
  # @param [LocalEvaluationConfig] config The config object
12
11
  def initialize(api_key, config = nil)
12
+ require 'experiment/local/evaluation/evaluation'
13
13
  @api_key = api_key
14
14
  @config = config || LocalEvaluationConfig.new
15
15
  @cache = InMemoryFlagConfigCache.new(@config.bootstrap)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module AmplitudeExperiment
2
- VERSION = '1.0.0.beta.12'.freeze
2
+ VERSION = '1.0.2'.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.12
4
+ version: 1.0.2
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-29 00:00:00.000000000 Z
11
+ date: 2023-01-27 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
@@ -132,6 +146,7 @@ extra_rdoc_files:
132
146
  files:
133
147
  - Gemfile
134
148
  - README.md
149
+ - amplitude-experiment.gemspec
135
150
  - lib/amplitude-experiment.rb
136
151
  - lib/experiment/cookie.rb
137
152
  - lib/experiment/factory.rb
@@ -171,9 +186,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
186
  version: '2.0'
172
187
  required_rubygems_version: !ruby/object:Gem::Requirement
173
188
  requirements:
174
- - - ">"
189
+ - - ">="
175
190
  - !ruby/object:Gem::Version
176
- version: 1.3.1
191
+ version: '0'
177
192
  requirements: []
178
193
  rubygems_version: 3.1.6
179
194
  signing_key: