mini_paperclip 0.3.0 → 0.3.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
2
  SHA256:
3
- metadata.gz: 909b57103a53df47bb30daf06f36b572d9dfe274cba465e9a21ba9fae57d7e2b
4
- data.tar.gz: d1420ac6ca79918f0f424aa9f3216e92876e5109e8116c3221995cd903d49b1a
3
+ metadata.gz: 6d115f886793d57d62835f40e27768ff04588d3e1f17e7fb430b11f2b146e2ed
4
+ data.tar.gz: 6d1557f279f9bf007b90d06272e7e19a1829f38b1c0f6a4ce079c06e410fca58
5
5
  SHA512:
6
- metadata.gz: dc30ba93963b6380a814552dcbfe556122fb6315ec7a3825aed595ac04c77838f38aeb65852fb922db6ff8fbed699243c1006d23316881622d989402d6487fbd
7
- data.tar.gz: 5f764c680865d71fa9c211566e2354d00a0ba2cf712292ff02ef69da1c39b7a7888ed25186f2e0f00d211eb245eaf3cb3875d6cd4c79ac2ac2f8cac9c9152b5b
6
+ metadata.gz: 8b8c590434edbc1bac00c85028f44d8de3ff67a001643a0613718af5f60bcd06862d012867f3137cb758a48b4db6d8db699df80e3b9838f64dd082e105ddbbf7
7
+ data.tar.gz: 04524d26fb7e8f96e631c82d1ecce996505b66d60d4c47d0016f48e66ec6cc427eb7a28a7241afa4c894ecb08e4afe92c466bd7d15b4a34d3e5e269dfcc06665
@@ -27,7 +27,6 @@ jobs:
27
27
  gemfile:
28
28
  - gemfiles/rails_52.gemfile
29
29
  - gemfiles/rails_60.gemfile
30
- - gemfiles/rails_head.gemfile
31
30
  runs-on: ubuntu-20.04
32
31
  steps:
33
32
  - uses: actions/checkout@v2
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
  gemspec path: '../'
3
3
 
4
- gem 'activerecord', git: "https://github.com/rails/rails", branch: :master
4
+ gem 'activerecord', git: "https://github.com/rails/rails", branch: :main
5
5
  eval_gemfile 'development.gemfile'
@@ -8,6 +8,7 @@ module MiniPaperclip
8
8
  debug("writing by filesystem from:#{file.path} to:#{path}")
9
9
  FileUtils.mkdir_p(File.dirname(path))
10
10
  FileUtils.cp(file.path, path) if file.path != path
11
+ @deletes.delete(path) # cancel deletion if overwrite
11
12
  end
12
13
 
13
14
  def file_path(style)
@@ -13,6 +13,7 @@ module MiniPaperclip
13
13
  bucket: @config.s3_bucket_name,
14
14
  key: s3_object_key(style),
15
15
  )
16
+ @deletes.delete({ key: s3_object_key(style) }) # cancel deletion if overwrite
16
17
  end
17
18
 
18
19
  def s3_object_key(style)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiniPaperclip
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ksss
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick