ahoy_captain 0.1.0 → 0.76

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +55 -14
  4. data/Rakefile +1 -10
  5. data/app/assets/images/ahoy_captain/apple-touch-icon.png +0 -0
  6. data/app/assets/images/ahoy_captain/favicon-16x16.png +0 -0
  7. data/app/assets/images/ahoy_captain/favicon-32x32.png +0 -0
  8. data/app/assets/images/ahoy_captain/logo.png +0 -0
  9. data/app/assets/images/ahoy_captain/safari-pinned-tab.svg +199 -0
  10. data/app/assets/javascript/ahoy_captain/application.js +4 -0
  11. data/app/assets/javascript/ahoy_captain/controllers/application.js +9 -0
  12. data/app/assets/javascript/ahoy_captain/controllers/application_controller.js +14 -0
  13. data/app/assets/javascript/ahoy_captain/controllers/details_modal_controller.js +18 -0
  14. data/app/assets/javascript/ahoy_captain/controllers/dropdown_label_controller.js +14 -0
  15. data/app/assets/javascript/ahoy_captain/controllers/filter_controller.js +145 -0
  16. data/app/assets/javascript/ahoy_captain/controllers/filter_tag_controller.js +17 -0
  17. data/app/assets/javascript/ahoy_captain/controllers/funnel_chart_controller.js +143 -0
  18. data/app/assets/javascript/ahoy_captain/controllers/index.js +3 -0
  19. data/app/assets/javascript/ahoy_captain/controllers/link_controller.js +43 -0
  20. data/app/assets/javascript/ahoy_captain/controllers/navigation_controller.js +25 -0
  21. data/app/assets/javascript/ahoy_captain/controllers/realtime_controller.js +27 -0
  22. data/app/assets/manifest/ahoy_captain/manifest.js +2 -0
  23. data/app/components/ahoy_captain/dropdown_button_component.html.erb +16 -0
  24. data/app/components/ahoy_captain/dropdown_button_component.rb +14 -0
  25. data/app/components/ahoy_captain/dropdown_link_component.html.erb +19 -0
  26. data/app/components/ahoy_captain/dropdown_link_component.rb +15 -0
  27. data/app/components/ahoy_captain/filter/modal_component.html.erb +13 -0
  28. data/app/components/ahoy_captain/filter/modal_component.rb +13 -0
  29. data/app/components/ahoy_captain/filter/select_component.html.erb +21 -0
  30. data/app/components/ahoy_captain/filter/select_component.rb +32 -0
  31. data/app/components/ahoy_captain/filter/tag_component.html.erb +9 -0
  32. data/app/components/ahoy_captain/filter/tag_component.rb +38 -0
  33. data/app/components/ahoy_captain/filter/tag_container_component.html.erb +5 -0
  34. data/app/components/ahoy_captain/filter/tag_container_component.rb +13 -0
  35. data/app/components/ahoy_captain/sticky_nav_component.html.erb +37 -0
  36. data/app/components/ahoy_captain/sticky_nav_component.rb +5 -0
  37. data/app/components/ahoy_captain/table_component.html.erb +49 -0
  38. data/app/components/ahoy_captain/table_component.rb +28 -0
  39. data/app/components/ahoy_captain/tile_component.html.erb +12 -0
  40. data/app/components/ahoy_captain/tile_component.rb +16 -0
  41. data/app/components/ahoy_captain/tooltip_component.html.erb +3 -0
  42. data/app/components/ahoy_captain/tooltip_component.rb +18 -0
  43. data/app/controllers/ahoy_captain/application_controller.rb +83 -0
  44. data/app/controllers/ahoy_captain/campaigns_controller.rb +27 -0
  45. data/app/controllers/ahoy_captain/cities_controller.rb +24 -0
  46. data/app/controllers/ahoy_captain/countries_controller.rb +24 -0
  47. data/app/controllers/ahoy_captain/devices_controller.rb +23 -0
  48. data/app/controllers/ahoy_captain/entry_pages_controller.rb +21 -0
  49. data/app/controllers/ahoy_captain/exit_pages_controller.rb +20 -0
  50. data/app/controllers/ahoy_captain/filters/base_controller.rb +17 -0
  51. data/app/controllers/ahoy_captain/filters/locations_controller.rb +11 -0
  52. data/app/controllers/ahoy_captain/filters/operating_systems/names_controller.rb +13 -0
  53. data/app/controllers/ahoy_captain/filters/operating_systems/versions_controller.rb +13 -0
  54. data/app/controllers/ahoy_captain/filters/pages/actions_controller.rb +13 -0
  55. data/app/controllers/ahoy_captain/filters/pages/entry_pages_controller.rb +14 -0
  56. data/app/controllers/ahoy_captain/filters/pages/exit_pages_controller.rb +16 -0
  57. data/app/controllers/ahoy_captain/filters/screens_controller.rb +11 -0
  58. data/app/controllers/ahoy_captain/filters/sources_controller.rb +11 -0
  59. data/app/controllers/ahoy_captain/filters/utms_controller.rb +10 -0
  60. data/app/controllers/ahoy_captain/funnels_controller.rb +8 -0
  61. data/app/controllers/ahoy_captain/goals_controller.rb +7 -0
  62. data/app/controllers/ahoy_captain/realtimes_controller.rb +7 -0
  63. data/app/controllers/ahoy_captain/regions_controller.rb +24 -0
  64. data/app/controllers/ahoy_captain/roots_controller.rb +6 -0
  65. data/app/controllers/ahoy_captain/sources_controller.rb +24 -0
  66. data/app/controllers/ahoy_captain/stats/base_controller.rb +6 -0
  67. data/app/controllers/ahoy_captain/stats/bounce_rates_controller.rb +10 -0
  68. data/app/controllers/ahoy_captain/stats/total_pageviews_controller.rb +9 -0
  69. data/app/controllers/ahoy_captain/stats/total_visits_controller.rb +9 -0
  70. data/app/controllers/ahoy_captain/stats/unique_visitors_controller.rb +9 -0
  71. data/app/controllers/ahoy_captain/stats/views_per_visits_controller.rb +16 -0
  72. data/app/controllers/ahoy_captain/stats/visit_durations_controller.rb +9 -0
  73. data/app/controllers/ahoy_captain/stats_controller.rb +7 -0
  74. data/app/controllers/ahoy_captain/top_pages_controller.rb +26 -0
  75. data/app/decorators/ahoy_captain/application_decorator.rb +34 -0
  76. data/app/decorators/ahoy_captain/campaign_decorator.rb +19 -0
  77. data/app/decorators/ahoy_captain/city_decorator.rb +12 -0
  78. data/app/decorators/ahoy_captain/country_decorator.rb +28 -0
  79. data/app/decorators/ahoy_captain/device_decorator.rb +16 -0
  80. data/app/decorators/ahoy_captain/entry_page_decorator.rb +7 -0
  81. data/app/decorators/ahoy_captain/exit_page_decorator.rb +7 -0
  82. data/app/decorators/ahoy_captain/page_decorator.rb +16 -0
  83. data/app/decorators/ahoy_captain/region_decorator.rb +12 -0
  84. data/app/decorators/ahoy_captain/source_decorator.rb +20 -0
  85. data/app/decorators/ahoy_captain/top_page_decorator.rb +7 -0
  86. data/app/helpers/ahoy_captain/application_helper.rb +32 -0
  87. data/app/models/ahoy_captain/current.rb +9 -0
  88. data/app/models/ahoy_captain/rangeable.rb +10 -0
  89. data/app/models/ahoy_captain/url_helpers.rb +6 -0
  90. data/app/models/ahoy_captain/widget.rb +15 -0
  91. data/app/models/concerns/ahoy_captain/range_options.rb +21 -0
  92. data/app/presenters/ahoy_captain/dashboard_presenter.rb +81 -0
  93. data/app/presenters/ahoy_captain/funnel_presenter.rb +65 -0
  94. data/app/presenters/ahoy_captain/goals_presenter.rb +60 -0
  95. data/app/queries/ahoy_captain/application_query.rb +118 -0
  96. data/app/queries/ahoy_captain/entry_pages_query.rb +17 -0
  97. data/app/queries/ahoy_captain/event_query.rb +20 -0
  98. data/app/queries/ahoy_captain/exit_pages_query.rb +17 -0
  99. data/app/queries/ahoy_captain/stats/average_views_per_visit_query.rb +13 -0
  100. data/app/queries/ahoy_captain/stats/average_visit_duration_query.rb +15 -0
  101. data/app/queries/ahoy_captain/stats/bounce_rates_query.rb +14 -0
  102. data/app/queries/ahoy_captain/stats/total_pageviews_query.rb +9 -0
  103. data/app/queries/ahoy_captain/stats/total_visitors_query.rb +9 -0
  104. data/app/queries/ahoy_captain/stats/unique_visitors_query.rb +9 -0
  105. data/app/queries/ahoy_captain/stats/views_per_visit_query.rb +17 -0
  106. data/app/queries/ahoy_captain/stats/visit_duration_query.rb +16 -0
  107. data/app/queries/ahoy_captain/visit_query.rb +32 -0
  108. data/app/views/ahoy_captain/campaigns/index.html+details.erb +4 -0
  109. data/app/views/ahoy_captain/campaigns/index.html.erb +3 -0
  110. data/app/views/ahoy_captain/cities/index.html+details.erb +4 -0
  111. data/app/views/ahoy_captain/cities/index.html.erb +3 -0
  112. data/app/views/ahoy_captain/countries/index.html+details.erb +5 -0
  113. data/app/views/ahoy_captain/countries/index.html.erb +3 -0
  114. data/app/views/ahoy_captain/devices/index.html+details.erb +4 -0
  115. data/app/views/ahoy_captain/devices/index.html.erb +3 -0
  116. data/app/views/ahoy_captain/entry_pages/index.html+details.erb +4 -0
  117. data/app/views/ahoy_captain/entry_pages/index.html.erb +3 -0
  118. data/app/views/ahoy_captain/exit_pages/index.html+details.erb +4 -0
  119. data/app/views/ahoy_captain/exit_pages/index.html.erb +3 -0
  120. data/app/views/ahoy_captain/funnels/index.html.erb +7 -0
  121. data/app/views/ahoy_captain/funnels/show.html.erb +6 -0
  122. data/app/views/ahoy_captain/goals/index.html.erb +39 -0
  123. data/app/views/ahoy_captain/layouts/application.html.erb +127 -0
  124. data/app/views/ahoy_captain/realtimes/show.html.erb +9 -0
  125. data/app/views/ahoy_captain/regions/index.html+details.erb +4 -0
  126. data/app/views/ahoy_captain/regions/index.html.erb +3 -0
  127. data/app/views/ahoy_captain/roots/show.html.erb +179 -0
  128. data/app/views/ahoy_captain/sources/index.html+details.erb +4 -0
  129. data/app/views/ahoy_captain/sources/index.html.erb +3 -0
  130. data/app/views/ahoy_captain/stats/base/index.html.erb +3 -0
  131. data/app/views/ahoy_captain/stats/show.html.erb +57 -0
  132. data/app/views/ahoy_captain/top_pages/index.html+details.erb +4 -0
  133. data/app/views/ahoy_captain/top_pages/index.html.erb +3 -0
  134. data/config/routes.rb +56 -0
  135. data/lib/ahoy_captain/active_record.rb +108 -0
  136. data/lib/ahoy_captain/ahoy/event_methods.rb +114 -0
  137. data/lib/ahoy_captain/ahoy/visit_methods.rb +23 -0
  138. data/lib/ahoy_captain/configuration.rb +43 -0
  139. data/lib/ahoy_captain/engine.rb +24 -0
  140. data/lib/ahoy_captain/funnels.rb +44 -0
  141. data/lib/ahoy_captain/goals.rb +39 -0
  142. data/lib/ahoy_captain/period_collection.rb +115 -0
  143. data/lib/ahoy_captain/railtie.rb +7 -0
  144. data/lib/ahoy_captain/version.rb +1 -3
  145. data/lib/ahoy_captain.rb +50 -4
  146. data/lib/generators/ahoy_captain/install_generator.rb +18 -0
  147. data/lib/generators/ahoy_captain/templates/config.rb.tt +123 -0
  148. metadata +393 -17
  149. data/.rspec +0 -3
  150. data/.rubocop.yml +0 -13
  151. data/CHANGELOG.md +0 -5
  152. data/Gemfile +0 -12
  153. data/ahoy_captain.gemspec +0 -37
  154. data/sig/ahoy_captain.rbs +0 -4
@@ -0,0 +1,123 @@
1
+ AhoyCaptain.configure do
2
+ # ==> Event tracking
3
+ #
4
+ # View name
5
+ # The event you use to dictate if a page view occurred
6
+ # config.event.view_name = "$view"
7
+ #
8
+ # URL column
9
+ # The properties that indicate what URL was viewed. Ahoy suggested tracking the
10
+ # controller and action for each view by default, so we use that here.
11
+ # config.event.url_column = "CONCAT(properties->>'controller', '#', properties->>'action')"
12
+ #
13
+ # If you have a `url` key in your `properties`, you could:
14
+ # config.event.url_column = "properties->>'url'"
15
+ #
16
+ # URL exists
17
+ # A query that indicates if a view event has the correct properties for a page view.
18
+ # config.event.url_exists = "JSONB_EXISTS(properties, 'controller') AND JSONB_EXISTS(properties, 'action')"
19
+ #
20
+ # ==> Models
21
+ #
22
+ # Ahoy::Event model
23
+ # config.models.event = '::Ahoy::Event'
24
+ #
25
+ # Ahoy::Visit model
26
+ # config.models.visit = '::Ahoy::Visit'
27
+ #
28
+ #
29
+ # ==> Theme
30
+ #
31
+ # https://daisyui.com/docs/themes/
32
+ # config.theme = "dark"
33
+
34
+ # ==> Disabled widgets
35
+ # Some widgets are more expensive than others. You can disable them here.
36
+ #
37
+ # Here's the list of widgets:
38
+ # * sources
39
+ # * campaigns.utm_medium
40
+ # * campaigns.utm_source
41
+ # * campaigns.utm_term
42
+ # * campaigns.utm_content
43
+ # * campaigns.utm_campaign
44
+ # * top_pages
45
+ # * entry_pages
46
+ # * landing_pages
47
+ # * locations.countries
48
+ # * locations.regions
49
+ # * locations.cities
50
+ # * devices.browsers
51
+ # * devices.operating_systems
52
+ # * devices.device_types
53
+ #
54
+ # config.disabled_widgets = []
55
+
56
+ # ==> Time periods
57
+ #
58
+ # Defaults come from lib/ahoy_captain/period_collection.rb
59
+ #
60
+ # If you want your own entirely, first call reset.
61
+ # config.ranges.reset
62
+ #
63
+ # Then you can add your own.
64
+ # config.ranges.add :param_name, "Label", -> { [3.days.ago, Date.today] }
65
+ #
66
+ # You can also remove an existing one:
67
+ # config.ranges.delete(:mtd)
68
+ #
69
+ # Or add to the defaults:
70
+ # config.ranges.add :custom, "Custom", -> { [6.hours.ago, 2.minutes.ago] }
71
+ #
72
+ # Or overwrite the defaults:
73
+ # config.ranges.add :mtd, "Custom MTD", -> { [2.weeks.ago, Time.current] }
74
+ #
75
+ # And handle the default range, which will be used if no range is given:
76
+ # config.ranges.default = '3d'
77
+
78
+ # ==> Caching
79
+ # config.cache.enabled = false
80
+ #
81
+ # Cache store should be an ActiveSupport::Cache::Store instance
82
+ # config.cache.store = Rails.cache
83
+ #
84
+ # TTL
85
+ # config.cache.ttl = 1.minute
86
+
87
+ #==> Goal tracking
88
+ # Your mother told you to have goals. Track those goals.
89
+ #
90
+ # Basically:
91
+ #
92
+ # config.goal :unique_id do
93
+ # label "Some label here"
94
+ # event "The event name you're tracking in your Ahoy::Event table"
95
+ # end
96
+ #
97
+ # Real-world example:
98
+ #
99
+ # config.goal :appointment_paid do
100
+ # label "Appointment Paid"
101
+ # event "$appointment.paid"
102
+ # end
103
+
104
+ # ==> Funnels
105
+ # Your mother definitely didn't tell you about conversation rate.
106
+ # Except, you're here, so...
107
+ #
108
+ # Basically:
109
+ #
110
+ # config.funnel :id do
111
+ # label "Some label"
112
+ # goal :goal_id_1
113
+ # goal :goal_id_2
114
+ # end
115
+ #
116
+ # Real-world example:
117
+ #
118
+ # config.funnel :appointments do
119
+ # label "Appointment Workflow"
120
+ # goal :appointment_created
121
+ # goal :appointment_paid
122
+ # end
123
+ end
metadata CHANGED
@@ -1,34 +1,409 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_captain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: '0.76'
5
5
  platform: ruby
6
6
  authors:
7
7
  - joshmn
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-28 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A top-secret project, created in Los Alamos.
11
+ date: 2023-07-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ransack
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: turbo-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '1.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '1.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: view_component
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: importmap-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: stimulus-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '1.1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '1.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: ahoy_matey
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '1.1'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: chartkick
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '4'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '4'
125
+ - !ruby/object:Gem::Dependency
126
+ name: groupdate
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '5'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '5'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pagy
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '4'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '4'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '6'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '6'
167
+ - !ruby/object:Gem::Dependency
168
+ name: sprockets-rails
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: better_errors
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: binding_of_caller
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: sassc
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: puma
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: pg
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description: A full-featured, mountable analytics dashboard for your Rails app, powered
252
+ by Ahoy.
14
253
  email:
15
- - josh@josh.mn
16
254
  executables: []
17
255
  extensions: []
18
256
  extra_rdoc_files: []
19
257
  files:
20
- - ".rspec"
21
- - ".rubocop.yml"
22
- - CHANGELOG.md
23
- - Gemfile
258
+ - MIT-LICENSE
24
259
  - README.md
25
260
  - Rakefile
26
- - ahoy_captain.gemspec
261
+ - app/assets/images/ahoy_captain/apple-touch-icon.png
262
+ - app/assets/images/ahoy_captain/favicon-16x16.png
263
+ - app/assets/images/ahoy_captain/favicon-32x32.png
264
+ - app/assets/images/ahoy_captain/logo.png
265
+ - app/assets/images/ahoy_captain/safari-pinned-tab.svg
266
+ - app/assets/javascript/ahoy_captain/application.js
267
+ - app/assets/javascript/ahoy_captain/controllers/application.js
268
+ - app/assets/javascript/ahoy_captain/controllers/application_controller.js
269
+ - app/assets/javascript/ahoy_captain/controllers/details_modal_controller.js
270
+ - app/assets/javascript/ahoy_captain/controllers/dropdown_label_controller.js
271
+ - app/assets/javascript/ahoy_captain/controllers/filter_controller.js
272
+ - app/assets/javascript/ahoy_captain/controllers/filter_tag_controller.js
273
+ - app/assets/javascript/ahoy_captain/controllers/funnel_chart_controller.js
274
+ - app/assets/javascript/ahoy_captain/controllers/index.js
275
+ - app/assets/javascript/ahoy_captain/controllers/link_controller.js
276
+ - app/assets/javascript/ahoy_captain/controllers/navigation_controller.js
277
+ - app/assets/javascript/ahoy_captain/controllers/realtime_controller.js
278
+ - app/assets/manifest/ahoy_captain/manifest.js
279
+ - app/components/ahoy_captain/dropdown_button_component.html.erb
280
+ - app/components/ahoy_captain/dropdown_button_component.rb
281
+ - app/components/ahoy_captain/dropdown_link_component.html.erb
282
+ - app/components/ahoy_captain/dropdown_link_component.rb
283
+ - app/components/ahoy_captain/filter/modal_component.html.erb
284
+ - app/components/ahoy_captain/filter/modal_component.rb
285
+ - app/components/ahoy_captain/filter/select_component.html.erb
286
+ - app/components/ahoy_captain/filter/select_component.rb
287
+ - app/components/ahoy_captain/filter/tag_component.html.erb
288
+ - app/components/ahoy_captain/filter/tag_component.rb
289
+ - app/components/ahoy_captain/filter/tag_container_component.html.erb
290
+ - app/components/ahoy_captain/filter/tag_container_component.rb
291
+ - app/components/ahoy_captain/sticky_nav_component.html.erb
292
+ - app/components/ahoy_captain/sticky_nav_component.rb
293
+ - app/components/ahoy_captain/table_component.html.erb
294
+ - app/components/ahoy_captain/table_component.rb
295
+ - app/components/ahoy_captain/tile_component.html.erb
296
+ - app/components/ahoy_captain/tile_component.rb
297
+ - app/components/ahoy_captain/tooltip_component.html.erb
298
+ - app/components/ahoy_captain/tooltip_component.rb
299
+ - app/controllers/ahoy_captain/application_controller.rb
300
+ - app/controllers/ahoy_captain/campaigns_controller.rb
301
+ - app/controllers/ahoy_captain/cities_controller.rb
302
+ - app/controllers/ahoy_captain/countries_controller.rb
303
+ - app/controllers/ahoy_captain/devices_controller.rb
304
+ - app/controllers/ahoy_captain/entry_pages_controller.rb
305
+ - app/controllers/ahoy_captain/exit_pages_controller.rb
306
+ - app/controllers/ahoy_captain/filters/base_controller.rb
307
+ - app/controllers/ahoy_captain/filters/locations_controller.rb
308
+ - app/controllers/ahoy_captain/filters/operating_systems/names_controller.rb
309
+ - app/controllers/ahoy_captain/filters/operating_systems/versions_controller.rb
310
+ - app/controllers/ahoy_captain/filters/pages/actions_controller.rb
311
+ - app/controllers/ahoy_captain/filters/pages/entry_pages_controller.rb
312
+ - app/controllers/ahoy_captain/filters/pages/exit_pages_controller.rb
313
+ - app/controllers/ahoy_captain/filters/screens_controller.rb
314
+ - app/controllers/ahoy_captain/filters/sources_controller.rb
315
+ - app/controllers/ahoy_captain/filters/utms_controller.rb
316
+ - app/controllers/ahoy_captain/funnels_controller.rb
317
+ - app/controllers/ahoy_captain/goals_controller.rb
318
+ - app/controllers/ahoy_captain/realtimes_controller.rb
319
+ - app/controllers/ahoy_captain/regions_controller.rb
320
+ - app/controllers/ahoy_captain/roots_controller.rb
321
+ - app/controllers/ahoy_captain/sources_controller.rb
322
+ - app/controllers/ahoy_captain/stats/base_controller.rb
323
+ - app/controllers/ahoy_captain/stats/bounce_rates_controller.rb
324
+ - app/controllers/ahoy_captain/stats/total_pageviews_controller.rb
325
+ - app/controllers/ahoy_captain/stats/total_visits_controller.rb
326
+ - app/controllers/ahoy_captain/stats/unique_visitors_controller.rb
327
+ - app/controllers/ahoy_captain/stats/views_per_visits_controller.rb
328
+ - app/controllers/ahoy_captain/stats/visit_durations_controller.rb
329
+ - app/controllers/ahoy_captain/stats_controller.rb
330
+ - app/controllers/ahoy_captain/top_pages_controller.rb
331
+ - app/decorators/ahoy_captain/application_decorator.rb
332
+ - app/decorators/ahoy_captain/campaign_decorator.rb
333
+ - app/decorators/ahoy_captain/city_decorator.rb
334
+ - app/decorators/ahoy_captain/country_decorator.rb
335
+ - app/decorators/ahoy_captain/device_decorator.rb
336
+ - app/decorators/ahoy_captain/entry_page_decorator.rb
337
+ - app/decorators/ahoy_captain/exit_page_decorator.rb
338
+ - app/decorators/ahoy_captain/page_decorator.rb
339
+ - app/decorators/ahoy_captain/region_decorator.rb
340
+ - app/decorators/ahoy_captain/source_decorator.rb
341
+ - app/decorators/ahoy_captain/top_page_decorator.rb
342
+ - app/helpers/ahoy_captain/application_helper.rb
343
+ - app/models/ahoy_captain/current.rb
344
+ - app/models/ahoy_captain/rangeable.rb
345
+ - app/models/ahoy_captain/url_helpers.rb
346
+ - app/models/ahoy_captain/widget.rb
347
+ - app/models/concerns/ahoy_captain/range_options.rb
348
+ - app/presenters/ahoy_captain/dashboard_presenter.rb
349
+ - app/presenters/ahoy_captain/funnel_presenter.rb
350
+ - app/presenters/ahoy_captain/goals_presenter.rb
351
+ - app/queries/ahoy_captain/application_query.rb
352
+ - app/queries/ahoy_captain/entry_pages_query.rb
353
+ - app/queries/ahoy_captain/event_query.rb
354
+ - app/queries/ahoy_captain/exit_pages_query.rb
355
+ - app/queries/ahoy_captain/stats/average_views_per_visit_query.rb
356
+ - app/queries/ahoy_captain/stats/average_visit_duration_query.rb
357
+ - app/queries/ahoy_captain/stats/bounce_rates_query.rb
358
+ - app/queries/ahoy_captain/stats/total_pageviews_query.rb
359
+ - app/queries/ahoy_captain/stats/total_visitors_query.rb
360
+ - app/queries/ahoy_captain/stats/unique_visitors_query.rb
361
+ - app/queries/ahoy_captain/stats/views_per_visit_query.rb
362
+ - app/queries/ahoy_captain/stats/visit_duration_query.rb
363
+ - app/queries/ahoy_captain/visit_query.rb
364
+ - app/views/ahoy_captain/campaigns/index.html+details.erb
365
+ - app/views/ahoy_captain/campaigns/index.html.erb
366
+ - app/views/ahoy_captain/cities/index.html+details.erb
367
+ - app/views/ahoy_captain/cities/index.html.erb
368
+ - app/views/ahoy_captain/countries/index.html+details.erb
369
+ - app/views/ahoy_captain/countries/index.html.erb
370
+ - app/views/ahoy_captain/devices/index.html+details.erb
371
+ - app/views/ahoy_captain/devices/index.html.erb
372
+ - app/views/ahoy_captain/entry_pages/index.html+details.erb
373
+ - app/views/ahoy_captain/entry_pages/index.html.erb
374
+ - app/views/ahoy_captain/exit_pages/index.html+details.erb
375
+ - app/views/ahoy_captain/exit_pages/index.html.erb
376
+ - app/views/ahoy_captain/funnels/index.html.erb
377
+ - app/views/ahoy_captain/funnels/show.html.erb
378
+ - app/views/ahoy_captain/goals/index.html.erb
379
+ - app/views/ahoy_captain/layouts/application.html.erb
380
+ - app/views/ahoy_captain/realtimes/show.html.erb
381
+ - app/views/ahoy_captain/regions/index.html+details.erb
382
+ - app/views/ahoy_captain/regions/index.html.erb
383
+ - app/views/ahoy_captain/roots/show.html.erb
384
+ - app/views/ahoy_captain/sources/index.html+details.erb
385
+ - app/views/ahoy_captain/sources/index.html.erb
386
+ - app/views/ahoy_captain/stats/base/index.html.erb
387
+ - app/views/ahoy_captain/stats/show.html.erb
388
+ - app/views/ahoy_captain/top_pages/index.html+details.erb
389
+ - app/views/ahoy_captain/top_pages/index.html.erb
390
+ - config/routes.rb
27
391
  - lib/ahoy_captain.rb
392
+ - lib/ahoy_captain/active_record.rb
393
+ - lib/ahoy_captain/ahoy/event_methods.rb
394
+ - lib/ahoy_captain/ahoy/visit_methods.rb
395
+ - lib/ahoy_captain/configuration.rb
396
+ - lib/ahoy_captain/engine.rb
397
+ - lib/ahoy_captain/funnels.rb
398
+ - lib/ahoy_captain/goals.rb
399
+ - lib/ahoy_captain/period_collection.rb
400
+ - lib/ahoy_captain/railtie.rb
28
401
  - lib/ahoy_captain/version.rb
29
- - sig/ahoy_captain.rbs
30
- homepage: https://github.com/joshmn/ahoy_captain
31
- licenses: []
402
+ - lib/generators/ahoy_captain/install_generator.rb
403
+ - lib/generators/ahoy_captain/templates/config.rb.tt
404
+ homepage:
405
+ licenses:
406
+ - MIT
32
407
  metadata:
33
408
  homepage_uri: https://github.com/joshmn/ahoy_captain
34
409
  source_code_uri: https://github.com/joshmn/ahoy_captain
@@ -41,15 +416,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
416
  requirements:
42
417
  - - ">="
43
418
  - !ruby/object:Gem::Version
44
- version: 2.6.0
419
+ version: '0'
45
420
  required_rubygems_version: !ruby/object:Gem::Requirement
46
421
  requirements:
47
422
  - - ">="
48
423
  - !ruby/object:Gem::Version
49
424
  version: '0'
50
425
  requirements: []
51
- rubygems_version: 3.4.7
426
+ rubygems_version: 3.3.11
52
427
  signing_key:
53
428
  specification_version: 4
54
- summary: A top-secret project, created in Los Alamos.
429
+ summary: A full-featured, mountable analytics dashboard for your Rails app, powered
430
+ by Ahoy.
55
431
  test_files: []
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,13 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.6
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2023-07-28
4
-
5
- - Initial release
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in ahoy_captain.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
11
-
12
- gem "rubocop", "~> 1.21"
data/ahoy_captain.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/ahoy_captain/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "ahoy_captain"
7
- spec.version = AhoyCaptain::VERSION
8
- spec.authors = ["joshmn"]
9
- spec.email = ["josh@josh.mn"]
10
-
11
- spec.summary = "A top-secret project, created in Los Alamos."
12
- spec.description = spec.summary
13
- spec.homepage = "https://github.com/joshmn/ahoy_captain"
14
- spec.required_ruby_version = ">= 2.6.0"
15
-
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = spec.homepage
19
- spec.metadata["changelog_uri"] = spec.homepage
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(__dir__) do
24
- `git ls-files -z`.split("\x0").reject do |f|
25
- (File.expand_path(f) == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
26
- end
27
- end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
31
-
32
- # Uncomment to register a new dependency of your gem
33
- # spec.add_dependency "example-gem", "~> 1.0"
34
-
35
- # For more information and examples about making a new gem, check out our
36
- # guide at: https://bundler.io/guides/creating_gem.html
37
- end
data/sig/ahoy_captain.rbs DELETED
@@ -1,4 +0,0 @@
1
- module AhoyCaptain
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end