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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e699ed3a7acc47afe78483aa12f2b9db62208c1afb4227f998daa68e4cd0992
4
- data.tar.gz: e2df8adf7887df6df954c1c8429cd8adefbbe9fb1bb86be76b6d2d01c0003b9f
3
+ metadata.gz: d2430a7886e8120a736af405b4365222cb623f2a500d2e7fc6cd6fd954bc02de
4
+ data.tar.gz: 4b866e13745f013bc2b2bd30dc2109fa2e3c995fd0f62f889aa652c42ba91ad2
5
5
  SHA512:
6
- metadata.gz: 072ec5b638c324de96f21a73798df6337ee6a1eed8f7b26796bd4147610776112fbaf7fd7741949c462206ea79c28dbb8e4f586861657ccc4b99e215b1e3de5f
7
- data.tar.gz: b48a13ba504bf4bc8ccdd63b43226d4f81e9c15e8ed48f36538664f3cc4d94b27e705f5559a95985e3f7d450705a738a0a302d9d9f16e291d9aabdc981052f4a
6
+ metadata.gz: f873faf295b30ab22b682b4e2d92413b9d4b504670e4c614a0dba960e29d849cc7f34336cf08d77b69846d3bd6c0be9ba4ce9397fa0d60587abbe561e0e65578
7
+ data.tar.gz: 47c3c1629dd4341b23163b64f57f6ee0d3c9bb926f4ea60601a428c1d951c67876a2aca6cb06c08fa43f26322999c4307a199eb444569a402c56abba316469af
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.1.1
2
+
3
+ ENHANCEMENTS:
4
+
5
+ * Storage::S3#put now returns the full key the object was stored under
6
+ * MakeExternallyAvailableFile now provides the full path the object is accessible under.
7
+
1
8
  ## 0.1.0
2
9
 
3
10
  Initial release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teak_util (0.1.0)
4
+ teak_util (0.1.1)
5
5
  aws-sdk-s3 (>= 1.102)
6
6
  business_flow (>= 0.18.0)
7
7
  mime-types (>= 3)
@@ -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
@@ -42,7 +42,7 @@ module TeakUtil
42
42
  @bucket.object(path).put(
43
43
  opts.merge(@put_opts.merge(body: value))
44
44
  )
45
- true
45
+ path
46
46
  end
47
47
 
48
48
  # Retrieves the value stored at key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeakUtil
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
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.0
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: 2023-10-12 00:00:00.000000000 Z
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