nano-pure-pkg 0.0.1

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.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/ahoy_matey-5.5.0/CHANGELOG.md +403 -0
  3. data/ahoy_matey-5.5.0/CONTRIBUTING.md +42 -0
  4. data/ahoy_matey-5.5.0/LICENSE.txt +22 -0
  5. data/ahoy_matey-5.5.0/README.md +802 -0
  6. data/ahoy_matey-5.5.0/app/controllers/ahoy/base_controller.rb +44 -0
  7. data/ahoy_matey-5.5.0/app/controllers/ahoy/events_controller.rb +51 -0
  8. data/ahoy_matey-5.5.0/app/controllers/ahoy/visits_controller.rb +15 -0
  9. data/ahoy_matey-5.5.0/config/routes.rb +10 -0
  10. data/ahoy_matey-5.5.0/lib/ahoy/base_store.rb +104 -0
  11. data/ahoy_matey-5.5.0/lib/ahoy/controller.rb +56 -0
  12. data/ahoy_matey-5.5.0/lib/ahoy/database_store.rb +96 -0
  13. data/ahoy_matey-5.5.0/lib/ahoy/engine.rb +37 -0
  14. data/ahoy_matey-5.5.0/lib/ahoy/geocode_v2_job.rb +31 -0
  15. data/ahoy_matey-5.5.0/lib/ahoy/helper.rb +40 -0
  16. data/ahoy_matey-5.5.0/lib/ahoy/model.rb +15 -0
  17. data/ahoy_matey-5.5.0/lib/ahoy/query_methods.rb +88 -0
  18. data/ahoy_matey-5.5.0/lib/ahoy/tracker.rb +287 -0
  19. data/ahoy_matey-5.5.0/lib/ahoy/utils.rb +7 -0
  20. data/ahoy_matey-5.5.0/lib/ahoy/version.rb +3 -0
  21. data/ahoy_matey-5.5.0/lib/ahoy/visit_properties.rb +122 -0
  22. data/ahoy_matey-5.5.0/lib/ahoy/warden.rb +5 -0
  23. data/ahoy_matey-5.5.0/lib/ahoy.rb +167 -0
  24. data/ahoy_matey-5.5.0/lib/ahoy_matey.rb +1 -0
  25. data/ahoy_matey-5.5.0/lib/generators/ahoy/activerecord_generator.rb +59 -0
  26. data/ahoy_matey-5.5.0/lib/generators/ahoy/base_generator.rb +13 -0
  27. data/ahoy_matey-5.5.0/lib/generators/ahoy/install_generator.rb +44 -0
  28. data/ahoy_matey-5.5.0/lib/generators/ahoy/mongoid_generator.rb +16 -0
  29. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/active_record_event_model.rb.tt +10 -0
  30. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/active_record_migration.rb.tt +62 -0
  31. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/active_record_visit_model.rb.tt +6 -0
  32. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/base_store_initializer.rb.tt +25 -0
  33. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/database_store_initializer.rb.tt +10 -0
  34. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/mongoid_event_model.rb.tt +14 -0
  35. data/ahoy_matey-5.5.0/lib/generators/ahoy/templates/mongoid_visit_model.rb.tt +50 -0
  36. data/ahoy_matey-5.5.0/vendor/assets/javascripts/ahoy.js +544 -0
  37. data/nano-pure-pkg.gemspec +12 -0
  38. metadata +77 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5f246b3bf1cffffc676b14790a31865f4cb8402c5cda01ee2056adb87280db22
4
+ data.tar.gz: e6ddd63ae189b9b124fa486a77fcc0bc698f80684892ab602b1ba141aaf0db26
5
+ SHA512:
6
+ metadata.gz: a0e6f24c52c42d9224955607bb39d0ece20c4c01e3e19d897927ca645a70078f2580b4b09bc34aa8768169e915abedba7a0583ded808ac8d313d96634e730886
7
+ data.tar.gz: 3db99a2d598f30b6ade670c045e145c9efdfc4d390aa52b896af6b6464cad9b098c4cae5cc5495f70d89803e9457e96fc872dab2cd5ec459373f903136fd8993
@@ -0,0 +1,403 @@
1
+ ## 5.5.0 (2026-04-08)
2
+
3
+ - Fixed error with `Ahoy::Tracker` outside of requests
4
+ - Dropped support for Ruby < 3.3 and Rails < 7.2
5
+
6
+ ## 5.4.2 (2026-03-31)
7
+
8
+ - Fixed cookie deletion with `cookie_domain` and `cookie_options` options
9
+ - Updated Ahoy.js to 0.4.5
10
+
11
+ ## 5.4.1 (2025-09-30)
12
+
13
+ - Fixed deprecation warning with Rack 3.1+
14
+
15
+ ## 5.4.0 (2025-05-04)
16
+
17
+ - Dropped support for Ruby < 3.2 and Rails < 7.1
18
+
19
+ ## 5.3.0 (2025-02-01)
20
+
21
+ - Dropped support for Ruby < 3.1 and Rails < 7
22
+ - Dropped support for Mongoid < 8
23
+
24
+ ## 5.2.1 (2024-10-07)
25
+
26
+ - Fixed connection leasing for Active Record 7.2+
27
+
28
+ ## 5.2.0 (2024-09-04)
29
+
30
+ - Improved error handling for invalid API parameters
31
+
32
+ ## 5.1.0 (2024-03-26)
33
+
34
+ - Added support for Trilogy
35
+ - Updated Ahoy.js to 0.4.4
36
+
37
+ ## 5.0.2 (2023-10-05)
38
+
39
+ - Excluded visits from Rails health check
40
+
41
+ ## 5.0.1 (2023-10-01)
42
+
43
+ - Fixed error with geocoding with anonymity sets
44
+
45
+ ## 5.0.0 (2023-10-01)
46
+
47
+ - Changed visits to expire with anonymity sets
48
+ - Fixed error when Active Job is not available
49
+ - Fixed deprecation warning with Rails 7.1
50
+ - Dropped support for Ruby < 3 and Rails < 6.1
51
+ - Dropped support for Mongoid 6
52
+
53
+ ## 4.2.1 (2023-02-23)
54
+
55
+ - Updated Ahoy.js to 0.4.2
56
+
57
+ ## 4.2.0 (2023-02-07)
58
+
59
+ - Added primary key type to generated migration
60
+ - Updated Ahoy.js to 0.4.1
61
+
62
+ ## 4.1.0 (2022-06-12)
63
+
64
+ - Ensure `exclude_method` is only called once per request
65
+ - Fixed error with Mongoid when `Mongoid.raise_not_found_error` is `true`
66
+ - Fixed association for Mongoid
67
+
68
+ ## 4.0.3 (2022-01-15)
69
+
70
+ - Support for `importmap-rails` is no longer experimental
71
+ - Fixed asset precompilation error with `importmap-rails`
72
+
73
+ ## 4.0.2 (2021-11-06)
74
+
75
+ - Added experimental support for `importmap-rails`
76
+
77
+ ## 4.0.1 (2021-08-18)
78
+
79
+ - Added support for `where_event`, `where_props`, and `where_group` for SQLite
80
+ - Fixed results with `where_event` for MySQL, MariaDB, and Postgres `hstore`
81
+ - Fixed results with `where_props` and `where_group` when used with other scopes for MySQL, MariaDB, and Postgres `hstore`
82
+
83
+ ## 4.0.0 (2021-08-14)
84
+
85
+ - Disabled geocoding by default (this was already the case for new installations with 3.2.0+)
86
+ - Made the `geocoder` gem an optional dependency
87
+ - Updated Ahoy.js to 0.4.0
88
+ - Updated API to return 400 status code when missing required parameters
89
+ - Dropped support for Ruby < 2.6 and Rails < 5.2
90
+
91
+ ## 3.3.0 (2021-08-13)
92
+
93
+ - Added `country_code` to geocoding
94
+ - Updated Ahoy.js to 0.3.9
95
+ - Fixed install generator for MariaDB
96
+
97
+ ## 3.2.0 (2021-03-01)
98
+
99
+ - Disabled geocoding by default for new installations
100
+ - Fixed deprecation warning with Active Record 6.1
101
+
102
+ ## 3.1.0 (2020-12-04)
103
+
104
+ - Added `instance` method
105
+ - Added `request` argument to `user_method`
106
+ - Updated Ahoy.js to 0.3.8
107
+ - Removed `exclude_method` call when geocoding
108
+
109
+ ## 3.0.5 (2020-09-09)
110
+
111
+ - Added `group_prop` method
112
+ - Use `datetime` type in migration
113
+
114
+ ## 3.0.4 (2020-06-07)
115
+
116
+ - Updated Ahoy.js to 0.3.6
117
+
118
+ ## 3.0.3 (2020-04-17)
119
+
120
+ - Updated Ahoy.js to 0.3.5
121
+
122
+ ## 3.0.2 (2020-04-03)
123
+
124
+ - Added `cookie_options`
125
+
126
+ ## 3.0.1 (2019-09-21)
127
+
128
+ - Made `Ahoy::Tracker` work outside of requests
129
+ - Fixed storage of `false` values with customized store
130
+ - Fixed error with `user_method` and `Rails::InfoController`
131
+ - Gracefully handle `ActionDispatch::RemoteIp::IpSpoofAttackError`
132
+
133
+ ## 3.0.0 (2019-05-29)
134
+
135
+ - Made Device Detector the default user agent parser
136
+ - Made v2 the default bot detection version
137
+ - Removed a large number of dependencies
138
+ - Removed search keyword detection (most search engines today prevent this)
139
+ - Removed support for Rails < 5
140
+
141
+ ## 2.2.1 (2019-05-26)
142
+
143
+ - Updated Ahoy.js to 0.3.4
144
+ - Fixed v2 bot detection
145
+ - Added latitude and longitude to installation
146
+
147
+ ## 2.2.0 (2019-01-04)
148
+
149
+ - Added `amp_event` helper
150
+ - Improved bot detection for Device Detector
151
+
152
+ ## 2.1.0 (2018-05-18)
153
+
154
+ - Added option for IP masking
155
+ - Added option to use anonymity sets instead of cookies
156
+ - Added `user_agent_parser` option
157
+ - Fixed `visitable` for Rails 4.2
158
+ - Removed `search_keyword` from new installs
159
+
160
+ ## 2.0.2 (2018-03-14)
161
+
162
+ - Fixed error on duplicate records
163
+ - Fixed message when visit not found for geocoding
164
+ - Better compatibility with GeoLite2
165
+ - Better browser compatibility for Ahoy.js
166
+
167
+ ## 2.0.1 (2018-02-26)
168
+
169
+ - Added `Ahoy.server_side_visits = :when_needed` to automatically create visits server-side when needed for events and `visitable`
170
+ - Better handling of visit duration and expiration in JavaScript
171
+
172
+ ## 2.0.0 (2018-02-25)
173
+
174
+ - Removed dependency on jQuery
175
+ - Use `navigator.sendBeacon` by default in supported browsers
176
+ - Added `geocode` event
177
+ - Added `where_event` method for querying events
178
+ - Added support for `visitable` and `where_props` to Mongoid
179
+ - Added `preserve_callbacks` option
180
+ - Use `json` for MySQL by default
181
+ - Fixed log silencing
182
+
183
+ Breaking changes
184
+
185
+ - Simpler interface for data stores
186
+ - Renamed `track_visits_immediately` to `server_side_visits` and enabled by default
187
+ - Renamed `mount` option to `api` and disabled by default
188
+ - Enabled `protect_from_forgery` by default
189
+ - Removed deprecated options
190
+ - Removed throttling
191
+ - Removed most built-in stores
192
+ - Removed support for Rails < 4.2
193
+
194
+ ## 1.6.1 (2018-02-02)
195
+
196
+ - Added `gin` index on properties for events
197
+ - Fixed `visitable` options when name not provided
198
+
199
+ ## 1.6.0 (2017-05-01)
200
+
201
+ - Added support for Rails 5.1
202
+
203
+ ## 1.5.5 (2017-03-23)
204
+
205
+ - Added support for Rails API
206
+ - Added NATS and NSQ stores
207
+
208
+ ## 1.5.4 (2017-01-22)
209
+
210
+ - Fixed issue with duplicate events
211
+ - Added support for PostGIS for `where_properties`
212
+
213
+ ## 1.5.3 (2016-10-31)
214
+
215
+ - Fixed error with Rails 5 and Mongoid 6
216
+ - Fixed regression with server not generating visit and visitor tokens
217
+ - Accept UTM parameters as request parameters (for native apps)
218
+
219
+ ## 1.5.2 (2016-08-26)
220
+
221
+ - Better support for Rails 5
222
+
223
+ ## 1.5.1 (2016-08-19)
224
+
225
+ - Restored throttling after removing side effects
226
+
227
+ ## 1.5.0 (2016-08-19)
228
+
229
+ - Removed throttling due to unintended side effects with its implementation
230
+ - Ensure basic token requirements
231
+ - Fixed visit recreation on cookie expiration
232
+ - Fixed issue where `/ahoy/visits` is called indefinitely when `Ahoy.cookie_domain = :all`
233
+
234
+ ## 1.4.2 (2016-06-21)
235
+
236
+ - Fixed issues with `where_properties`
237
+
238
+ ## 1.4.1 (2016-06-20)
239
+
240
+ - Added `where_properties` method
241
+ - Added Kafka store
242
+ - Added `mount` option
243
+ - Use less intrusive version of `safely`
244
+
245
+ ## 1.4.0 (2016-03-23)
246
+
247
+ - Use `ActiveRecordTokenStore` by default (integer instead of uuid for id)
248
+ - Detect database for `rails g ahoy:stores:active_record` for easier installation
249
+ - Use `safely` as default exception handler
250
+ - Fixed issue with log silencer
251
+ - Use multi-column indexes on `ahoy_events` table creation
252
+
253
+ ## 1.3.1 (2016-03-22)
254
+
255
+ - Raise errors in test environment
256
+
257
+ ## 1.3.0 (2016-03-06)
258
+
259
+ - Added throttling
260
+ - Added `max_content_length` and `max_events_per_request`
261
+
262
+ ## 1.2.2 (2016-03-05)
263
+
264
+ - Fixed issue with latest version of `browser` gem
265
+ - Added support for RabbitMQ
266
+ - Added support for Amazon Kinesis Firehose
267
+ - Fixed deprecation warnings in Rails 5
268
+
269
+ ## 1.2.1 (2015-08-14)
270
+
271
+ - Fixed `SystemStackError: stack level too deep` when used with `activerecord-session_store`
272
+
273
+ ## 1.2.0 (2015-06-07)
274
+
275
+ - Added support for PostgreSQL `jsonb` column type
276
+ - Added Fluentd store
277
+ - Added latitude, longitude, and postal_code to visits
278
+ - Log exclusions
279
+
280
+ ## 1.1.1 (2015-01-05)
281
+
282
+ - Better support for Authlogic
283
+ - Added `screen_height` and `screen_width`
284
+
285
+ ## 1.1.0 (2014-11-02)
286
+
287
+ - Added `geocode` option
288
+ - Report errors to service by default
289
+ - Fixed association mismatch
290
+
291
+ ## 1.0.2 (2014-07-10)
292
+
293
+ - Fixed BSON for Mongoid 3
294
+ - Fixed Doorkeeper integration
295
+ - Fixed user tracking in overridden authenticate method
296
+
297
+ ## 1.0.1 (2014-06-27)
298
+
299
+ - Fixed `visitable` outside of requests
300
+
301
+ ## 1.0.0 (2014-06-18)
302
+
303
+ - Added support for any data store, and Mongoid out of the box
304
+ - Added `track_visits_immediately` option
305
+ - Added exception catching and reporting
306
+ - Visits expire after inactivity, not fixed interval
307
+ - Added `visit_duration` and `visitor_duration` options
308
+
309
+ ## 0.3.2 (2014-06-15)
310
+
311
+ - Fixed bot exclusion for visits
312
+ - Fixed user method
313
+
314
+ ## 0.3.1 (2014-06-12)
315
+
316
+ - Fixed visitor cookies when set on server
317
+ - Added `domain` option for server cookies
318
+
319
+ ## 0.3.0 (2014-06-11)
320
+
321
+ - Added `current_visit_token` and `current_visitor_token` method
322
+ - Switched to UUIDs
323
+ - Quiet endpoint requests
324
+ - Skip server-side bot events
325
+ - Added `request` argument to `exclude_method`
326
+
327
+ ## 0.2.2 (2014-05-26)
328
+
329
+ - Added `exclude_method` option
330
+ - Added support for batch events
331
+ - Fixed cookie encoding
332
+ - Fixed `options` variable from being modified
333
+
334
+ ## 0.2.1 (2014-05-16)
335
+
336
+ - Fixed IE 8 error
337
+ - Added `track_bots` option
338
+ - Added `$authenticate` event
339
+
340
+ ## 0.2.0 (2014-05-13)
341
+
342
+ - Added event tracking (merged ahoy_events)
343
+ - Added ahoy.js
344
+
345
+ ## 0.1.8 (2014-05-11)
346
+
347
+ - Fixed bug with `user_type` set to `false` instead of `nil`
348
+
349
+ ## 0.1.7 (2014-05-11)
350
+
351
+ - Made cookie functions public for ahoy_events
352
+
353
+ ## 0.1.6 (2014-05-07)
354
+
355
+ - Better user agent parser
356
+
357
+ ## 0.1.5 (2014-05-01)
358
+
359
+ - Added support for Doorkeeper
360
+ - Added options to `visitable`
361
+ - Added `landing_params` method
362
+
363
+ ## 0.1.4 (2014-04-27)
364
+
365
+ - Added `ahoy.ready()` and `ahoy.log()` for events
366
+
367
+ ## 0.1.3 (2014-04-24)
368
+
369
+ - Supports `current_user` from `ApplicationController`
370
+ - Added `ahoy.reset()`
371
+ - Added `ahoy.debug()`
372
+ - Added experimental support for native apps
373
+ - Prefer `ahoy` over `Ahoy`
374
+
375
+ ## 0.1.2 (2014-04-15)
376
+
377
+ - Attach user on Devise sign up
378
+ - Ability to specify visit model
379
+
380
+ ## 0.1.1 (2014-03-20)
381
+
382
+ - Made most database columns optional
383
+ - Performance hack for referer-parser
384
+
385
+ ## 0.1.0 (2014-03-19)
386
+
387
+ - First major release
388
+
389
+ ## 0.0.4 (2014-03-01)
390
+
391
+ - Added UTM parameters
392
+
393
+ ## 0.0.3 (2014-02-26)
394
+
395
+ - Renamed `ahoy_visit` method to `current_visit`
396
+
397
+ ## 0.0.2 (2014-02-26)
398
+
399
+ - Added `ahoy_visit` method to controllers
400
+
401
+ ## 0.0.1 (2014-02-26)
402
+
403
+ - First release
@@ -0,0 +1,42 @@
1
+ # Contributing
2
+
3
+ First, thanks for wanting to contribute. You’re awesome! :heart:
4
+
5
+ ## Help
6
+
7
+ We’re not able to provide support through GitHub Issues. If you’re looking for help with your code, try posting on [Stack Overflow](https://stackoverflow.com/).
8
+
9
+ All features should be documented. If you don’t see a feature in the docs, assume it doesn’t exist.
10
+
11
+ ## Bugs
12
+
13
+ Think you’ve discovered a bug?
14
+
15
+ 1. Search existing issues to see if it’s been reported.
16
+ 2. Try the `master` branch to make sure it hasn’t been fixed.
17
+
18
+ ```rb
19
+ gem "ahoy_matey", github: "ankane/ahoy"
20
+ ```
21
+
22
+ If the above steps don’t help, create an issue. Include:
23
+
24
+ - Detailed steps to reproduce
25
+ - Complete backtraces for exceptions
26
+
27
+ ## New Features
28
+
29
+ If you’d like to discuss a new feature, create an issue and start the title with `[Idea]`.
30
+
31
+ ## Pull Requests
32
+
33
+ Fork the project and create a pull request. A few tips:
34
+
35
+ - Keep changes to a minimum. If you have multiple features or fixes, submit multiple pull requests.
36
+ - Follow the existing style. The code should read like it’s written by a single person.
37
+
38
+ Feel free to open an issue to get feedback on your idea before spending too much time on it.
39
+
40
+ ---
41
+
42
+ This contributing guide is released under [CCO](https://creativecommons.org/publicdomain/zero/1.0/) (public domain). Use it for your own project without attribution.
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014-2026 Andrew Kane
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.