path-reporting 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d37d78cfbdf517535d51c48f43a69899a7d5c00b57dc76e6d450551ddc157ed3
4
- data.tar.gz: 12f2ca0f0c8de09d5a0467793461ea2bd8a678c8086a63062f5e13b256958dca
3
+ metadata.gz: 612edf8ed822d34efd5492f054daccdca4c8c1d667968bbbb6792d970f84f48e
4
+ data.tar.gz: 87c775d49a7299a74309e0e34ef024027b9d2d36b7e1cd845a83dcf2d473e55e
5
5
  SHA512:
6
- metadata.gz: b4159af503e477b87299ac911e8e7d935cd2dff29b30af85a3a2d9e0492b52abae5ebf54adfb247a6b31a27225b1c6e095178f43785857e5b58a298cf4b21792
7
- data.tar.gz: c8af462a40b0240a3b54da2793345ba25446a50a7699ef2ac39482992021618d570f1e7c73dcc677d1a796971382f1f66d6da8023c23d147f1948331492dae43
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- path-reporting (0.1.2)
4
+ path-reporting (0.1.3)
5
5
  amplitude-api
6
6
 
7
7
  GEM
@@ -61,6 +61,7 @@ GEM
61
61
 
62
62
  PLATFORMS
63
63
  arm64-darwin-21
64
+ x86_64-linux
64
65
 
65
66
  DEPENDENCIES
66
67
  amplitude-api (~> 0.4.1)
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
- PathReporting.analytics.record(
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: PathReporting::UserType.PATIENT,
46
- trigger: PathReporting::Trigger.PAGE_VIEW,
45
+ user_type: Path::Reporting::UserType.PATIENT,
46
+ trigger: Path::Reporting::Trigger.PAGE_VIEW,
47
47
  metadata: analytics_metadata,
48
48
  )
49
49
  ```
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "reporters/amplitude"
4
- require_relative "reporters/console"
5
- require_relative "../types/trigger"
6
- require_relative "../types/user_type"
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
@@ -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
@@ -3,6 +3,6 @@
3
3
  module Path
4
4
  module Reporting
5
5
  # Current version of the module
6
- VERSION = "0.1.2"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "analytics/analytics"
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
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # defines the Path namespace
4
+ module Path
5
+ end
data/reporting.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "lib/reporting/version"
3
+ require_relative "lib/path/reporting/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "path-reporting"
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.2
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/analytics/analytics.rb
57
- - lib/analytics/configuration.rb
58
- - lib/analytics/reporters/amplitude.rb
59
- - lib/analytics/reporters/console.rb
60
- - lib/configuration.rb
61
- - lib/reporting.rb
62
- - lib/reporting/version.rb
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