porky_lib 0.9.0 → 0.9.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: b1430e614f2d820b689e17b99735c4c7b24ba907640d427d2bd77c577e06017b
4
- data.tar.gz: 278c2837a1a5eeefdb1ee584f69c07e448cad649777da8ac49fd51d477949b92
3
+ metadata.gz: ccfeb1766d3d923889b807bd1356184e87854ba7f64f41529b071b6883fb7b5b
4
+ data.tar.gz: d8b8f6e608c44bc912f92ee92f46637edd1b767afdb95464b62b0e6bfcf86ab6
5
5
  SHA512:
6
- metadata.gz: 0b3499e0acf1bb5df6e6382d2eacb0fff863f1a3d493fe864fb25662c21c9cb27aae26fbc46c39fdca1a19ae54976d47e095a230dc5cbea66b66b5132e1edf51
7
- data.tar.gz: d13230909d362eda803d787b1ff0fdcd3331bfa2672b9e4696f6d3e1128367317b32595bd56284dc2c81f22fd78b63107553ae3de1e7e3953601e933f10abc00
6
+ metadata.gz: d07d5063b430dc69ff2c9f9db568e858eb9a10c26a371ce26139bfa2cc3b367c8e6ee6fc54214e487b8169add837c8ff71a087c0f42707083912d1871816faad
7
+ data.tar.gz: 84478f5fba144f60ef7e595a57830f9c61748189c28f4fddbbcf35f2c81f5b55dbd99df8796304341970cdd98e9c811618ff9b5e6269a1eae0c7385949928a38
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- porky_lib (0.9.0)
4
+ porky_lib (0.9.1)
5
5
  aws-sdk-kms
6
6
  aws-sdk-s3
7
7
  msgpack
@@ -63,20 +63,20 @@ GEM
63
63
  rspec-expectations (3.8.4)
64
64
  diff-lcs (>= 1.2.0, < 2.0)
65
65
  rspec-support (~> 3.8.0)
66
- rspec-mocks (3.8.1)
66
+ rspec-mocks (3.8.2)
67
67
  diff-lcs (>= 1.2.0, < 2.0)
68
68
  rspec-support (~> 3.8.0)
69
- rspec-support (3.8.2)
69
+ rspec-support (3.8.3)
70
70
  rspec_junit_formatter (0.4.1)
71
71
  rspec-core (>= 2, < 4, != 2.12.0)
72
- rubocop (0.74.0)
72
+ rubocop (0.75.0)
73
73
  jaro_winkler (~> 1.5.1)
74
74
  parallel (~> 1.10)
75
75
  parser (>= 2.6)
76
76
  rainbow (>= 2.2.2, < 4.0)
77
77
  ruby-progressbar (~> 1.7)
78
78
  unicode-display_width (>= 1.4.0, < 1.7)
79
- rubocop-performance (1.4.1)
79
+ rubocop-performance (1.5.0)
80
80
  rubocop (>= 0.71.0)
81
81
  rubocop-rspec (1.36.0)
82
82
  rubocop (>= 0.68.1)
data/lib/porky_lib.rb CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  module PorkyLib
4
4
  require 'porky_lib/config'
5
+ require 'porky_lib/file_service_helper'
5
6
  require 'porky_lib/file_service'
6
7
  require 'porky_lib/symmetric'
7
8
  require 'porky_lib/version'
8
9
  require 'porky_lib/unencrypted'
9
- require 'porky_lib/file_service_helper'
10
10
  end
@@ -1,11 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'singleton'
4
- require 'porky_lib/file_service_helper'
5
4
 
6
5
  class PorkyLib::FileService
7
6
  include Singleton
8
- include FileServiceHelper
7
+ include PorkyLib::FileServiceHelper
9
8
 
10
9
  class FileServiceError < StandardError; end
11
10
  class FileSizeTooLargeError < StandardError; end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'aws-sdk-s3'
4
4
 
5
- module FileServiceHelper
5
+ module PorkyLib::FileServiceHelper
6
6
  def file_size_invalid?(file)
7
7
  file.bytesize > max_size || (File.file?(file) && File.size(file) > max_size)
8
8
  end
@@ -1,11 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'singleton'
4
- require 'porky_lib/file_service_helper'
5
4
 
6
5
  class PorkyLib::Unencrypted::FileService
7
6
  include Singleton
8
- include FileServiceHelper
7
+ include PorkyLib::FileServiceHelper
9
8
 
10
9
  class FileServiceError < StandardError; end
11
10
  class FileSizeTooLargeError < StandardError; end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PorkyLib
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Fletcher
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-01 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms