amplitude-experiment 1.0.1 → 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: 264b075c9fe812647617e67dc99c5a6baf91e4951e32617a8da612570f43001b
4
- data.tar.gz: c197188d0084bb00618e578e57bcd0fc0235517218b718ce04d128b3a61c2d58
3
+ metadata.gz: b67557de274413377e21002269cd9f493f3a5188707700de19f7dc2f49afc7fd
4
+ data.tar.gz: c84dbde1419617bda96c2d9bb59a595b8e6375ac8089a6c8ad5c371bd0133be8
5
5
  SHA512:
6
- metadata.gz: 3a5e609cd8a605fe6612c9979840e5dd57ed4994aece4f559c51ac2ed7cb881916edbc1428eec0f1b2f373e2423c262293a6dee0005ed848722125a7167d7ec0
7
- data.tar.gz: ef2db5134be745c70e61fd5f9647512f1202966d509f3785409ae540d6846d0013b55f694b84881b933b56b4c2489ab028939f63c629db26dff77ef45340cb33
6
+ metadata.gz: fea3bbc7566ccf40c68241a27459264486976dba51b3d83e2fc75507f2e0b64803e9aa15ec9adfcd311c0e49964676556fc582f07d8a7eda1fb6d771001fc9e7
7
+ data.tar.gz: dbcbdcad28bf17b029345aabdc67445830256eda6ec0e240856892bec7f34a8cc45c71c6d7ff59d0368a721daa09b29a86885ce91bc3792051952b7bff84c01e
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module AmplitudeExperiment
2
- VERSION = '1.0.1'.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.1
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-12-12 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
@@ -146,6 +146,7 @@ extra_rdoc_files:
146
146
  files:
147
147
  - Gemfile
148
148
  - README.md
149
+ - amplitude-experiment.gemspec
149
150
  - lib/amplitude-experiment.rb
150
151
  - lib/experiment/cookie.rb
151
152
  - lib/experiment/factory.rb