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: 294a6a680d3205e66d608ae5d0d494b68337eaf78b6564641463c05e82ba2eb8
4
- data.tar.gz: '06388714a01c88e1eb23e2fd533b8b63fba73b9144e92fb279d1245b3742f8e2'
3
+ metadata.gz: e7f2c82f8d375e3d35d0699720173b339df3cc915c8b2aec9f0d8c551caee56e
4
+ data.tar.gz: d61283579023b1599fcde48a3285bf50e03024cfb591f93c2b365c7c8d59e15e
5
5
  SHA512:
6
- metadata.gz: 58d2597c5aa0398678ce088e31de9e663fe89cd772cd196ce345e2307d1d821902ec4a0401592c98dea1686107955170ba3b7ed62ed9e30f5edbf86adf388440
7
- data.tar.gz: 265e67abb2522585d2a70bdebac97ab1387fd24d2f0c74ff18f4a9d4642c9b7fb5cf01ef4fce36eef94056427dc3a7db24b9ded46e4eb02470a488c9aeb19d23
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
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveStorage
2
4
  module DirectDisk
3
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
4
6
  end
5
7
  end
@@ -1,6 +1,7 @@
1
1
  require 'active_storage'
2
2
 
3
3
  require 'active_storage/service/direct_disk_service'
4
+ require 'active_storage/direct_disk/variant_ext'
4
5
 
5
6
  module ActiveStorage
6
7
  module DirectDisk
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.2.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-05 00:00:00.000000000 Z
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