teak_util 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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/teak_util/storage/make_externally_available_file.rb +2 -2
- data/lib/teak_util/storage/s3.rb +1 -1
- data/lib/teak_util/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2430a7886e8120a736af405b4365222cb623f2a500d2e7fc6cd6fd954bc02de
|
4
|
+
data.tar.gz: 4b866e13745f013bc2b2bd30dc2109fa2e3c995fd0f62f889aa652c42ba91ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f873faf295b30ab22b682b4e2d92413b9d4b504670e4c614a0dba960e29d849cc7f34336cf08d77b69846d3bd6c0be9ba4ce9397fa0d60587abbe561e0e65578
|
7
|
+
data.tar.gz: 47c3c1629dd4341b23163b64f57f6ee0d3c9bb926f4ea60601a428c1d951c67876a2aca6cb06c08fa43f26322999c4307a199eb444569a402c56abba316469af
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -21,7 +21,7 @@ module TeakUtil
|
|
21
21
|
lookup :storage, by: [:bucket_name, :prefix], with: -> { Storage::S3.new(bucket_name, prefix: "#{prefix}#{time_prefix}") }
|
22
22
|
uses(:time_prefix) { Time.now.utc.strftime('%Y/%m/%d/') }
|
23
23
|
|
24
|
-
provides :stored_file_name, :public_url
|
24
|
+
provides :stored_file_name, :public_url, :full_path
|
25
25
|
|
26
26
|
step :convert_data
|
27
27
|
step :store_data
|
@@ -70,7 +70,7 @@ module TeakUtil
|
|
70
70
|
content_disposition: "attachment; filename=\"#{stored_file_name}\""
|
71
71
|
}
|
72
72
|
opts[:content_type] = content_type if content_type
|
73
|
-
storage.put(stored_file_name, data, opts)
|
73
|
+
self.full_path = storage.put(stored_file_name, data, opts)
|
74
74
|
|
75
75
|
self.public_url = storage.public_url(stored_file_name)
|
76
76
|
end
|
data/lib/teak_util/storage/s3.rb
CHANGED
data/lib/teak_util/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teak_util
|
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
|
- Alex Scarborough
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|