tessa 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessa/active_storage/asset_wrapper.rb +8 -1
- data/lib/tessa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 153d1d11991ae3282b26a80ef33694cb8aae8773fe0ceddc5176243beb137581
|
4
|
+
data.tar.gz: 6c98f75781366eca6d43ba73789fa85e8470f0f2b47971392ee0d8afe61bab18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aac9e710299385ed4fc9fa6845b9a0974046817149994d8ca15f1c746501a1b9573e9c3455f8707806df69f519d04b5b6f4ac185c70af4f802eec5416bb87f2
|
7
|
+
data.tar.gz: 938d746824307da74813f937184fee8fb32f2f286e01301a695b5a2871410d2a7bfc1e796e1e2365aa0144898a16d73364b4bb58b78eac5b0526746ef1e4d262
|
@@ -1,5 +1,9 @@
|
|
1
1
|
module Tessa::ActiveStorage
|
2
2
|
class AssetWrapper < SimpleDelegator
|
3
|
+
def id
|
4
|
+
key
|
5
|
+
end
|
6
|
+
|
3
7
|
def public_url
|
4
8
|
Rails.application.routes.url_helpers.
|
5
9
|
rails_blob_url(__getobj__, disposition: :inline)
|
@@ -14,7 +18,10 @@ module Tessa::ActiveStorage
|
|
14
18
|
end
|
15
19
|
|
16
20
|
def meta
|
17
|
-
{
|
21
|
+
{
|
22
|
+
mime_type: content_type,
|
23
|
+
size: byte_size
|
24
|
+
}
|
18
25
|
end
|
19
26
|
|
20
27
|
def failure?
|
data/lib/tessa/version.rb
CHANGED