activestorage_qinium 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/activestorage_qinium.gemspec +1 -1
- data/lib/active_storage/service/qinium_service.rb +6 -0
- data/lib/active_storage_qinium/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb9c6ef6afef08f075c68b456b97cf3baae4a4e0a359387f25ff76ed808e4bf
|
4
|
+
data.tar.gz: 8cdcb99e4f67c3062e8e82ff54abfca70bce81883557c2a1efa0b3d130d63d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ddca081df7e934137337ba619755c13788538dfb073f1a77f27789d6347e8bea77f5811b403d0de7d924c35e7b7b352398202efcdab59cddc998488f176d07
|
7
|
+
data.tar.gz: 174f234db5c018b6a65bb09c3c9979b10dcddf56b8772f9248f626bba3e90e321da2d9fc0c581fdddb4e35ba6d1b6bb12aa1cbf3b860f9d41561022f02043c5a
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activestorage_qinium (0.
|
5
|
-
qinium (~> 0.
|
4
|
+
activestorage_qinium (0.3.0)
|
5
|
+
qinium (~> 0.3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
parallel (1.22.1)
|
13
13
|
parser (3.1.1.0)
|
14
14
|
ast (~> 2.4.1)
|
15
|
-
qinium (0.
|
15
|
+
qinium (0.3.0)
|
16
16
|
rainbow (3.1.1)
|
17
17
|
rake (13.0.6)
|
18
18
|
regexp_parser (2.5.0)
|
@@ -110,6 +110,12 @@ module ActiveStorage
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
def fetch(target_url, key)
|
114
|
+
instrument :fetch, target_url: target_url, key: key do
|
115
|
+
qiniu.object.fetch(target_url, key)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
113
119
|
def exist?(key)
|
114
120
|
instrument :exist, key: key do |payload|
|
115
121
|
answer = items_for(key).any?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage_qinium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- xiaohui
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: qinium
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.3.0
|
27
27
|
description: Wraps the Qiniu Storage Service as an Active Storage service, support
|
28
28
|
muti-tenant settings. https://www.qiniu.com
|
29
29
|
email:
|