attachie 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 411157ac5a109d47177aefc6e164115c3359f053f4107f586d08000355c91992
4
- data.tar.gz: 3d3aaf3badd3d27b04f4d9b7c0b2a723698c53c5ec683c7ca3856a02fc711b5e
3
+ metadata.gz: f21f7eb60467e9fb640626ad3633013e73166d975565afad29a761c8847bb83c
4
+ data.tar.gz: fb06c69f95ecd1264f13c7d162ab415c94e356deb2b771e7d766852da86de83d
5
5
  SHA512:
6
- metadata.gz: 18e9e23f240a581dedda0cb4a0b0b19687202e5cce81497b5bbd2a4cf2322a420b28df111fee9444cd3dac96c0d89e442a126046392e5ded6875f34f16dcb96c
7
- data.tar.gz: d656a2b8bc38593ac218100eddedadecd55ad5cffed2bac0dbc913ff9e7f7e57632872b3f327f7b312fcfe49acd21c6291ec06fed3e2a568de348d94d778e9a1
6
+ metadata.gz: 0f5cd5094aad872ccda17615f1aa2e0c6f582937a0be6f54b45e1ff986f04fad148224d4415ecefcdee4a04a6638ec44031b7dd5167eac6c4f13c21ed7ca317c
7
+ data.tar.gz: 54ea0ef551453b1335a5267f04c9b43c0fa34d624a1923c10dc946385e6cba09554f4d628cb5b7fe5110c54aad730d4dc9d08c2673caf68d8ffdd0a0c520e7ce
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.1
4
+ ### Fixed
5
+ * Use `mkdir_p` in `FileDriver#download`
6
+
3
7
  ## 1.1.0
4
8
  ### Added
5
9
  * Added a download method to download files to a specific path
@@ -89,8 +89,12 @@ module Attachie
89
89
  File.binread path_for(name, bucket)
90
90
  end
91
91
 
92
- def download(name, bucket, path)
93
- FileUtils.cp(path_for(name, bucket), path)
92
+ def download(name, bucket, dest_path)
93
+ path = path_for(name, bucket)
94
+
95
+ FileUtils.mkdir_p File.dirname(path)
96
+
97
+ FileUtils.cp(path, dest_path)
94
98
  end
95
99
 
96
100
  def delete(name, bucket)
@@ -1,3 +1,3 @@
1
1
  module Attachie
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attachie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Vetter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3