activestorage_upyun 0.1.0 → 0.1.1
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 58a87e34575b62aea60678d048e5fcde125277782cc3680ffdf2b39b61f8fb1d
|
4
|
+
data.tar.gz: 4e6bd359c264c3524d22e24656ab707bf0acffb1c18ad4e57021be7055dc6e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18586159b2a651c7e6117dd634a7c5a4b0d803a53545727026631754f36633e2a0f1ab6bcfa3f8554f1a5ef000153831cdc3307f5e564100e5126ecba4076beb
|
7
|
+
data.tar.gz: e9ec7a546ced43476ae8529a2e80fce5bc743c783961fa495af2a610403c787dcbd0f9fb0ffb06f087065476fdf975787759727f9acedda2dddc1a5a317ab990
|
@@ -105,8 +105,10 @@ module ActiveStorage
|
|
105
105
|
def delete_prefixed(prefix)
|
106
106
|
instrument :delete_prefixed, prefix: prefix do
|
107
107
|
items = @upyun.getlist "/#{@folder}/#{prefix}"
|
108
|
-
items
|
109
|
-
|
108
|
+
unless items[:error]
|
109
|
+
items.each do |file|
|
110
|
+
@upyun.delete("/#{@folder}/#{prefix}#{file[:name]}")
|
111
|
+
end
|
110
112
|
end
|
111
113
|
@upyun.delete("/#{@folder}/#{prefix}")
|
112
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activestorage_upyun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- doabit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.7.4
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Upyun service for activestorage
|