path-reporting 0.1.2 → 0.1.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 +4 -4
- data/.tool-versions +1 -0
- data/Gemfile.lock +2 -1
- data/README.md +3 -3
- data/lib/{analytics/reporters → path/reporting/analytics}/amplitude.rb +0 -0
- data/lib/{analytics → path/reporting/analytics}/configuration.rb +0 -0
- data/lib/{analytics/reporters → path/reporting/analytics}/console.rb +0 -0
- data/lib/{analytics → path/reporting}/analytics.rb +4 -4
- data/lib/{configuration.rb → path/reporting/configuration.rb} +0 -0
- data/lib/{types → path/reporting/types}/trigger.rb +7 -2
- data/lib/{types → path/reporting/types}/user_type.rb +0 -0
- data/lib/{reporting → path/reporting}/version.rb +1 -1
- data/lib/{reporting.rb → path/reporting.rb} +2 -2
- data/lib/path.rb +5 -0
- data/reporting.gemspec +1 -1
- metadata +12 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 612edf8ed822d34efd5492f054daccdca4c8c1d667968bbbb6792d970f84f48e
|
4
|
+
data.tar.gz: 87c775d49a7299a74309e0e34ef024027b9d2d36b7e1cd845a83dcf2d473e55e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eccd9730018b5e4e1468229ebc630e39a539dad448b5d7b71a8aa922a63d7912d56dbca08decf109f287710ac282f36d93d0061480f14df871c8c5e3aa614cd
|
7
|
+
data.tar.gz: c1f436dae888ddd42d396d9b7cd3f7f50e4a6ad6f9767e8eb4b6b9675bc2afc2f2a72016b5d2a1fc51ad90ca159fad08f02d48b3fe9036da7149afd1d299fe49
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.0.3
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -37,13 +37,13 @@ After initialing the module, record an analytics event with the following code.
|
|
37
37
|
|
38
38
|
```ruby
|
39
39
|
|
40
|
-
|
40
|
+
Path::Reporting.analytics.record(
|
41
41
|
product_code: Constants::ANALYTICS_PRODUCT_CODE,
|
42
42
|
product_area: Constants::ANALYTICS_PRODUCT_AREA_MATCHING,
|
43
43
|
name: 'Preferred provider multiple valid matches',
|
44
44
|
user: @contact.analytics_friendly_hash,
|
45
|
-
user_type:
|
46
|
-
trigger:
|
45
|
+
user_type: Path::Reporting::UserType.PATIENT,
|
46
|
+
trigger: Path::Reporting::Trigger.PAGE_VIEW,
|
47
47
|
metadata: analytics_metadata,
|
48
48
|
)
|
49
49
|
```
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
require_relative "
|
6
|
-
require_relative "
|
3
|
+
require_relative "analytics/amplitude"
|
4
|
+
require_relative "analytics/console"
|
5
|
+
require_relative "types/trigger"
|
6
|
+
require_relative "types/user_type"
|
7
7
|
|
8
8
|
module Path
|
9
9
|
module Reporting
|
File without changes
|
@@ -6,11 +6,16 @@ module Path
|
|
6
6
|
class Trigger
|
7
7
|
class << self
|
8
8
|
# Interaction: When a direct intentional user action is the cause of
|
9
|
-
# this event
|
9
|
+
# this event that is not a simple navigation. E.g. Submitted form or
|
10
|
+
# changed password
|
10
11
|
INTERACTION = "Interaction"
|
11
12
|
# Page view: When the event was an indirect result of viewing something.
|
13
|
+
# E.g. auto-assigning a provider or appointment because the user has an
|
14
|
+
# existing provider already
|
12
15
|
# @note Because of usage limits, we do not want to record page views
|
13
|
-
# as a separate action, this is only for indirect consequences
|
16
|
+
# as a separate action, this is only for indirect consequences that
|
17
|
+
# result in a change in something either for the user or for our
|
18
|
+
# systems
|
14
19
|
PAGE_VIEW = "Page view"
|
15
20
|
# Automation: Some automation or tool was the cause of this event
|
16
21
|
AUTOMATION = "Automation"
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "configuration"
|
3
|
+
require_relative "reporting/analytics"
|
4
|
+
require_relative "reporting/configuration"
|
5
5
|
require_relative "reporting/version"
|
6
6
|
|
7
7
|
# Path is just a wrapper module so we can group any path specific gems under
|
data/lib/path.rb
ADDED
data/reporting.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: path-reporting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Hushbeck
|
@@ -47,21 +47,23 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- ".rspec"
|
49
49
|
- ".rubocop.yml"
|
50
|
+
- ".tool-versions"
|
50
51
|
- ".yardopts"
|
51
52
|
- Gemfile
|
52
53
|
- Gemfile.lock
|
53
54
|
- LICENSE.md
|
54
55
|
- README.md
|
55
56
|
- Rakefile
|
56
|
-
- lib/
|
57
|
-
- lib/
|
58
|
-
- lib/
|
59
|
-
- lib/analytics/
|
60
|
-
- lib/configuration.rb
|
61
|
-
- lib/reporting.rb
|
62
|
-
- lib/reporting/
|
63
|
-
- lib/types/trigger.rb
|
64
|
-
- lib/types/user_type.rb
|
57
|
+
- lib/path.rb
|
58
|
+
- lib/path/reporting.rb
|
59
|
+
- lib/path/reporting/analytics.rb
|
60
|
+
- lib/path/reporting/analytics/amplitude.rb
|
61
|
+
- lib/path/reporting/analytics/configuration.rb
|
62
|
+
- lib/path/reporting/analytics/console.rb
|
63
|
+
- lib/path/reporting/configuration.rb
|
64
|
+
- lib/path/reporting/types/trigger.rb
|
65
|
+
- lib/path/reporting/types/user_type.rb
|
66
|
+
- lib/path/reporting/version.rb
|
65
67
|
- reporting.gemspec
|
66
68
|
- sig/reporting.rbs
|
67
69
|
homepage: https://github.com/pathccm/reporting
|