effective_storage 0.4.7 → 0.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de41d5679792d22ce1d00b2d9f4ba396de441a723eaef5359c8475fa00732538
4
- data.tar.gz: 9c6e0a0c32fbcaf488ce51b3857aab7322dede9936d842783f04f2ae6eae5c17
3
+ metadata.gz: 5e85ca771cbc04a0887e8a8476a48ea21f608e8b6460a7d0f9ac69001c419c95
4
+ data.tar.gz: a9c9251ddeb09a82c87868ecda3b5ef172678e217f50339c190daaf443b89a55
5
5
  SHA512:
6
- metadata.gz: e07be03e0526dea2ebbcefb438d3ce9a4fd8d3c76eb273d15ed9bfa775b4b7f161daa37d7f189638d58ef79e571e1084ced3722d73562aa088a5cae76be46718
7
- data.tar.gz: 5fa8b3f7a68a1b0c14dde1e29838f25570ca7bc3f48aa4434be0e95857c5a0d088af6fa67ac5d6f5a3852e85679a9b996583f25799d58bfc19426e535898d09d
6
+ metadata.gz: 4e857f369f6140a5df8a5acdd6180924d3e2f0b515b8d3512050a7dabb1205a72f15a579b43048692429126fe4cdad796486897b6c258310b7200bc1bb8ea8cb
7
+ data.tar.gz: 34dac766216adb7ca40707654b80c0abb6efdd6e5f36dbea4d60e10e99574eb6202287691508a62fa40b3160940fb1eda3f5a503f2bfe61fa6f2b2f5fe3341a3
@@ -15,9 +15,12 @@ module ActiveStorageAuthorization
15
15
  extend ActiveSupport::Concern
16
16
 
17
17
  AUTHORIZED_EFFECTIVE_DOWNLOADS = Set.new([
18
+ 'Effective::Alert',
19
+ 'Effective::BannerAd',
18
20
  'Effective::CarouselItem',
19
21
  'Effective::PageBanner',
20
22
  'Effective::PageSection',
23
+ 'Effective::PageSegment',
21
24
  'Effective::Permalink'
22
25
  ]).freeze
23
26
 
@@ -42,13 +45,7 @@ module ActiveStorageAuthorization
42
45
  # Send an ExceptionNotification email with the unauthorized details
43
46
  # This is not visible to users
44
47
  def unauthorized_active_storage_request(exception)
45
-
46
- if defined?(ExceptionNotifier)
47
- data = { 'current_user_id': current_user&.id || 'none' }.merge(@blob&.attributes || {})
48
- ExceptionNotifier.notify_exception(exception, env: request.env, data: data)
49
- else
50
- raise(exception)
51
- end
48
+ EffectiveResources.send_error(exception, current_user_id: (current_user&.id || 'none'))
52
49
  end
53
50
 
54
51
  private
@@ -1,3 +1,3 @@
1
1
  module EffectiveStorage
2
- VERSION = '0.4.7'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-12 00:00:00.000000000 Z
11
+ date: 2026-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails