mparticle 1.0.4 → 1.0.5
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 +5 -5
- data/Gemfile +4 -0
- data/Gemfile.lock +34 -0
- data/docs/AppEvent.md +14 -14
- data/docs/CommerceEvent.md +18 -18
- data/docs/ScreenViewEvent.md +13 -13
- data/example/main.rb +28 -0
- data/lib/mparticle/models/app_event.rb +13 -4
- data/lib/mparticle/models/commerce_event.rb +12 -4
- data/lib/mparticle/models/screen_view_event.rb +13 -4
- data/lib/mparticle/version.rb +1 -1
- data/mparticle-1.0.4.gem +0 -0
- data/mparticle.gemspec +1 -1
- data/spec/models/app_event_spec.rb +23 -0
- data/spec/models/commerce_event_spec.rb +23 -0
- data/spec/models/screen_view_event_spec.rb +23 -0
- metadata +9 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0c59bf45feea215b236bf3031450f13b739685c16f6ff5097fb926f560207109
|
4
|
+
data.tar.gz: a336485e648f6eeb4fdd605ec4a35a1ba708fe7a1f0a29aa3a918e65edaf1700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98ea4f17a4eac71825da5d306ffb1d72f09c3fd12d16a575c17a33b91799ea0f83f208ec887bd49c7f39a724d497afb9712bf162034c85928a5f209613829d8c
|
7
|
+
data.tar.gz: 31570c9055b0a71bd2870e7ed442738f1409f59d66dee7dbf50374a42c2323ca11ecb21364579bc55c78cb7f1d75d7658aa939ca2978fe228efee19fbd47a1bb
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.3)
|
5
|
+
ethon (0.12.0)
|
6
|
+
ffi (>= 1.3.0)
|
7
|
+
ffi (1.11.3)
|
8
|
+
json (1.8.6)
|
9
|
+
rspec (3.9.0)
|
10
|
+
rspec-core (~> 3.9.0)
|
11
|
+
rspec-expectations (~> 3.9.0)
|
12
|
+
rspec-mocks (~> 3.9.0)
|
13
|
+
rspec-core (3.9.1)
|
14
|
+
rspec-support (~> 3.9.1)
|
15
|
+
rspec-expectations (3.9.0)
|
16
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
17
|
+
rspec-support (~> 3.9.0)
|
18
|
+
rspec-mocks (3.9.1)
|
19
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
20
|
+
rspec-support (~> 3.9.0)
|
21
|
+
rspec-support (3.9.2)
|
22
|
+
typhoeus (1.3.1)
|
23
|
+
ethon (>= 0.9.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
json (~> 1.8, >= 1.8.3)
|
30
|
+
rspec (= 3.9.0)
|
31
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
32
|
+
|
33
|
+
BUNDLED WITH
|
34
|
+
1.17.2
|
data/docs/AppEvent.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
# MParticle::AppEvent
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**timestamp_unixtime_ms** | **Integer** | | [optional]
|
7
|
-
**event_id** | **Integer** | | [optional]
|
8
|
-
**source_message_id** | **String** | | [optional]
|
9
|
-
**session_id** | **Integer** | | [optional]
|
10
|
-
**session_uuid** | **String** | | [optional]
|
11
|
-
**custom_attributes** | **Hash<String, String>** | | [optional]
|
12
|
-
**location** | [**GeoLocation**](GeoLocation.md) | | [optional]
|
13
|
-
**device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional]
|
14
|
-
**custom_event_type** | **String** | |
|
15
|
-
**event_name** | **String** | |
|
16
|
-
**media_info** | [**MediaInfo**](MediaInfo.md) | | [optional]
|
17
|
-
|
18
4
|
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ------------------------- | ----------------------------------------------- | ----------- | ---------- |
|
7
|
+
| **timestamp_unixtime_ms** | **Integer** | | [optional] |
|
8
|
+
| **event_id** | **Integer** | | [optional] |
|
9
|
+
| **source_message_id** | **String** | | [optional] |
|
10
|
+
| **session_id** | **Integer** | | [optional] |
|
11
|
+
| **session_uuid** | **String** | | [optional] |
|
12
|
+
| **custom_attributes** | **Hash<String, String>** | | [optional] |
|
13
|
+
| **location** | [**GeoLocation**](GeoLocation.md) | | [optional] |
|
14
|
+
| **device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional] |
|
15
|
+
| **custom_event_type** | **String** | |
|
16
|
+
| **event_name** | **String** | |
|
17
|
+
| **media_info** | [**MediaInfo**](MediaInfo.md) | | [optional] |
|
18
|
+
| **custom_flags** | **Hash<String, String>** | | [optional] |
|
data/docs/CommerceEvent.md
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
# MParticle::CommerceEvent
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**timestamp_unixtime_ms** | **Integer** | | [optional]
|
7
|
-
**event_id** | **Integer** | | [optional]
|
8
|
-
**source_message_id** | **String** | | [optional]
|
9
|
-
**session_id** | **Integer** | | [optional]
|
10
|
-
**session_uuid** | **String** | | [optional]
|
11
|
-
**custom_attributes** | **Hash<String, String>** | | [optional]
|
12
|
-
**location** | [**GeoLocation**](GeoLocation.md) | | [optional]
|
13
|
-
**device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional]
|
14
|
-
**product_action** | [**ProductAction**](ProductAction.md) | | [optional]
|
15
|
-
**promotion_action** | [**PromotionAction**](PromotionAction.md) | | [optional]
|
16
|
-
**product_impressions** | [**Array<ProductImpression>**](ProductImpression.md) | | [optional]
|
17
|
-
**shopping_cart** | [**ShoppingCart**](ShoppingCart.md) | | [optional]
|
18
|
-
**currency_code** | **String** | | [optional]
|
19
|
-
**screen_name** | **String** | | [optional]
|
20
|
-
**is_non_interactive** | **BOOLEAN** | | [optional]
|
21
|
-
|
22
4
|
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ------------------------- | ---------------------------------------------------------- | ----------- | ---------- |
|
7
|
+
| **timestamp_unixtime_ms** | **Integer** | | [optional] |
|
8
|
+
| **event_id** | **Integer** | | [optional] |
|
9
|
+
| **source_message_id** | **String** | | [optional] |
|
10
|
+
| **session_id** | **Integer** | | [optional] |
|
11
|
+
| **session_uuid** | **String** | | [optional] |
|
12
|
+
| **custom_attributes** | **Hash<String, String>** | | [optional] |
|
13
|
+
| **location** | [**GeoLocation**](GeoLocation.md) | | [optional] |
|
14
|
+
| **device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional] |
|
15
|
+
| **product_action** | [**ProductAction**](ProductAction.md) | | [optional] |
|
16
|
+
| **promotion_action** | [**PromotionAction**](PromotionAction.md) | | [optional] |
|
17
|
+
| **product_impressions** | [**Array<ProductImpression>**](ProductImpression.md) | | [optional] |
|
18
|
+
| **shopping_cart** | [**ShoppingCart**](ShoppingCart.md) | | [optional] |
|
19
|
+
| **currency_code** | **String** | | [optional] |
|
20
|
+
| **screen_name** | **String** | | [optional] |
|
21
|
+
| **is_non_interactive** | **BOOLEAN** | | [optional] |
|
22
|
+
| **custom_flags** | **Hash<String, String>** | | [optional] |
|
data/docs/ScreenViewEvent.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
# MParticle::ScreenViewEvent
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**timestamp_unixtime_ms** | **Integer** | | [optional]
|
7
|
-
**event_id** | **Integer** | | [optional]
|
8
|
-
**source_message_id** | **String** | | [optional]
|
9
|
-
**session_id** | **Integer** | | [optional]
|
10
|
-
**session_uuid** | **String** | | [optional]
|
11
|
-
**custom_attributes** | **Hash<String, String>** | | [optional]
|
12
|
-
**location** | [**GeoLocation**](GeoLocation.md) | | [optional]
|
13
|
-
**device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional]
|
14
|
-
**screen_name** | **String** | |
|
15
|
-
**activity_type** | **String** | | [optional]
|
16
|
-
|
17
4
|
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ------------------------- | ----------------------------------------------- | ----------- | ---------- |
|
7
|
+
| **timestamp_unixtime_ms** | **Integer** | | [optional] |
|
8
|
+
| **event_id** | **Integer** | | [optional] |
|
9
|
+
| **source_message_id** | **String** | | [optional] |
|
10
|
+
| **session_id** | **Integer** | | [optional] |
|
11
|
+
| **session_uuid** | **String** | | [optional] |
|
12
|
+
| **custom_attributes** | **Hash<String, String>** | | [optional] |
|
13
|
+
| **location** | [**GeoLocation**](GeoLocation.md) | | [optional] |
|
14
|
+
| **device_current_state** | [**DeviceCurrentState**](DeviceCurrentState.md) | | [optional] |
|
15
|
+
| **screen_name** | **String** | |
|
16
|
+
| **activity_type** | **String** | | [optional] |
|
17
|
+
| **custom_flags** | **Hash<String, String>** | | [optional] |
|
data/example/main.rb
CHANGED
@@ -19,6 +19,34 @@ app_event = MParticle::AppEvent.new
|
|
19
19
|
app_event.event_name = 'Test event'
|
20
20
|
app_event.custom_event_type = 'navigation'
|
21
21
|
app_event.custom_attributes = { 'Test key' => 'Test value' }
|
22
|
+
app_event.custom_flags = {
|
23
|
+
'answer': 42,
|
24
|
+
'question': 'What is the answer to life, the universe, and everything?',
|
25
|
+
'dolphins': [
|
26
|
+
'So long',
|
27
|
+
'Thanks for all the fish'
|
28
|
+
]
|
29
|
+
}
|
30
|
+
|
31
|
+
screen_view_event = MParticle::ScreenViewEvent.new
|
32
|
+
screen_view_event.custom_flags = {
|
33
|
+
'answer': 42,
|
34
|
+
'question': 'What is the answer to life, the universe, and everything?',
|
35
|
+
'dolphins': [
|
36
|
+
'So long',
|
37
|
+
'Thanks for all the fish'
|
38
|
+
]
|
39
|
+
}
|
40
|
+
|
41
|
+
commerce_event = MParticle::CommerceEvent.new
|
42
|
+
commerce_event = {
|
43
|
+
'answer': 42,
|
44
|
+
'question': 'What is the answer to life, the universe, and everything?',
|
45
|
+
'dolphins': [
|
46
|
+
'So long',
|
47
|
+
'Thanks for all the fish'
|
48
|
+
]
|
49
|
+
}
|
22
50
|
|
23
51
|
batch.events = [MParticle::SessionStartEvent.new, app_event, MParticle::SessionEndEvent.new]
|
24
52
|
batch.user_identities = user_identities
|
@@ -25,6 +25,8 @@ module MParticle
|
|
25
25
|
|
26
26
|
attr_accessor :media_info
|
27
27
|
|
28
|
+
attr_accessor :custom_flags
|
29
|
+
|
28
30
|
class EnumAttributeValidator
|
29
31
|
attr_reader :datatype
|
30
32
|
attr_reader :allowable_values
|
@@ -60,7 +62,8 @@ module MParticle
|
|
60
62
|
:'device_current_state' => :'device_current_state',
|
61
63
|
:'custom_event_type' => :'custom_event_type',
|
62
64
|
:'event_name' => :'event_name',
|
63
|
-
:'media_info' => :'media_info'
|
65
|
+
:'media_info' => :'media_info',
|
66
|
+
:'custom_flags' => :'custom_flags',
|
64
67
|
}
|
65
68
|
end
|
66
69
|
|
@@ -77,7 +80,8 @@ module MParticle
|
|
77
80
|
:'device_current_state' => :'DeviceCurrentState',
|
78
81
|
:'custom_event_type' => :'String',
|
79
82
|
:'event_name' => :'String',
|
80
|
-
:'media_info' => :'MediaInfo'
|
83
|
+
:'media_info' => :'MediaInfo',
|
84
|
+
:'custom_flags' => :'Hash<String, String>',
|
81
85
|
}
|
82
86
|
end
|
83
87
|
|
@@ -135,6 +139,10 @@ module MParticle
|
|
135
139
|
self.media_info = attributes[:'media_info']
|
136
140
|
end
|
137
141
|
|
142
|
+
if attributes.has_key?(:'custom_flags')
|
143
|
+
self.custom_flags = attributes[:'custom_flags']
|
144
|
+
end
|
145
|
+
|
138
146
|
end
|
139
147
|
|
140
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -187,7 +195,8 @@ module MParticle
|
|
187
195
|
device_current_state == o.device_current_state &&
|
188
196
|
custom_event_type == o.custom_event_type &&
|
189
197
|
event_name == o.event_name &&
|
190
|
-
media_info == o.media_info
|
198
|
+
media_info == o.media_info &&
|
199
|
+
custom_flags == o.custom_flags
|
191
200
|
end
|
192
201
|
|
193
202
|
# @see the `==` method
|
@@ -199,7 +208,7 @@ module MParticle
|
|
199
208
|
# Calculates hash code according to all attributes.
|
200
209
|
# @return [Fixnum] Hash code
|
201
210
|
def hash
|
202
|
-
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, custom_event_type, event_name, media_info].hash
|
211
|
+
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, custom_event_type, event_name, media_info, custom_flags].hash
|
203
212
|
end
|
204
213
|
|
205
214
|
# Builds the object from hash
|
@@ -33,6 +33,7 @@ module MParticle
|
|
33
33
|
|
34
34
|
attr_accessor :is_non_interactive
|
35
35
|
|
36
|
+
attr_accessor :custom_flags
|
36
37
|
|
37
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
39
|
def self.attribute_map
|
@@ -51,7 +52,8 @@ module MParticle
|
|
51
52
|
:'shopping_cart' => :'shopping_cart',
|
52
53
|
:'currency_code' => :'currency_code',
|
53
54
|
:'screen_name' => :'screen_name',
|
54
|
-
:'is_non_interactive' => :'is_non_interactive'
|
55
|
+
:'is_non_interactive' => :'is_non_interactive',
|
56
|
+
:'custom_flags' => :'custom_flags',
|
55
57
|
}
|
56
58
|
end
|
57
59
|
|
@@ -72,7 +74,8 @@ module MParticle
|
|
72
74
|
:'shopping_cart' => :'ShoppingCart',
|
73
75
|
:'currency_code' => :'String',
|
74
76
|
:'screen_name' => :'String',
|
75
|
-
:'is_non_interactive' => :'BOOLEAN'
|
77
|
+
:'is_non_interactive' => :'BOOLEAN',
|
78
|
+
:'custom_flags' => :'Hash<String, String>',
|
76
79
|
}
|
77
80
|
end
|
78
81
|
|
@@ -148,6 +151,10 @@ module MParticle
|
|
148
151
|
self.is_non_interactive = attributes[:'is_non_interactive']
|
149
152
|
end
|
150
153
|
|
154
|
+
if attributes.has_key?(:'custom_flags')
|
155
|
+
self.custom_flags = attributes[:'custom_flags']
|
156
|
+
end
|
157
|
+
|
151
158
|
end
|
152
159
|
|
153
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,7 +189,8 @@ module MParticle
|
|
182
189
|
shopping_cart == o.shopping_cart &&
|
183
190
|
currency_code == o.currency_code &&
|
184
191
|
screen_name == o.screen_name &&
|
185
|
-
is_non_interactive == o.is_non_interactive
|
192
|
+
is_non_interactive == o.is_non_interactive &&
|
193
|
+
custom_flags == o.custom_flags
|
186
194
|
end
|
187
195
|
|
188
196
|
# @see the `==` method
|
@@ -194,7 +202,7 @@ module MParticle
|
|
194
202
|
# Calculates hash code according to all attributes.
|
195
203
|
# @return [Fixnum] Hash code
|
196
204
|
def hash
|
197
|
-
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, product_action, promotion_action, product_impressions, shopping_cart, currency_code, screen_name, is_non_interactive].hash
|
205
|
+
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, product_action, promotion_action, product_impressions, shopping_cart, currency_code, screen_name, is_non_interactive, custom_flags].hash
|
198
206
|
end
|
199
207
|
|
200
208
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module MParticle
|
|
23
23
|
|
24
24
|
attr_accessor :activity_type
|
25
25
|
|
26
|
+
attr_accessor :custom_flags
|
27
|
+
|
26
28
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
30
|
def self.attribute_map
|
@@ -36,7 +38,8 @@ module MParticle
|
|
36
38
|
:'location' => :'location',
|
37
39
|
:'device_current_state' => :'device_current_state',
|
38
40
|
:'screen_name' => :'screen_name',
|
39
|
-
:'activity_type' => :'activity_type'
|
41
|
+
:'activity_type' => :'activity_type',
|
42
|
+
:'custom_flags' => :'custom_flags',
|
40
43
|
}
|
41
44
|
end
|
42
45
|
|
@@ -52,7 +55,8 @@ module MParticle
|
|
52
55
|
:'location' => :'GeoLocation',
|
53
56
|
:'device_current_state' => :'DeviceCurrentState',
|
54
57
|
:'screen_name' => :'String',
|
55
|
-
:'activity_type' => :'String'
|
58
|
+
:'activity_type' => :'String',
|
59
|
+
:'custom_flags' => :'Hash<String, String>'
|
56
60
|
}
|
57
61
|
end
|
58
62
|
|
@@ -106,6 +110,10 @@ module MParticle
|
|
106
110
|
self.activity_type = attributes[:'activity_type']
|
107
111
|
end
|
108
112
|
|
113
|
+
if attributes.has_key?(:'custom_flags')
|
114
|
+
self.custom_flags = attributes[:'custom_flags']
|
115
|
+
end
|
116
|
+
|
109
117
|
end
|
110
118
|
|
111
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -140,7 +148,8 @@ module MParticle
|
|
140
148
|
location == o.location &&
|
141
149
|
device_current_state == o.device_current_state &&
|
142
150
|
screen_name == o.screen_name &&
|
143
|
-
activity_type == o.activity_type
|
151
|
+
activity_type == o.activity_type &&
|
152
|
+
custom_flags == o.custom_flags
|
144
153
|
end
|
145
154
|
|
146
155
|
# @see the `==` method
|
@@ -152,7 +161,7 @@ module MParticle
|
|
152
161
|
# Calculates hash code according to all attributes.
|
153
162
|
# @return [Fixnum] Hash code
|
154
163
|
def hash
|
155
|
-
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, screen_name, activity_type].hash
|
164
|
+
[timestamp_unixtime_ms, event_id, source_message_id, session_id, session_uuid, custom_attributes, location, device_current_state, screen_name, activity_type, custom_flags].hash
|
156
165
|
end
|
157
166
|
|
158
167
|
# Builds the object from hash
|
data/lib/mparticle/version.rb
CHANGED
data/mparticle-1.0.4.gem
ADDED
Binary file
|
data/mparticle.gemspec
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'mparticle'
|
2
|
+
|
3
|
+
describe 'AppEvent' do
|
4
|
+
it 'should create an instance of AppEvent' do
|
5
|
+
model = MParticle::AppEvent.new
|
6
|
+
expect(model).to be_an_instance_of MParticle::AppEvent
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should have custom_flags' do
|
10
|
+
model = MParticle::AppEvent.new
|
11
|
+
model.custom_flags = {
|
12
|
+
"foo": 'bar',
|
13
|
+
'answer': 42,
|
14
|
+
'arrays': [
|
15
|
+
'foo', 'bar', 'baz'
|
16
|
+
]
|
17
|
+
}
|
18
|
+
expect(model.custom_flags[:foo]).to eq('bar')
|
19
|
+
expect(model.custom_flags[:answer]).to eq(42)
|
20
|
+
expect(model.custom_flags[:arrays]).to eq(['foo', 'bar', 'baz'])
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'mparticle'
|
2
|
+
|
3
|
+
describe 'CommerceEvent' do
|
4
|
+
it 'should create an instance of CommerceEvent' do
|
5
|
+
model = MParticle::CommerceEvent.new
|
6
|
+
expect(model).to be_an_instance_of MParticle::CommerceEvent
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should have custom_flags' do
|
10
|
+
model = MParticle::CommerceEvent.new
|
11
|
+
model.custom_flags = {
|
12
|
+
"foo": 'bar',
|
13
|
+
'answer': 42,
|
14
|
+
'arrays': [
|
15
|
+
'foo', 'bar', 'baz'
|
16
|
+
]
|
17
|
+
}
|
18
|
+
expect(model.custom_flags[:foo]).to eq('bar')
|
19
|
+
expect(model.custom_flags[:answer]).to eq(42)
|
20
|
+
expect(model.custom_flags[:arrays]).to eq(['foo', 'bar', 'baz'])
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'mparticle'
|
2
|
+
|
3
|
+
describe 'ScreenViewEvent' do
|
4
|
+
it 'should create an instance of ScreenViewEvent' do
|
5
|
+
model = MParticle::ScreenViewEvent.new
|
6
|
+
expect(model).to be_an_instance_of MParticle::ScreenViewEvent
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should have custom_flags' do
|
10
|
+
model = MParticle::ScreenViewEvent.new
|
11
|
+
model.custom_flags = {
|
12
|
+
"foo": 'bar',
|
13
|
+
'answer': 42,
|
14
|
+
'arrays': [
|
15
|
+
'foo', 'bar', 'baz'
|
16
|
+
]
|
17
|
+
}
|
18
|
+
expect(model.custom_flags[:foo]).to eq('bar')
|
19
|
+
expect(model.custom_flags[:answer]).to eq(42)
|
20
|
+
expect(model.custom_flags[:arrays]).to eq(['foo', 'bar', 'baz'])
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mparticle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mParticle Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -57,6 +57,8 @@ executables: []
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
+
- Gemfile
|
61
|
+
- Gemfile.lock
|
60
62
|
- README.md
|
61
63
|
- docs/ApiResponse.md
|
62
64
|
- docs/ApiResponseErrors.md
|
@@ -136,10 +138,14 @@ files:
|
|
136
138
|
- lib/mparticle/models/source_information.rb
|
137
139
|
- lib/mparticle/models/user_identities.rb
|
138
140
|
- lib/mparticle/version.rb
|
141
|
+
- mparticle-1.0.4.gem
|
139
142
|
- mparticle.gemspec
|
143
|
+
- spec/models/app_event_spec.rb
|
144
|
+
- spec/models/commerce_event_spec.rb
|
140
145
|
- spec/models/consent_state_spec.rb
|
141
146
|
- spec/models/gdpr_consent_state_spec.rb
|
142
147
|
- spec/models/product_spec.rb
|
148
|
+
- spec/models/screen_view_event_spec.rb
|
143
149
|
homepage: https://www.mparticle.com
|
144
150
|
licenses:
|
145
151
|
- Apache-2.0
|
@@ -159,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
165
|
- !ruby/object:Gem::Version
|
160
166
|
version: '0'
|
161
167
|
requirements: []
|
162
|
-
|
163
|
-
rubygems_version: 2.6.8
|
168
|
+
rubygems_version: 3.0.3
|
164
169
|
signing_key:
|
165
170
|
specification_version: 4
|
166
171
|
summary: Ruby client for the mParticle platform
|