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 +4 -4
- data/README.md +1 -1
- data/lib/s3_file_cache_download.rb +7 -2
- data/lib/s3_file_cache_download/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7124e4b94ca81aa48253b2aa20838c272fcc8e69
|
4
|
+
data.tar.gz: 6d60c781b08fb4f0cc832c75792803c378b415b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 615697e10313b0aaa293d60cad395bc1c3ca2c6603787ac6228caebfbfe8e019e0f47dcbadf4e568f524f4881de47c6f9bc9f60eec29d0aad49777c099ed3e73
|
7
|
+
data.tar.gz: b7f647e813b50382e7ca204a1e7eb5984ccb1e2858836ea8872e5278bcf9dd9b9b7d6af2230273fb5c173bc3f6364abad5c97e597f8a3b4e6ea72c4bac881924
|
data/README.md
CHANGED
@@ -4,7 +4,12 @@ require 'active_support/configurable'
|
|
4
4
|
require 'aws-sdk'
|
5
5
|
|
6
6
|
module S3FileCacheDownload
|
7
|
-
class FileCacheDirectoryNotFound < StandardError
|
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
|
|
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.
|
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-
|
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.
|
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
|