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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sensors_analytics_sdk.rb +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36883d7bed5419258598e7371b3f3b6e600631fb
4
- data.tar.gz: 552d2b5824bc41f69e013707e08f54759c968594
3
+ metadata.gz: b47906b565b92fa888b74b24be9be5bd978fc7ef
4
+ data.tar.gz: 3c4d01c3bd50aaa0ee1653d75a60b9a06d5b8284
5
5
  SHA512:
6
- metadata.gz: c5dcd8a9a9e8082c7ce0aa5db2420f4319ef1779afeaba5199388985d84c80321733a9499a1d893fe2567e1abcc3267c18f0c50bf30a7d95893fd37d3265aaa9
7
- data.tar.gz: 447ba3d14f48902eec466f29fdecb180e89c3457151997b5db8dbf7f6d789adb0ac15d83881e77de159470e6d2b1f72da27b3447d5a44b4a28ac0a6180d260f3
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'
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
- ms_part = (value.nsec / 100000).to_s
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensors_analytics_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuhan ZOU