s3_file_cache_download 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1622cbece94d617f6c1aae6f4a7c398949536a5
4
- data.tar.gz: f0f67fcc8d9a09e061d2bbb279116611368122a5
3
+ metadata.gz: 7124e4b94ca81aa48253b2aa20838c272fcc8e69
4
+ data.tar.gz: 6d60c781b08fb4f0cc832c75792803c378b415b2
5
5
  SHA512:
6
- metadata.gz: 5bb0399303c6b2187f04e230ec34b47af56a6c6a0fa5f8a96dd0c16bc0d77046581c6e0fe8cfd178a0f51af54f8df224a592377fad7050bc8c9a275209e80de8
7
- data.tar.gz: bcdcf67d96d9bacc3ecf08432e37186d0394d25f89683a2cdf2302d0ef73af01c923795cc53ae0bbd94297dbfd83e9cc079e9df32b042c0ee50631a1de2b5d88
6
+ metadata.gz: 615697e10313b0aaa293d60cad395bc1c3ca2c6603787ac6228caebfbfe8e019e0f47dcbadf4e568f524f4881de47c6f9bc9f60eec29d0aad49777c099ed3e73
7
+ data.tar.gz: b7f647e813b50382e7ca204a1e7eb5984ccb1e2858836ea8872e5278bcf9dd9b9b7d6af2230273fb5c173bc3f6364abad5c97e597f8a3b4e6ea72c4bac881924
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # S3FileCacheDownload
2
2
 
3
- PROVIDE helper method that S3 file download use temporaly file
3
+ Provide helper method that S3 file download use temporaly file
4
4
 
5
5
  ## Usage
6
6
 
@@ -4,7 +4,12 @@ require 'active_support/configurable'
4
4
  require 'aws-sdk'
5
5
 
6
6
  module S3FileCacheDownload
7
- class FileCacheDirectoryNotFound < StandardError; end
7
+ class FileCacheDirectoryNotFound < StandardError
8
+ def initialize(cache_dir)
9
+ @cache_dir = cache_dir
10
+ super "`#{cache_dir}` is not found"
11
+ end
12
+ end
8
13
 
9
14
  include ActiveSupport::Configurable
10
15
 
@@ -28,7 +33,7 @@ module S3FileCacheDownload
28
33
  def configure
29
34
  yield config
30
35
 
31
- raise FileCacheDirectoryNotFound unless Dir.exist?(config.file_cache_directory)
36
+ raise FileCacheDirectoryNotFound, config.file_cache_directory unless Dir.exist?(config.file_cache_directory)
32
37
  end
33
38
  end
34
39
 
@@ -1,3 +1,3 @@
1
1
  module S3FileCacheDownload
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_file_cache_download
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
  - wat-aro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.6.8
119
+ rubygems_version: 2.5.2
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: provide helper method that S3 file download use temporaly file