helios-tracker 0.0.2 → 0.0.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b47373781f52e1842f828859f8b87e3d18ba95ffbeb04bde7b4aec8f76e0ffa3
|
|
4
|
+
data.tar.gz: ac2c4da6b6888e47271498ec22cc49faf1cecc0cf0938299bea955cf9f09d043
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49d1bee23fa90865700b51f3250322c1ec7633f09078ceab23f74f7be12bd6c0ab899bf8665e3f6663071bb6888f4385f60a7e608bdc1dd4195476226f00cda5
|
|
7
|
+
data.tar.gz: a482d036960bc620bde085b7f31c736f2fd799a126beb4b8111ec607ad3ce910afbf5c469ffbe7f28a870e1fa06eba722694b49faa905258df212c742fcf64e2
|
|
@@ -17,17 +17,21 @@ HeliosTracker.configure do |config|
|
|
|
17
17
|
# Map API response field names to your model's attributes or lambdas.
|
|
18
18
|
# :email is required by the Helios API. All other fields are optional —
|
|
19
19
|
# simply remove any lines you don't need.
|
|
20
|
+
#
|
|
21
|
+
# IMPORTANT: All numeric data points must return CUMULATIVE LIFETIME TOTALS,
|
|
22
|
+
# not counts within the query_start window. Helios stores the cumulative
|
|
23
|
+
# value and derives points from the delta between successive pulls.
|
|
20
24
|
config.user_fields = {
|
|
21
25
|
email: :email,
|
|
22
26
|
created_at: :created_at,
|
|
23
27
|
# source_ip: :source_ip,
|
|
24
28
|
# first_unconfirmed_visit_id: :first_unconfirmed_visit_id,
|
|
25
29
|
# login_attempt_count: :login_attempt_count,
|
|
26
|
-
# login_count:
|
|
30
|
+
# login_count: ->(user) { user.sign_in_count },
|
|
27
31
|
# accounts_owned_count: ->(user) { user.accounts_owned_count },
|
|
28
32
|
# free_accounts_count: ->(user) { user.free_accounts_count },
|
|
29
33
|
# unsubscribe_nonce: :unsubscribe_nonce,
|
|
30
|
-
# app_open_days_count:
|
|
34
|
+
# app_open_days_count: ->(user) { user.app_opens.count },
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
# -----------------------------------------------------------------------
|
|
@@ -35,6 +35,11 @@ module HeliosTracker
|
|
|
35
35
|
# Optional user fields — map API field names to model attributes or lambdas.
|
|
36
36
|
# :email is always required and included automatically.
|
|
37
37
|
#
|
|
38
|
+
# IMPORTANT: All numeric data points (login_count, accounts_owned_count,
|
|
39
|
+
# app_open_days_count, etc.) must return CUMULATIVE LIFETIME TOTALS,
|
|
40
|
+
# not counts within the query_start window. Helios stores the cumulative
|
|
41
|
+
# value and derives points from the delta between successive pulls.
|
|
42
|
+
#
|
|
38
43
|
# Example:
|
|
39
44
|
# config.user_fields = {
|
|
40
45
|
# email: :email,
|
|
@@ -42,11 +47,11 @@ module HeliosTracker
|
|
|
42
47
|
# source_ip: ->(user) { user.try(:source_ip) },
|
|
43
48
|
# first_unconfirmed_visit_id: :first_unconfirmed_visit_id,
|
|
44
49
|
# login_attempt_count: :login_attempt_count,
|
|
45
|
-
# login_count:
|
|
50
|
+
# login_count: ->(user) { user.sign_in_count },
|
|
46
51
|
# accounts_owned_count: ->(user) { user.accounts_owned_count },
|
|
47
52
|
# free_accounts_count: ->(user) { user.free_accounts_count },
|
|
48
53
|
# unsubscribe_nonce: :unsubscribe_nonce,
|
|
49
|
-
# app_open_days_count:
|
|
54
|
+
# app_open_days_count: ->(user) { user.app_opens.count },
|
|
50
55
|
# }
|
|
51
56
|
attr_accessor :user_fields
|
|
52
57
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: helios-tracker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Fleetwood-Boldt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|