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
- SHA1:
3
- metadata.gz: 63a6380c6742a8c295a27ed08fbed538d80888fc
4
- data.tar.gz: 3f85e171b2bd4b66d19544a4d95190606ab1e0a1
2
+ SHA256:
3
+ metadata.gz: 58a87e34575b62aea60678d048e5fcde125277782cc3680ffdf2b39b61f8fb1d
4
+ data.tar.gz: 4e6bd359c264c3524d22e24656ab707bf0acffb1c18ad4e57021be7055dc6e54
5
5
  SHA512:
6
- metadata.gz: 9f5670c173af4fc03c4017be87ef4496a42e0a868317c938cf3511e50b4dbb8fc316d9e2778c27f6f1105e009daaa42aba97cd049c282dfe91d513ace85bcaf8
7
- data.tar.gz: 80419e0833f88e05add98ddc96954d422bae9e5c2f968be0053859e5a40ebe348d8dd98d6a0452b1126973ec0ba976fc0b7446ca8629097319fbff1440e2df42
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.each do |file|
109
- @upyun.delete("/#{@folder}/#{prefix}#{file[:name]}")
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
@@ -1,3 +1,3 @@
1
1
  module ActivestorageUpyun
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  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.0
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-01-20 00:00:00.000000000 Z
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.6.8
117
+ rubygems_version: 2.7.4
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Upyun service for activestorage