sensors_analytics_sdk 1.3.8 → 1.3.9
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 +2 -3
- 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: b47906b565b92fa888b74b24be9be5bd978fc7ef
|
4
|
+
data.tar.gz: 3c4d01c3bd50aaa0ee1653d75a60b9a06d5b8284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 424d39177dcf78383f3a1d5a280195f045cd276deeafd77f3cb54a612663906ef9f20070874b8f4a2af24f6fc1801146b73428458167bba22b29ba0224bf00de
|
7
|
+
data.tar.gz: 3eed9b537e9d5c26d846bfc8fc922573b0387d8797ce59d97e5f77698c356c5f9db0201d86fe3a841230bf5cab2dbc899c49fc398fb2e05f9662c871de6cfe0f
|
@@ -5,7 +5,7 @@ require 'zlib'
|
|
5
5
|
|
6
6
|
module SensorsAnalytics
|
7
7
|
|
8
|
-
VERSION = '1.3.
|
8
|
+
VERSION = '1.3.9'
|
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
|
|
@@ -153,8 +153,7 @@ module SensorsAnalytics
|
|
153
153
|
|
154
154
|
properties.each do |key, value|
|
155
155
|
if value.is_a?(Time)
|
156
|
-
|
157
|
-
event_properties[key] = value.strftime('%Y-%m-%d %H:%M:%S.') + ms_part
|
156
|
+
event_properties[key] = value.strftime("%Y-%m-%d %H:%M:%S.#{(value.to_f * 1000.0).to_i % 1000}")
|
158
157
|
else
|
159
158
|
event_properties[key] = value
|
160
159
|
end
|