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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/porky_lib/file_service.rb +1 -1
- data/lib/porky_lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7879d7909e1917a068bba6b5307da171c85f6113
|
4
|
+
data.tar.gz: a179366a0d21510f4c6174f0cf16693336ed1fed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4253b66c677db7697f3b4208135e2c5983feb9e4d4cbbe43e407be7c4930f895359ed1164e5fb485cba46fb948fb2beebf50a62c29571e4810df166b25cb7b5b
|
7
|
+
data.tar.gz: '008a054f3e78c95948d31730c1c48b8ef0a7bdbcbd0c4300652e190a6be871926513e79721ceb44f520af5a557ecf120e611ce52334ef91f8bea3827bb9e59ba'
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/porky_lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|