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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sensors_analytics_sdk.rb +8 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1cd00d1b6166cb408c62a339b4b4d698140f361
4
- data.tar.gz: fcf52c303dce0aab8e94b5b9b9de7956da472c37
3
+ metadata.gz: 2cc00591c185fa60303f056d00c69971732c8e43
4
+ data.tar.gz: 5ff4913eca93005274d34d1dd818ef4b5fb24368
5
5
  SHA512:
6
- metadata.gz: 16e6736ac422888a62e58958ba3a06c4fe5cd7d1be7a1808e29c4eab87c34686865cafac45ac5df12183271e7695c9ead103a6ec3169ad3147591ebc940217fa
7
- data.tar.gz: 68760a63e5ae1a9ad0be1b5f07438752f6b5edd0af6883cdfd03b393a99f9f3424762cd7e374949d8757bef278f80dd0d85586a97498ee2b336c7d6a41cd27e4
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.6'
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
- event_properties = @super_properties.dup
150
- properties.each do |key, value|
151
- event_properties[key] = value
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
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.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuhan ZOU