effective_storage 0.5.3 → 0.5.5

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: ec27923ecb34411c54ab08cff8cd9125514d992bb4019ff69287d5f69e1d20e2
4
- data.tar.gz: 7c57311e776b8af49df09d8beef881aef51afe8521ecadfd33626e94c6976818
3
+ metadata.gz: 357504be5a71b863c1c69b17846196f21e4f0d5edc4e02b1f08b0a62b15b1488
4
+ data.tar.gz: c04865475ed16918f1628e22b41088310cae8e00b7f958481e05bb549794971c
5
5
  SHA512:
6
- metadata.gz: 71b45470edc4ca042986bd8d903dc7d2a6d507c26be36d69991dfa3ff12bb43ee0624e90d01b6c711f2148527187c9b1736d156df25d547afd75ed770ddf3e68
7
- data.tar.gz: b89927638bc53c61be02ef058a0d6564ef2e30388eb1d128eb502bd3c4c72bca041ababf191b334033da2b3244f68962e7077d0d2fdb2c4330011f0908b40b6a
6
+ metadata.gz: 992c45555551fd8e861fb766d364a95913e5c2d035e7c5705173418961afb988a70ea66f5464559cf2a630e4e27a1a385e56c8ebc55c3002d68993dc0ff3f27a
7
+ data.tar.gz: 80a919bef080f9aa344714fa8502429058ab29aec2b38ba76f9f5abb9c9ebc3cbc263d2630c2096b8848e5fbff1624f39eb9ee43ae6ef337d6a3c3b475ed68bc
@@ -87,7 +87,7 @@ module ActiveStorageAuthorization
87
87
  head(:not_found)
88
88
 
89
89
  # Raise an exception to log unauthorized request
90
- raise_exception()
90
+ raise_exception() if current_user.present?
91
91
  end
92
92
 
93
93
  def raise_exception
@@ -1,3 +1,3 @@
1
1
  module EffectiveStorage
2
- VERSION = '0.5.3'.freeze
2
+ VERSION = '0.5.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-03-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -183,7 +182,6 @@ files:
183
182
  - app/models/effective/active_storage_extension.rb
184
183
  - app/models/effective/unauthorized_storage_exception.rb
185
184
  - app/views/admin/storage/_datatable_actions.html.haml
186
- - app/views/admin/storage/index.html.haml
187
185
  - config/effective_storage.rb
188
186
  - config/routes.rb
189
187
  - db/migrate/01_create_effective_storage.rb.erb
@@ -197,7 +195,6 @@ homepage: https://github.com/code-and-effect/effective_storage
197
195
  licenses:
198
196
  - MIT
199
197
  metadata: {}
200
- post_install_message:
201
198
  rdoc_options: []
202
199
  require_paths:
203
200
  - lib
@@ -212,8 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
209
  - !ruby/object:Gem::Version
213
210
  version: '0'
214
211
  requirements: []
215
- rubygems_version: 3.5.9
216
- signing_key:
212
+ rubygems_version: 4.0.17
217
213
  specification_version: 4
218
214
  summary: Authorize and browse Active Storage attachments
219
215
  test_files: []
@@ -1,8 +0,0 @@
1
- %h1.effective-admin-heading= @page_title
2
-
3
- = collapse('Show legend') do
4
- %ul
5
- %li Inherited - If the resource is public, anyone may access the file without signing in. If the resource has restricted access, only signed in users who can access the resource are able to access the file. This is the default permission.
6
- %li Public - Anyone may access the file without signing in, regardless of the resource's access restrictions.
7
-
8
- = render_datatable @datatable