sensors_analytics_sdk 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensors_analytics_sdk.rb +8 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc00591c185fa60303f056d00c69971732c8e43
|
4
|
+
data.tar.gz: 5ff4913eca93005274d34d1dd818ef4b5fb24368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aada5871df574b0f3660c1bf4c59239dee6a364dac6f8aad2f19b2ddffdb62ab15681977a0fc76f95938dc7bf9108d48e08704c368d942997ea25c413323a3b3
|
7
|
+
data.tar.gz: 81b3612450c61ec1e634c76e1d7cf488cb4708e4d67a633ce021af6da7736605386f7f6687ff72dd88fb076af7600f991459a9f05000ed411410a4284a8a55eb
|
@@ -5,7 +5,7 @@ require 'zlib'
|
|
5
5
|
|
6
6
|
module SensorsAnalytics
|
7
7
|
|
8
|
-
VERSION = '1.3.
|
8
|
+
VERSION = '1.3.7'
|
9
9
|
|
10
10
|
KEY_PATTERN = /^((?!^distinct_id$|^original_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$)[a-zA-Z_$][a-zA-Z\\d_$]{0,99})$/
|
11
11
|
|
@@ -146,9 +146,13 @@ module SensorsAnalytics
|
|
146
146
|
event_time = _extract_time_from_properties(properties)
|
147
147
|
properties.delete("$time")
|
148
148
|
|
149
|
-
|
150
|
-
|
151
|
-
|
149
|
+
if event_type == :track || event_type == :track_signup
|
150
|
+
event_properties = @super_properties.dup
|
151
|
+
properties.each do |key, value|
|
152
|
+
event_properties[key] = value
|
153
|
+
end
|
154
|
+
else
|
155
|
+
event_properties = properties.dup
|
152
156
|
end
|
153
157
|
|
154
158
|
# Track / TrackSignup / ProfileSet / ProfileSetOne / ProfileIncrement / ProfileAppend / ProfileUnset
|