porky_lib 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: d51258bc849c02ede4a336da2491069b7accb968
4
- data.tar.gz: 27572477e1c768f256cce81083c2bf3f363029d2
3
+ metadata.gz: 7879d7909e1917a068bba6b5307da171c85f6113
4
+ data.tar.gz: a179366a0d21510f4c6174f0cf16693336ed1fed
5
5
  SHA512:
6
- metadata.gz: 0d2ab5a32ad164c9ab4333489e8bca96aa9156044ea0fb35adcc399c3f634ebbbe8a5aedb55f2de7a5d9ba5d6e6438b89950ae6d301f444e52b965358da18f95
7
- data.tar.gz: 4db35c9076ce9fcad27be55f716fa4a44c3ca75f1307d5fde4184f9706e3d21b7799634d10102f1a4532cf9dfdf7984a0bd1037fffa0b7eb8186989566ac7f3e
6
+ metadata.gz: 4253b66c677db7697f3b4208135e2c5983feb9e4d4cbbe43e407be7c4930f895359ed1164e5fb485cba46fb948fb2beebf50a62c29571e4810df166b25cb7b5b
7
+ data.tar.gz: '008a054f3e78c95948d31730c1c48b8ef0a7bdbcbd0c4300652e190a6be871926513e79721ceb44f520af5a557ecf120e611ce52334ef91f8bea3827bb9e59ba'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- porky_lib (0.2.1)
4
+ porky_lib (0.2.2)
5
5
  aws-sdk-kms
6
6
  aws-sdk-s3
7
7
  msgpack
@@ -29,7 +29,7 @@ class PorkyLib::FileService
29
29
  raise FileSizeTooLargeError, "File size is larger than maximum allowed size of #{max_file_size}" if file_size_invalid?(file)
30
30
 
31
31
  data = file_data(file)
32
- file_key = SecureRandom.uuid
32
+ file_key = options.key?(:directory) ? "#{options[:directory]}/#{SecureRandom.uuid}" : SecureRandom.uuid
33
33
  tempfile = encrypt_file_contents(data, key_id, file_key)
34
34
 
35
35
  begin
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PorkyLib
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porky_lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Fletcher
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-20 00:00:00.000000000 Z
11
+ date: 2018-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler