activestorage_direct_disk 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7f2c82f8d375e3d35d0699720173b339df3cc915c8b2aec9f0d8c551caee56e
|
4
|
+
data.tar.gz: d61283579023b1599fcde48a3285bf50e03024cfb591f93c2b365c7c8d59e15e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd3f33a3d1d79f07ebaadd5bfcc8c0d4e94df530334856d22296b3e10fd5fea380c6d537ec9f316af0dabc231f16f20d624fe0fa4db93e08251fb0c0eb1290c6
|
7
|
+
data.tar.gz: 1300f2f5c77a4ce65b6ccd3e87539022970a753dfb31aa3f815f028c1c3eedf138942cde94878c0730967db60453992da05cb82d9331900c44fe827e0f42022e
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveStorage::DirectDisk::VariantExt
|
4
|
+
def service_url(*params)
|
5
|
+
processed if service.is_a?(ActiveStorage::Service::DirectDiskService)
|
6
|
+
super
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
ActiveSupport.on_load(:active_storage_blob) do
|
11
|
+
ActiveStorage::Variant.prepend ActiveStorage::DirectDisk::VariantExt
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage_direct_disk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Shaidurov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- activestorage_direct_disk.gemspec
|
84
84
|
- bin/console
|
85
85
|
- bin/setup
|
86
|
+
- lib/active_storage/direct_disk/variant_ext.rb
|
86
87
|
- lib/active_storage/direct_disk/version.rb
|
87
88
|
- lib/active_storage/service/direct_disk_service.rb
|
88
89
|
- lib/activestorage_direct_disk.rb
|