tanoshimu_utils 2.0.1 → 2.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tanoshimu_utils/concerns/resource_fetch.rb +2 -2
- data/lib/tanoshimu_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 759893f5d151c66089897b1c428fe73a626c775649e38051d11125715608cbfe
|
4
|
+
data.tar.gz: c26c65d9c6b6d1d1dcbdc5bbcb3ed643441fb9d6b2a87407e37d56aabb2bc3a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21dfcc62a985a97521bf245c4752d1935a959e8845c81368304a9b4a693bb25f0501e3f024063b7e874293c86ca089fba30a8a6ed66d65c45dd2e0f46dbf9014
|
7
|
+
data.tar.gz: 6c860153ebab4a61fa6eefd49bb784737b70baffdb511302d2ad06e24b43d9af58b41b41f66a99968fc4ee2313d77bd718a397f3170c21d466d2808ecbb75174
|
@@ -24,7 +24,7 @@ module TanoshimuUtils
|
|
24
24
|
attachment = resource_for(resource_name).attachment
|
25
25
|
return default_url if attachment.nil?
|
26
26
|
|
27
|
-
if
|
27
|
+
if Rails.configuration.uses_disk_storage
|
28
28
|
Rails.application.routes.url_helpers.rails_blob_url(attachment, only_path: true)
|
29
29
|
else
|
30
30
|
attachment.service_url(expires_in: expiry)
|
@@ -87,4 +87,4 @@ module TanoshimuUtils
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
end
|
90
|
-
end
|
90
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tanoshimu_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.1
|
4
|
+
version: 2.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinyele Cafe-Febrissy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|