anaconda 2.1.1 → 2.1.2

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
  SHA1:
3
- metadata.gz: b404bafc0d7c8e17d8100489db15b3362c2af825
4
- data.tar.gz: 2cbd6cecd8095d8aa24721ae74c8ab4ea6d1bd4d
3
+ metadata.gz: babd786e0fe7496713b0a09d714a5b442b01716d
4
+ data.tar.gz: 4bb8808ac748c72e62b9e7ac1b5898d4d30a16da
5
5
  SHA512:
6
- metadata.gz: 1e4d987728779936ca7e28010a2ee9b236b8fc6a635ba897df816013afd62c7d39e25f9c341f27ccbd9ea3de613e155f827adca937c9e4a09836fdf356f799d0
7
- data.tar.gz: 48bbb3160614bc85e3ebf14be739c368f2a304d0f2e57a08f1db5be86835bf07cd2524174624dda459d5afc0f739791c6de672e42a0b596b36b82c717881d5eb
6
+ metadata.gz: c6017111eaff4bc639b85fcde765cef63d5913eb3796f47acd4ad11db8c3841d9e9cc27fc3b48984dfb99e68f218baa2db143a558cd4877d6d8532888664ca5c
7
+ data.tar.gz: fafa7b13b9ea921623ccac71892d8e00a4ceb13b477e0d69246eed27b66298aebfaf108054fe05c6f4d07f3f2a36384270d8e5e48f017298b8d14a859dd790d2
@@ -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
 
@@ -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
- bucket: Anaconda.aws[:aws_bucket],
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://#{Anaconda.aws[:aws_endpoint]}/"
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[:bucket]},
66
+ {bucket: @options[:aws_bucket]},
66
67
  {acl: @options[:acl]}
67
68
  ]
68
69
  }
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "2.1.1"
3
+ VERSION = "2.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anaconda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden