amplitude-experiment 1.0.0.beta.7 → 1.0.0.beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c1c474415a95c82dd30feb5730a517d3df489f39ac6b307583a66d20b844fc3
4
- data.tar.gz: f215b72c1dc816aa205c68d3b9fac5b4685ca4ee90cacc035f6f2106bd1cf9eb
3
+ metadata.gz: e459fb40e52ad2e73e4308306f629ed790621f63d6a24d6d457a20a0692a657e
4
+ data.tar.gz: d9b2773a27d17f1af32a658e79693e2e71f548a2b42e7e9e6b54d09b7688c0b8
5
5
  SHA512:
6
- metadata.gz: e55171f2998fcebf9f9a49a785445e1731b0b86a0d98a5b0ff8111702cb7a5c03df8c3e641492acaa30bb45b3750fc237c79d6a7ee964424cd8ebb5061180835
7
- data.tar.gz: 3ec5bfd97ed595841541074b9f7079e94a7b0452a8b53ecdd722dfd18956ed40f12d26503c04d6a9a84ae2ec2c9d4119dea0420b4566bb591f959296710df080
6
+ metadata.gz: 86c4c85b7772f25e60cb0049a4e08fb378741da3c9ccf5984af95c200f28ab515b7281062c7181bfbe87514d57c9e69376edaf82150de3535f7c659a2bc91d13
7
+ data.tar.gz: 5b9ff84a65e411e5bbe6ea491a01d5ca8c595f2070e4176368b834cb01ea8409148520a338f6077e176eb2ad16e62bea9edf8afa7c7f7fc75651b4cacadf7702
@@ -0,0 +1,82 @@
1
+ #ifndef KONAN_LIBEVALUATION_INTEROP_H
2
+ #define KONAN_LIBEVALUATION_INTEROP_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+ #ifdef __cplusplus
7
+ typedef bool libevaluation_interop_KBoolean;
8
+ #else
9
+ typedef _Bool libevaluation_interop_KBoolean;
10
+ #endif
11
+ typedef unsigned short libevaluation_interop_KChar;
12
+ typedef signed char libevaluation_interop_KByte;
13
+ typedef short libevaluation_interop_KShort;
14
+ typedef int libevaluation_interop_KInt;
15
+ typedef long long libevaluation_interop_KLong;
16
+ typedef unsigned char libevaluation_interop_KUByte;
17
+ typedef unsigned short libevaluation_interop_KUShort;
18
+ typedef unsigned int libevaluation_interop_KUInt;
19
+ typedef unsigned long long libevaluation_interop_KULong;
20
+ typedef float libevaluation_interop_KFloat;
21
+ typedef double libevaluation_interop_KDouble;
22
+ typedef float __attribute__ ((__vector_size__ (16))) libevaluation_interop_KVector128;
23
+ typedef void* libevaluation_interop_KNativePtr;
24
+ struct libevaluation_interop_KType;
25
+ typedef struct libevaluation_interop_KType libevaluation_interop_KType;
26
+
27
+ typedef struct {
28
+ libevaluation_interop_KNativePtr pinned;
29
+ } libevaluation_interop_kref_kotlin_Byte;
30
+ typedef struct {
31
+ libevaluation_interop_KNativePtr pinned;
32
+ } libevaluation_interop_kref_kotlin_Short;
33
+ typedef struct {
34
+ libevaluation_interop_KNativePtr pinned;
35
+ } libevaluation_interop_kref_kotlin_Int;
36
+ typedef struct {
37
+ libevaluation_interop_KNativePtr pinned;
38
+ } libevaluation_interop_kref_kotlin_Long;
39
+ typedef struct {
40
+ libevaluation_interop_KNativePtr pinned;
41
+ } libevaluation_interop_kref_kotlin_Float;
42
+ typedef struct {
43
+ libevaluation_interop_KNativePtr pinned;
44
+ } libevaluation_interop_kref_kotlin_Double;
45
+ typedef struct {
46
+ libevaluation_interop_KNativePtr pinned;
47
+ } libevaluation_interop_kref_kotlin_Char;
48
+ typedef struct {
49
+ libevaluation_interop_KNativePtr pinned;
50
+ } libevaluation_interop_kref_kotlin_Boolean;
51
+ typedef struct {
52
+ libevaluation_interop_KNativePtr pinned;
53
+ } libevaluation_interop_kref_kotlin_Unit;
54
+
55
+
56
+ typedef struct {
57
+ /* Service functions. */
58
+ void (*DisposeStablePointer)(libevaluation_interop_KNativePtr ptr);
59
+ void (*DisposeString)(const char* string);
60
+ libevaluation_interop_KBoolean (*IsInstance)(libevaluation_interop_KNativePtr ref, const libevaluation_interop_KType* type);
61
+ libevaluation_interop_kref_kotlin_Byte (*createNullableByte)(libevaluation_interop_KByte);
62
+ libevaluation_interop_kref_kotlin_Short (*createNullableShort)(libevaluation_interop_KShort);
63
+ libevaluation_interop_kref_kotlin_Int (*createNullableInt)(libevaluation_interop_KInt);
64
+ libevaluation_interop_kref_kotlin_Long (*createNullableLong)(libevaluation_interop_KLong);
65
+ libevaluation_interop_kref_kotlin_Float (*createNullableFloat)(libevaluation_interop_KFloat);
66
+ libevaluation_interop_kref_kotlin_Double (*createNullableDouble)(libevaluation_interop_KDouble);
67
+ libevaluation_interop_kref_kotlin_Char (*createNullableChar)(libevaluation_interop_KChar);
68
+ libevaluation_interop_kref_kotlin_Boolean (*createNullableBoolean)(libevaluation_interop_KBoolean);
69
+ libevaluation_interop_kref_kotlin_Unit (*createNullableUnit)(void);
70
+
71
+ /* User functions. */
72
+ struct {
73
+ struct {
74
+ const char* (*evaluate)(const char* rules, const char* user);
75
+ } root;
76
+ } kotlin;
77
+ } libevaluation_interop_ExportedSymbols;
78
+ extern libevaluation_interop_ExportedSymbols* libevaluation_interop_symbols(void);
79
+ #ifdef __cplusplus
80
+ } /* extern "C" */
81
+ #endif
82
+ #endif /* KONAN_LIBEVALUATION_INTEROP_H */
@@ -0,0 +1,82 @@
1
+ #ifndef KONAN_LIBEVALUATION_INTEROP_H
2
+ #define KONAN_LIBEVALUATION_INTEROP_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+ #ifdef __cplusplus
7
+ typedef bool libevaluation_interop_KBoolean;
8
+ #else
9
+ typedef _Bool libevaluation_interop_KBoolean;
10
+ #endif
11
+ typedef unsigned short libevaluation_interop_KChar;
12
+ typedef signed char libevaluation_interop_KByte;
13
+ typedef short libevaluation_interop_KShort;
14
+ typedef int libevaluation_interop_KInt;
15
+ typedef long long libevaluation_interop_KLong;
16
+ typedef unsigned char libevaluation_interop_KUByte;
17
+ typedef unsigned short libevaluation_interop_KUShort;
18
+ typedef unsigned int libevaluation_interop_KUInt;
19
+ typedef unsigned long long libevaluation_interop_KULong;
20
+ typedef float libevaluation_interop_KFloat;
21
+ typedef double libevaluation_interop_KDouble;
22
+ typedef float __attribute__ ((__vector_size__ (16))) libevaluation_interop_KVector128;
23
+ typedef void* libevaluation_interop_KNativePtr;
24
+ struct libevaluation_interop_KType;
25
+ typedef struct libevaluation_interop_KType libevaluation_interop_KType;
26
+
27
+ typedef struct {
28
+ libevaluation_interop_KNativePtr pinned;
29
+ } libevaluation_interop_kref_kotlin_Byte;
30
+ typedef struct {
31
+ libevaluation_interop_KNativePtr pinned;
32
+ } libevaluation_interop_kref_kotlin_Short;
33
+ typedef struct {
34
+ libevaluation_interop_KNativePtr pinned;
35
+ } libevaluation_interop_kref_kotlin_Int;
36
+ typedef struct {
37
+ libevaluation_interop_KNativePtr pinned;
38
+ } libevaluation_interop_kref_kotlin_Long;
39
+ typedef struct {
40
+ libevaluation_interop_KNativePtr pinned;
41
+ } libevaluation_interop_kref_kotlin_Float;
42
+ typedef struct {
43
+ libevaluation_interop_KNativePtr pinned;
44
+ } libevaluation_interop_kref_kotlin_Double;
45
+ typedef struct {
46
+ libevaluation_interop_KNativePtr pinned;
47
+ } libevaluation_interop_kref_kotlin_Char;
48
+ typedef struct {
49
+ libevaluation_interop_KNativePtr pinned;
50
+ } libevaluation_interop_kref_kotlin_Boolean;
51
+ typedef struct {
52
+ libevaluation_interop_KNativePtr pinned;
53
+ } libevaluation_interop_kref_kotlin_Unit;
54
+
55
+
56
+ typedef struct {
57
+ /* Service functions. */
58
+ void (*DisposeStablePointer)(libevaluation_interop_KNativePtr ptr);
59
+ void (*DisposeString)(const char* string);
60
+ libevaluation_interop_KBoolean (*IsInstance)(libevaluation_interop_KNativePtr ref, const libevaluation_interop_KType* type);
61
+ libevaluation_interop_kref_kotlin_Byte (*createNullableByte)(libevaluation_interop_KByte);
62
+ libevaluation_interop_kref_kotlin_Short (*createNullableShort)(libevaluation_interop_KShort);
63
+ libevaluation_interop_kref_kotlin_Int (*createNullableInt)(libevaluation_interop_KInt);
64
+ libevaluation_interop_kref_kotlin_Long (*createNullableLong)(libevaluation_interop_KLong);
65
+ libevaluation_interop_kref_kotlin_Float (*createNullableFloat)(libevaluation_interop_KFloat);
66
+ libevaluation_interop_kref_kotlin_Double (*createNullableDouble)(libevaluation_interop_KDouble);
67
+ libevaluation_interop_kref_kotlin_Char (*createNullableChar)(libevaluation_interop_KChar);
68
+ libevaluation_interop_kref_kotlin_Boolean (*createNullableBoolean)(libevaluation_interop_KBoolean);
69
+ libevaluation_interop_kref_kotlin_Unit (*createNullableUnit)(void);
70
+
71
+ /* User functions. */
72
+ struct {
73
+ struct {
74
+ const char* (*evaluate)(const char* rules, const char* user);
75
+ } root;
76
+ } kotlin;
77
+ } libevaluation_interop_ExportedSymbols;
78
+ extern libevaluation_interop_ExportedSymbols* libevaluation_interop_symbols(void);
79
+ #ifdef __cplusplus
80
+ } /* extern "C" */
81
+ #endif
82
+ #endif /* KONAN_LIBEVALUATION_INTEROP_H */
@@ -0,0 +1,82 @@
1
+ #ifndef KONAN_LIBEVALUATION_INTEROP_H
2
+ #define KONAN_LIBEVALUATION_INTEROP_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+ #ifdef __cplusplus
7
+ typedef bool libevaluation_interop_KBoolean;
8
+ #else
9
+ typedef _Bool libevaluation_interop_KBoolean;
10
+ #endif
11
+ typedef unsigned short libevaluation_interop_KChar;
12
+ typedef signed char libevaluation_interop_KByte;
13
+ typedef short libevaluation_interop_KShort;
14
+ typedef int libevaluation_interop_KInt;
15
+ typedef long long libevaluation_interop_KLong;
16
+ typedef unsigned char libevaluation_interop_KUByte;
17
+ typedef unsigned short libevaluation_interop_KUShort;
18
+ typedef unsigned int libevaluation_interop_KUInt;
19
+ typedef unsigned long long libevaluation_interop_KULong;
20
+ typedef float libevaluation_interop_KFloat;
21
+ typedef double libevaluation_interop_KDouble;
22
+ typedef float __attribute__ ((__vector_size__ (16))) libevaluation_interop_KVector128;
23
+ typedef void* libevaluation_interop_KNativePtr;
24
+ struct libevaluation_interop_KType;
25
+ typedef struct libevaluation_interop_KType libevaluation_interop_KType;
26
+
27
+ typedef struct {
28
+ libevaluation_interop_KNativePtr pinned;
29
+ } libevaluation_interop_kref_kotlin_Byte;
30
+ typedef struct {
31
+ libevaluation_interop_KNativePtr pinned;
32
+ } libevaluation_interop_kref_kotlin_Short;
33
+ typedef struct {
34
+ libevaluation_interop_KNativePtr pinned;
35
+ } libevaluation_interop_kref_kotlin_Int;
36
+ typedef struct {
37
+ libevaluation_interop_KNativePtr pinned;
38
+ } libevaluation_interop_kref_kotlin_Long;
39
+ typedef struct {
40
+ libevaluation_interop_KNativePtr pinned;
41
+ } libevaluation_interop_kref_kotlin_Float;
42
+ typedef struct {
43
+ libevaluation_interop_KNativePtr pinned;
44
+ } libevaluation_interop_kref_kotlin_Double;
45
+ typedef struct {
46
+ libevaluation_interop_KNativePtr pinned;
47
+ } libevaluation_interop_kref_kotlin_Char;
48
+ typedef struct {
49
+ libevaluation_interop_KNativePtr pinned;
50
+ } libevaluation_interop_kref_kotlin_Boolean;
51
+ typedef struct {
52
+ libevaluation_interop_KNativePtr pinned;
53
+ } libevaluation_interop_kref_kotlin_Unit;
54
+
55
+
56
+ typedef struct {
57
+ /* Service functions. */
58
+ void (*DisposeStablePointer)(libevaluation_interop_KNativePtr ptr);
59
+ void (*DisposeString)(const char* string);
60
+ libevaluation_interop_KBoolean (*IsInstance)(libevaluation_interop_KNativePtr ref, const libevaluation_interop_KType* type);
61
+ libevaluation_interop_kref_kotlin_Byte (*createNullableByte)(libevaluation_interop_KByte);
62
+ libevaluation_interop_kref_kotlin_Short (*createNullableShort)(libevaluation_interop_KShort);
63
+ libevaluation_interop_kref_kotlin_Int (*createNullableInt)(libevaluation_interop_KInt);
64
+ libevaluation_interop_kref_kotlin_Long (*createNullableLong)(libevaluation_interop_KLong);
65
+ libevaluation_interop_kref_kotlin_Float (*createNullableFloat)(libevaluation_interop_KFloat);
66
+ libevaluation_interop_kref_kotlin_Double (*createNullableDouble)(libevaluation_interop_KDouble);
67
+ libevaluation_interop_kref_kotlin_Char (*createNullableChar)(libevaluation_interop_KChar);
68
+ libevaluation_interop_kref_kotlin_Boolean (*createNullableBoolean)(libevaluation_interop_KBoolean);
69
+ libevaluation_interop_kref_kotlin_Unit (*createNullableUnit)(void);
70
+
71
+ /* User functions. */
72
+ struct {
73
+ struct {
74
+ const char* (*evaluate)(const char* rules, const char* user);
75
+ } root;
76
+ } kotlin;
77
+ } libevaluation_interop_ExportedSymbols;
78
+ extern libevaluation_interop_ExportedSymbols* libevaluation_interop_symbols(void);
79
+ #ifdef __cplusplus
80
+ } /* extern "C" */
81
+ #endif
82
+ #endif /* KONAN_LIBEVALUATION_INTEROP_H */
@@ -0,0 +1,82 @@
1
+ #ifndef KONAN_LIBEVALUATION_INTEROP_H
2
+ #define KONAN_LIBEVALUATION_INTEROP_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+ #ifdef __cplusplus
7
+ typedef bool libevaluation_interop_KBoolean;
8
+ #else
9
+ typedef _Bool libevaluation_interop_KBoolean;
10
+ #endif
11
+ typedef unsigned short libevaluation_interop_KChar;
12
+ typedef signed char libevaluation_interop_KByte;
13
+ typedef short libevaluation_interop_KShort;
14
+ typedef int libevaluation_interop_KInt;
15
+ typedef long long libevaluation_interop_KLong;
16
+ typedef unsigned char libevaluation_interop_KUByte;
17
+ typedef unsigned short libevaluation_interop_KUShort;
18
+ typedef unsigned int libevaluation_interop_KUInt;
19
+ typedef unsigned long long libevaluation_interop_KULong;
20
+ typedef float libevaluation_interop_KFloat;
21
+ typedef double libevaluation_interop_KDouble;
22
+ typedef float __attribute__ ((__vector_size__ (16))) libevaluation_interop_KVector128;
23
+ typedef void* libevaluation_interop_KNativePtr;
24
+ struct libevaluation_interop_KType;
25
+ typedef struct libevaluation_interop_KType libevaluation_interop_KType;
26
+
27
+ typedef struct {
28
+ libevaluation_interop_KNativePtr pinned;
29
+ } libevaluation_interop_kref_kotlin_Byte;
30
+ typedef struct {
31
+ libevaluation_interop_KNativePtr pinned;
32
+ } libevaluation_interop_kref_kotlin_Short;
33
+ typedef struct {
34
+ libevaluation_interop_KNativePtr pinned;
35
+ } libevaluation_interop_kref_kotlin_Int;
36
+ typedef struct {
37
+ libevaluation_interop_KNativePtr pinned;
38
+ } libevaluation_interop_kref_kotlin_Long;
39
+ typedef struct {
40
+ libevaluation_interop_KNativePtr pinned;
41
+ } libevaluation_interop_kref_kotlin_Float;
42
+ typedef struct {
43
+ libevaluation_interop_KNativePtr pinned;
44
+ } libevaluation_interop_kref_kotlin_Double;
45
+ typedef struct {
46
+ libevaluation_interop_KNativePtr pinned;
47
+ } libevaluation_interop_kref_kotlin_Char;
48
+ typedef struct {
49
+ libevaluation_interop_KNativePtr pinned;
50
+ } libevaluation_interop_kref_kotlin_Boolean;
51
+ typedef struct {
52
+ libevaluation_interop_KNativePtr pinned;
53
+ } libevaluation_interop_kref_kotlin_Unit;
54
+
55
+
56
+ typedef struct {
57
+ /* Service functions. */
58
+ void (*DisposeStablePointer)(libevaluation_interop_KNativePtr ptr);
59
+ void (*DisposeString)(const char* string);
60
+ libevaluation_interop_KBoolean (*IsInstance)(libevaluation_interop_KNativePtr ref, const libevaluation_interop_KType* type);
61
+ libevaluation_interop_kref_kotlin_Byte (*createNullableByte)(libevaluation_interop_KByte);
62
+ libevaluation_interop_kref_kotlin_Short (*createNullableShort)(libevaluation_interop_KShort);
63
+ libevaluation_interop_kref_kotlin_Int (*createNullableInt)(libevaluation_interop_KInt);
64
+ libevaluation_interop_kref_kotlin_Long (*createNullableLong)(libevaluation_interop_KLong);
65
+ libevaluation_interop_kref_kotlin_Float (*createNullableFloat)(libevaluation_interop_KFloat);
66
+ libevaluation_interop_kref_kotlin_Double (*createNullableDouble)(libevaluation_interop_KDouble);
67
+ libevaluation_interop_kref_kotlin_Char (*createNullableChar)(libevaluation_interop_KChar);
68
+ libevaluation_interop_kref_kotlin_Boolean (*createNullableBoolean)(libevaluation_interop_KBoolean);
69
+ libevaluation_interop_kref_kotlin_Unit (*createNullableUnit)(void);
70
+
71
+ /* User functions. */
72
+ struct {
73
+ struct {
74
+ const char* (*evaluate)(const char* rules, const char* user);
75
+ } root;
76
+ } kotlin;
77
+ } libevaluation_interop_ExportedSymbols;
78
+ extern libevaluation_interop_ExportedSymbols* libevaluation_interop_symbols(void);
79
+ #ifdef __cplusplus
80
+ } /* extern "C" */
81
+ #endif
82
+ #endif /* KONAN_LIBEVALUATION_INTEROP_H */
@@ -20,11 +20,12 @@ module AmplitudeExperiment
20
20
  # fetch flag_configs
21
21
  headers = {
22
22
  'Authorization' => "Api-Key #{@api_key}",
23
- 'Content-Type' => 'application/json;charset=utf-8'
23
+ 'Content-Type' => 'application/json;charset=utf-8',
24
+ 'X-Amp-Exp-Library' => "experiment-ruby-server/#{VERSION}"
24
25
  }
25
26
  request = Net::HTTP::Get.new(@uri, headers)
26
27
  response = @http.request(request)
27
- raise `flagConfigs - received error response: #{response.status}: #{response.body}` unless response.is_a?(Net::HTTPOK)
28
+ raise `flagConfigs - received error response: #{response.code}: #{response.body}` unless response.is_a?(Net::HTTPOK)
28
29
 
29
30
  flag_configs = parse(response.body)
30
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.7'.freeze
2
+ VERSION = '1.0.0.beta.10'.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.7
4
+ version: 1.0.0.beta.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amplitude
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-23 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -139,6 +139,14 @@ files:
139
139
  - lib/experiment/local/client.rb
140
140
  - lib/experiment/local/config.rb
141
141
  - lib/experiment/local/evaluation/evaluation.rb
142
+ - lib/experiment/local/evaluation/lib/linuxArm64/libevaluation_interop.so
143
+ - lib/experiment/local/evaluation/lib/linuxArm64/libevaluation_interop_api.h
144
+ - lib/experiment/local/evaluation/lib/linuxX64/libevaluation_interop.so
145
+ - lib/experiment/local/evaluation/lib/linuxX64/libevaluation_interop_api.h
146
+ - lib/experiment/local/evaluation/lib/macosArm64/libevaluation_interop.dylib
147
+ - lib/experiment/local/evaluation/lib/macosArm64/libevaluation_interop_api.h
148
+ - lib/experiment/local/evaluation/lib/macosX64/libevaluation_interop.dylib
149
+ - lib/experiment/local/evaluation/lib/macosX64/libevaluation_interop_api.h
142
150
  - lib/experiment/local/fetcher.rb
143
151
  - lib/experiment/local/poller.rb
144
152
  - lib/experiment/persistent_http_client.rb