hyper-pure-sys 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 (52) hide show
  1. checksums.yaml +7 -0
  2. data/bullet-8.1.3/CHANGELOG.md +374 -0
  3. data/bullet-8.1.3/MIT-LICENSE +20 -0
  4. data/bullet-8.1.3/README.md +525 -0
  5. data/bullet-8.1.3/lib/bullet/active_job.rb +13 -0
  6. data/bullet-8.1.3/lib/bullet/active_record4.rb +197 -0
  7. data/bullet-8.1.3/lib/bullet/active_record41.rb +191 -0
  8. data/bullet-8.1.3/lib/bullet/active_record42.rb +262 -0
  9. data/bullet-8.1.3/lib/bullet/active_record5.rb +294 -0
  10. data/bullet-8.1.3/lib/bullet/active_record52.rb +278 -0
  11. data/bullet-8.1.3/lib/bullet/active_record60.rb +310 -0
  12. data/bullet-8.1.3/lib/bullet/active_record61.rb +310 -0
  13. data/bullet-8.1.3/lib/bullet/active_record70.rb +319 -0
  14. data/bullet-8.1.3/lib/bullet/active_record71.rb +319 -0
  15. data/bullet-8.1.3/lib/bullet/active_record72.rb +319 -0
  16. data/bullet-8.1.3/lib/bullet/active_record80.rb +319 -0
  17. data/bullet-8.1.3/lib/bullet/active_record81.rb +321 -0
  18. data/bullet-8.1.3/lib/bullet/bullet_xhr.js +64 -0
  19. data/bullet-8.1.3/lib/bullet/dependency.rb +165 -0
  20. data/bullet-8.1.3/lib/bullet/detector/association.rb +92 -0
  21. data/bullet-8.1.3/lib/bullet/detector/base.rb +8 -0
  22. data/bullet-8.1.3/lib/bullet/detector/counter_cache.rb +69 -0
  23. data/bullet-8.1.3/lib/bullet/detector/n_plus_one_query.rb +148 -0
  24. data/bullet-8.1.3/lib/bullet/detector/unused_eager_loading.rb +100 -0
  25. data/bullet-8.1.3/lib/bullet/detector.rb +11 -0
  26. data/bullet-8.1.3/lib/bullet/ext/object.rb +37 -0
  27. data/bullet-8.1.3/lib/bullet/ext/string.rb +14 -0
  28. data/bullet-8.1.3/lib/bullet/mongoid4x.rb +59 -0
  29. data/bullet-8.1.3/lib/bullet/mongoid5x.rb +59 -0
  30. data/bullet-8.1.3/lib/bullet/mongoid6x.rb +59 -0
  31. data/bullet-8.1.3/lib/bullet/mongoid7x.rb +74 -0
  32. data/bullet-8.1.3/lib/bullet/mongoid8x.rb +61 -0
  33. data/bullet-8.1.3/lib/bullet/mongoid9x.rb +74 -0
  34. data/bullet-8.1.3/lib/bullet/notification/base.rb +92 -0
  35. data/bullet-8.1.3/lib/bullet/notification/counter_cache.rb +15 -0
  36. data/bullet-8.1.3/lib/bullet/notification/n_plus_one_query.rb +31 -0
  37. data/bullet-8.1.3/lib/bullet/notification/unused_eager_loading.rb +31 -0
  38. data/bullet-8.1.3/lib/bullet/notification.rb +13 -0
  39. data/bullet-8.1.3/lib/bullet/notification_collector.rb +25 -0
  40. data/bullet-8.1.3/lib/bullet/rack.rb +186 -0
  41. data/bullet-8.1.3/lib/bullet/registry/association.rb +16 -0
  42. data/bullet-8.1.3/lib/bullet/registry/base.rb +46 -0
  43. data/bullet-8.1.3/lib/bullet/registry/call_stack.rb +17 -0
  44. data/bullet-8.1.3/lib/bullet/registry/object.rb +18 -0
  45. data/bullet-8.1.3/lib/bullet/registry.rb +10 -0
  46. data/bullet-8.1.3/lib/bullet/stack_trace_filter.rb +67 -0
  47. data/bullet-8.1.3/lib/bullet/version.rb +5 -0
  48. data/bullet-8.1.3/lib/bullet.rb +289 -0
  49. data/bullet-8.1.3/lib/generators/bullet/install_generator.rb +47 -0
  50. data/bullet-8.1.3/tasks/bullet_tasks.rake +11 -0
  51. data/hyper-pure-sys.gemspec +12 -0
  52. metadata +91 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6653b78f8d14856e5ab7fd43234d3a1b4c21fb3a524c5ec6fca0b05aa015d569
4
+ data.tar.gz: 93be4865ce397a8f782256146f8afc23143ab23a9cce3ef4f6d92bb3832966db
5
+ SHA512:
6
+ metadata.gz: 143984d85ac6cca626a83beedf862747a2899abe141167350f4b5b3cc29677fb0add2ea60da7abed677ffda475695d91cea116ffca8f0ad97e02ef9edf8f5f35
7
+ data.tar.gz: 5cee72d81e8baa7c31fe98bcb5394b0919aeeff6ff43847602bfd90ea7b37c3e38c816e774cbb5a99d783befb8c6a52e00f1d90b70a423a9db4018035223c28a
@@ -0,0 +1,374 @@
1
+ ## Unreleased
2
+
3
+ ## 8.1.3 (06/02/2026)
4
+
5
+ * Handle inversed polymorphic belongs_to false positives
6
+
7
+ ## 8.1.2 (05/25/2026)
8
+
9
+ * Skip N+1 detection for optional polymorphic `belongs_to` whose `*_type` column is nil. ActiveRecord short-circuits the reader to nil without issuing SQL, so the access cannot represent an N+1 query and preloading would be a no-op.
10
+ * Fix `Set#<<` corruption in `UnusedEagerLoading#add_eager_loadings` split branch
11
+
12
+ ## 8.1.1 (04/23/2026)
13
+
14
+ * Fix ActiveRecord 8.1 patch-level method signature compatibility; test against Rails 8.1.3.
15
+ * Handle string associations in safelist for Action Text
16
+ * Enhance N+1 query detection by including caller stack in association calls
17
+ * Update external links in README.md
18
+
19
+ ## 8.1.0 (10/23/2025)
20
+
21
+ * Make `get_relation` private
22
+ * Support Rails 8.1
23
+
24
+ ## 8.0.8 (05/30/2025)
25
+
26
+ * Add middleware after initializers
27
+ * Fix bullet composite primary key retrieval
28
+
29
+ ## 8.0.7 (05/15/2025)
30
+
31
+ * Try to insert `Bullet::Rack` properly
32
+
33
+ ## 8.0.6 (05/07/2025)
34
+
35
+ * Add CSP nonce for footer styles as well
36
+ * Add support for OpenTelemetry reporting
37
+
38
+ ## 8.0.5 (04/21/2025)
39
+
40
+ * Properly insert ContentSecurityPolicy middleware
41
+ * Properly parse query string
42
+
43
+ ## 8.0.4 (04/18/2025)
44
+
45
+ * Insert bullet middleware before `ContentSecurityPolicy`
46
+ * Support url query `skip_html_injection=true`
47
+ * Mark object as impossible after updating inversed
48
+
49
+ ## 8.0.3 (04/04/2025)
50
+
51
+ * Update non persisted `inversed_objects`
52
+
53
+ ## 8.0.2 (04/02/2025)
54
+
55
+ * Do not cache `bullet_key` if object is not persisted
56
+
57
+ ## 8.0.1 (02/10/2025)
58
+
59
+ * Update benchmark to use sqlite
60
+ * Reduce mem allocations
61
+ * Require active_support's inflections module before requiring the delegation module
62
+
63
+ ## 8.0.0 (11/10/2024)
64
+
65
+ * Support Rails 8
66
+ * Drop Rails 4.0 and 4.1 support
67
+ * Require Ruby at least 2.7.0
68
+ * Store global objects into thread-local variables
69
+ * Avoid globally polluting `::String` and `::Object` classes
70
+
71
+ ## 7.2.0 (07/12/2024)
72
+
73
+ * Support Rails 7.2
74
+ * Fix count method signature for active_record5 and active_record60
75
+
76
+ ## 7.1.6 (01/16/2024)
77
+
78
+ * Allow apps to not include the user in a notification
79
+
80
+ ## 7.1.5 (01/05/2024)
81
+
82
+ * Fix mongoid8
83
+
84
+ ## 7.1.4 (11/17/2023)
85
+
86
+ * Call association also on through reflection
87
+
88
+ ## 7.1.3 (11/05/2023)
89
+
90
+ * Call NPlusOneQuery's call_association when calling count on collection association
91
+
92
+ ## 7.1.2 (10/13/2023)
93
+
94
+ * Handle Rails 7.1 composite primary keys
95
+
96
+ ## 7.1.1 (10/07/2023)
97
+
98
+ * Add support for `Content-Security-Policy-Report-Only` nonces
99
+ * Fix count method signature
100
+
101
+ ## 7.1.0 (10/06/2023)
102
+
103
+ * Support rails 7.1
104
+ * Alias `Bullet.enable?` to `enabled?`, and `Bullet.enable=` to `enabled=`
105
+ * Added `always_append_html_body` option, so the html snippet is always included even if there are no notifications
106
+ * Added detection of n+1 count queries from `count` method
107
+ * Changed the counter cache notification title to recommend using `size`
108
+
109
+ ## 7.0.7 (03/01/2023)
110
+
111
+ * Check `Rails.application.config.content_security_policy` before insert `Bullet::Rack`
112
+
113
+ ## 7.0.6 (03/01/2023)
114
+
115
+ * Better way to check if `ActionDispatch::ContentSecurityPolicy::Middleware` exists
116
+
117
+ ## 7.0.5 (01/01/2023)
118
+
119
+ * Fix n+1 false positives in AR 7.0
120
+ * Fix eager_load nested has_many :through false positives
121
+ * Respect Content-Security-Policy nonces
122
+ * Added CallStacks support for avoid eager loading
123
+ * Iterate fewer times over objects
124
+
125
+ ## 7.0.4 (11/28/2022)
126
+
127
+ * Fix `eager_load` `has_many :through` false positives
128
+ * mongoid7x: add dynamic methods
129
+
130
+ ## 7.0.3 (08/13/2022)
131
+
132
+ * Replace `Array()` with `Array.wrap()`
133
+
134
+ ## 7.0.2 (05/31/2022)
135
+
136
+ * Drop growl support
137
+ * Do not check html tag in Bullet::Rack anymore
138
+
139
+ ## 7.0.1 (01/15/2022)
140
+
141
+ * Get rid of *_whitelist methods
142
+ * Hack ActiveRecord::Associations::Preloader::Batch in rails 7
143
+
144
+ ## 7.0.0 (12/18/2021)
145
+
146
+ * Support rails 7
147
+ * Fix Mongoid 7 view iteration
148
+ * Move CI from Travis to Github Actions
149
+
150
+ ## 6.1.5 (08/16/2021)
151
+
152
+ * Rename whitelist to safelist
153
+ * Fix onload called twice
154
+ * Support Rack::Files::Iterator responses
155
+ * Ensure HABTM associations are not incorrectly labeled n+1
156
+
157
+ ## 6.1.4 (02/26/2021)
158
+
159
+ * Added an option to stop adding HTTP headers to API requests
160
+
161
+ ## 6.1.3 (01/21/2021)
162
+
163
+ * Consider ThroughAssociation at SingularAssociation like CollectionAssociation
164
+ * Add xhr_script only when add_footer is enabled
165
+
166
+ ## 6.1.2 (12/12/2020)
167
+
168
+ * Revert "Make whitelist thread safe"
169
+
170
+ ## 6.1.1 (12/12/2020)
171
+
172
+ * Add support Rails 6.1
173
+ * Make whitelist thread safe
174
+
175
+ ## 6.1.0 (12/28/2019)
176
+
177
+ * Add skip_html_injection flag
178
+ * Remove writer hack in active_record6
179
+ * Use modern includes syntax in warnings
180
+ * Fix warning: The last argument is used as the keyword parameter
181
+
182
+ ## 6.0.2 (08/20/2019)
183
+
184
+ * Fully support Rails 6.0
185
+
186
+ ## 6.0.1 (06/26/2019)
187
+
188
+ * Add Bullet::ActiveJob
189
+ * Prevent "Maximum call stack exceeded" errors when used with Turbolinks
190
+
191
+ ## 6.0.0 (04/25/2019)
192
+
193
+ * Add XHR support to Bullet
194
+ * Support Rails 6.0
195
+ * Handle case where ID is manually set on unpersisted record
196
+
197
+ ## 5.9.0 (11/11/2018)
198
+
199
+ * Require Ruby 2.3+
200
+ * Support Mongo 7.x
201
+
202
+ ## 5.8.0 (10/29/2018)
203
+
204
+ * Fix through reflection for rails 5.x
205
+ * Fix false positive in after_save/after_create callbacks
206
+ * Don't trigger a preload error on "manual" preloads
207
+ * Avoid Bullet from making extra queries in mongoid6
208
+ * Support option for #first and #last on mongoid6.x
209
+ * Fix duplicate logs in mongoid 4.x and 5.x version
210
+ * Use caller for ruby 1.9 while caller_locations for 2.0+
211
+ * Extend stacktrace matching for sub-file precision
212
+ * Exclude configured bundler path in addition to '/vendor'
213
+ * Fix `caller_path` in `excluded_stacktrace_path`
214
+ * Update `uniform_notifier` dependency to add Sentry support
215
+ * Integrate awesomecode.io and refactor code
216
+
217
+ ## 5.7.0 (12/03/2017)
218
+
219
+ * Support rails 5.2
220
+ * Implement Bullet.delete_whitelist to delete a specific whitelist definition
221
+ * Fix caller_path in the case of nil
222
+
223
+ ## 5.6.0 (07/16/2017)
224
+
225
+ * Migrate alias_method to Module#prepend
226
+ * Add install generator
227
+ * Stack trace filter
228
+ * Fix rails 5.1 compatibility
229
+ * Fix inverse_of for rails 5
230
+ * Fix detect file attachment for rack #319
231
+
232
+ ## 5.5.0 (12/30/2016)
233
+
234
+ * Display http request method #311
235
+ * Add close button to footer
236
+ * Raise an error if bullet does not support AR or Mongoid
237
+ * Avoid double backtrace
238
+ * Fix false alert on counter cache when associations are already loaded #288
239
+ * Fix "false alert" in rails 5 #239
240
+ * Do not support ActiveRecord 3.x and Mongoid 3.x / 4.x anymore
241
+
242
+ ## 5.4.0 (10/09/2016)
243
+
244
+ * Support rails 5.1
245
+ * Extract stack trace filtering into module
246
+
247
+ ## 5.3.0 (15/08/2016)
248
+
249
+ * Fix false alert on through association with join sql #301
250
+ * Fix association.target in `through_association` can be singular #302
251
+ * Support `find_by_sql` #303
252
+ * Fix env `REQUEST_URI`
253
+
254
+ ## 5.2.0 (07/26/2016)
255
+
256
+ * Fix `has_cached_counter?` is not defined in HABTM #297
257
+ * Fix false alert if preloaded association has no records #260
258
+ * Support Rails 5.0.0
259
+
260
+ ## 5.1.0 (05/21/2016)
261
+
262
+ * Fix false alert when `empty?` used with `counter_cache`
263
+ * Fix `alias_method_chain` deprecation for rails 5
264
+ * Add response handling for non-Rails Rack responses
265
+ * Fix false alert when querying immediately after creation
266
+ * Fix UnusedEagerLoading bug when multiple eager loading query include same objects
267
+
268
+ ## 5.0.0 (01/06/2016)
269
+
270
+ * Support Rails 5.0.0.beta1
271
+ * Fix `has_many :through` infinite loop issue
272
+ * Support mongoid 5.0.0
273
+ * Do not report association queries immediately after object creation to
274
+ require a preload
275
+ * Detect `counter_cache` for `has_many :through` association
276
+ * Compatible with `composite_primary_keys` gem
277
+ * Fix AR 4.2 SingularAssociation#reader result can be nil
278
+ * `perform_out_of_channel_notifications` should always be triggered
279
+ * Fix false positive with `belongs_to` -> `belongs_to` for active\_record 4.2
280
+ * Activate active\_record hacks only when Bullet already start
281
+ * Don't execute query when running `to_sql`
282
+ * Send backtrace to `uniform_notifier`
283
+ * Fix sse response check
284
+ * Dynamically delegate available notifiers to UniformNotifier
285
+ * Hotfix nil object when `add_impossible_object`
286
+ * Fix `has_one` then `has_many` associations in rails 4.2
287
+ * Append js and dom to html body in proper position
288
+
289
+ ## 4.14.0 (10/03/2014)
290
+
291
+ * Support rails 4.2
292
+ * Polish notification output
293
+ * Fix warning: `*' interpreted as argument prefix
294
+
295
+ ## 4.13.0 (07/19/2014)
296
+
297
+ * Support include? call on ar associations
298
+
299
+ ## 4.12.0 (07/13/2014)
300
+
301
+ * Fix false n+1 queries caused by inversed objects.
302
+ * Replace .id with .primary_key_value
303
+ * Rename bullet_ar_key to bullet_key
304
+ * Fix rails sse detect
305
+ * Fix bullet using in test environment
306
+ * Memoize whoami
307
+
308
+ ## 4.11.0 (06/24/2014)
309
+
310
+ * Support empty? call on ar associations
311
+ * Skip detecting if object is a new record
312
+
313
+ ## 4.10.0 (06/06/2014)
314
+
315
+ * Handle join query smarter
316
+ * Support mongoid 4.0
317
+ * Thread safe
318
+ * Add debug mode
319
+
320
+ ## 4.9.0 (04/30/2014)
321
+
322
+ * Add Bullet.stacktrace_includes option
323
+ * Applied keyword argument fixes on Ruby 2.2.0
324
+ * Add bugsnag notifier
325
+ * Support rails 4.1.0
326
+
327
+ ## 4.8.0 (02/16/2014)
328
+
329
+ * Support rails 4.1.0.beta1
330
+ * Update specs to be RSpec 3.0 compatible
331
+ * Update latest minor version activerecord and mongoid on travis
332
+
333
+ ## 4.7.0 (11/03/2013)
334
+
335
+ * Add coverall support
336
+ * Add helper to profile code outside a request
337
+ * Add activesupport dependency
338
+ * Add Bullet.raise notification
339
+ * Add Bullet.add_footer notification
340
+ * Fix activerecord4 warnings in test code
341
+
342
+ ## 4.6.0 (04/18/2013)
343
+
344
+ * Fix Bullet::Rack to support sinatra
345
+
346
+ ## 4.5.0 (03/24/2013)
347
+
348
+ * Add api way to access captured association
349
+ * Allow disable n_plus_one_query, unused_eager_loading and counter_cache respectively
350
+ * Add whitelist
351
+
352
+ ## 4.4.0 (03/15/2013)
353
+
354
+ * Remove disable_browser_cache option
355
+ * Compatible with Rails 4.0.0.beta1
356
+
357
+ ## 4.3.0 (12/28/2012)
358
+
359
+ * Fix content-length for non ascii html
360
+ * Add mongoid 2.5.x support
361
+
362
+ ## 4.2.0 (09/29/2012)
363
+
364
+ * Add Bullet::Dependency to check AR and mongoid version
365
+ * Add Rails 4 support
366
+ * Add airbrake notifier support
367
+
368
+ ## 4.1.0 (05/30/2012)
369
+
370
+ * Add mongoid 3 support
371
+
372
+ ## 4.0.0 (05/09/2012)
373
+
374
+ * Add mongoid support
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 - 2024 Richard Huang (flyerhzm@gmail.com)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.