yanker 0.0.4 → 0.0.5
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 +3 -3
- data/lib/file_uploader/version.rb +1 -1
- data/lib/resource/resource_s3.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f91fe8f95ce6eb51d2ea9336b1eb5e01f687e0cd
|
|
4
|
+
data.tar.gz: ad6caddc1b59ea5732274163d90b35c0b6d5eb63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47fb29060dc88ebac92c1379dc4838a4d4ea8166d81a6b18c18416e689a60e650960bb6e0d45f3d5c953fb52f728131554dd20a656fb80f2e897b22f46823e68
|
|
7
|
+
data.tar.gz: 3f3f296de2497e08823b32e4f044d66fa14516e3cafcf5a9a9068734a20019ed58cb8f5c904044ae14efde5398ef5d20434b15ce738bfb54f9c4ff136eabd3a5
|
data/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Yanker: A File Uploader
|
|
2
|
+
========================
|
|
3
3
|
|
|
4
4
|
A simple file uploader that uses Amazon S3 for remote storage.
|
|
5
5
|
|
|
6
6
|
[](https://travis-ci.org/nchase/file_uploader) [](https://coveralls.io/r/nchase/file_uploader)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
Be sure to run and use the specs!
|
|
9
|
+
Be sure to run and use the specs! Autotest has been included in the test gemset if you're into that kind of thing.
|
data/lib/resource/resource_s3.rb
CHANGED
|
@@ -2,7 +2,12 @@ require 'aws/s3'
|
|
|
2
2
|
require 'yaml'
|
|
3
3
|
|
|
4
4
|
module S3Resource
|
|
5
|
-
|
|
5
|
+
if (defined?(Rails))
|
|
6
|
+
S3_CONFIG = YAML.load_file("#{Rails.root}/config/yanker.yaml")
|
|
7
|
+
else
|
|
8
|
+
S3_CONFIG = YAML.load_file(File.expand_path('../../../config/s3.yaml', __FILE__))
|
|
9
|
+
end
|
|
10
|
+
|
|
6
11
|
S3_KEY = S3_CONFIG['access_key_id']
|
|
7
12
|
S3_SECRET = S3_CONFIG['secret_access_key']
|
|
8
13
|
S3_BUCKET = S3_CONFIG['bucket']
|