anaconda 2.1.1 → 2.1.2
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.markdown +3 -0
- data/lib/anaconda/s3_uploader.rb +4 -3
- data/lib/anaconda/version.rb +1 -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: babd786e0fe7496713b0a09d714a5b442b01716d
|
4
|
+
data.tar.gz: 4bb8808ac748c72e62b9e7ac1b5898d4d30a16da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6017111eaff4bc639b85fcde765cef63d5913eb3796f47acd4ad11db8c3841d9e9cc27fc3b48984dfb99e68f218baa2db143a558cd4877d6d8532888664ca5c
|
7
|
+
data.tar.gz: fafa7b13b9ea921623ccac71892d8e00a4ceb13b477e0d69246eed27b66298aebfaf108054fe05c6f4d07f3f2a36384270d8e5e48f017298b8d14a859dd790d2
|
data/README.markdown
CHANGED
@@ -222,6 +222,9 @@ If you return false to the following events it will prevent the default behavior
|
|
222
222
|
From version 1.0.0 on we have used [Semantic Versioning](http://semver.org/).
|
223
223
|
|
224
224
|
## Changelog
|
225
|
+
* 2.1.2
|
226
|
+
* Fix bug causing files to upload to the wrong bucket if you overwrote `bucket` in the `anaconda_for` declaration.
|
227
|
+
|
225
228
|
* 2.1.1
|
226
229
|
* Handle passing "://" as part of the protocol in `asset_download_url` magic method
|
227
230
|
|
data/lib/anaconda/s3_uploader.rb
CHANGED
@@ -5,7 +5,8 @@ module Anaconda
|
|
5
5
|
id: "fileupload",
|
6
6
|
aws_access_key_id: Anaconda.aws[:aws_access_key],
|
7
7
|
aws_secret_access_key: Anaconda.aws[:aws_secret_key],
|
8
|
-
|
8
|
+
aws_bucket: Anaconda.aws[:aws_bucket],
|
9
|
+
aws_endpoint: Anaconda.aws[:aws_endpoint],
|
9
10
|
acl: "public-read",
|
10
11
|
expiration: 10.hours.from_now.utc,
|
11
12
|
max_file_size: 500.megabytes,
|
@@ -47,7 +48,7 @@ module Anaconda
|
|
47
48
|
end
|
48
49
|
|
49
50
|
def url
|
50
|
-
"https://#{
|
51
|
+
"https://#{@options[:aws_endpoint]}/"
|
51
52
|
end
|
52
53
|
|
53
54
|
def policy
|
@@ -62,7 +63,7 @@ module Anaconda
|
|
62
63
|
["starts-with", "$key", base_key],
|
63
64
|
["starts-with", "$Content-Type", ""],
|
64
65
|
["content-length-range", 1, @options[:max_file_size]],
|
65
|
-
{bucket: @options[:
|
66
|
+
{bucket: @options[:aws_bucket]},
|
66
67
|
{acl: @options[:acl]}
|
67
68
|
]
|
68
69
|
}
|
data/lib/anaconda/version.rb
CHANGED