anaconda 0.12.1 → 0.12.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: b215602192966e3b701912a7388182b37487bb93
4
- data.tar.gz: c74e123f394996b4c3fddf73779c34cb02ad156c
3
+ metadata.gz: dcafa5a609c883cdcf985429b9aab24b03cae591
4
+ data.tar.gz: cbd055fbc2b06b2f600124b9eb18a8e52c8ab959
5
5
  SHA512:
6
- metadata.gz: a314d5936a6c90df4cc3bdc69baa42d2a80a27472bc384a19a0c8425790e9e327495bbbe0de9889bc1611994e7d46e6f8517be0d2fbf7d810d2bbac6765e1feb
7
- data.tar.gz: d43e7f37a75056d1fc11e7c0e153337924d8faacabdb68b74b88c696d4ff616d465c22fbacf0d5ed6b06c6f0e7ddb0a73fc04da089650ee5399097a50a3cce27
6
+ metadata.gz: 0a385e5a061bd3984b987889eee017280694cc3b53c038384d6ec65986cbaecd1c11970fbe7fd50d96866246b9a19ca624f9f57df3b900a9ef8376a176dc8ab9
7
+ data.tar.gz: a2dd2c03211f869cb9ce1827ef95bf4245223f90314b4b259838a77dbfa5dabaaf358fb4f1ef7a88899186d2b95a59e3888da0cd7c9488aa2838856718c62ca3
data/README.markdown CHANGED
@@ -179,6 +179,10 @@ We highly recommend the `figaro` gem [https://github.com/laserlemon/figaro](http
179
179
  `asset_download_url` will return a signed S3 URL with content-disposition set to attachment so the file will be downloaded instead of opened in the browser.
180
180
 
181
181
  ## Changelog
182
+ * 0.12.2
183
+ * Fix bug introduced in 0.12.1
184
+ * Wrap hidden fields in the anaconda_dropzone div (to fix bug)
185
+
182
186
  * 0.12.1
183
187
  * Make progress bar go to 100% on upload complete
184
188
  * Properly store ACL on file upload (`asset_stored_privately`)
@@ -7,7 +7,7 @@ module Anaconda
7
7
  options = {}
8
8
 
9
9
  element_id = "anaconda_file_#{anaconda_field_name}"
10
-
10
+ output += "<div class='anaconda_dropzone'>"
11
11
  if self.class == SimpleForm::FormBuilder
12
12
  instance = self.object
13
13
  a_class = self.object.class unless self.object.kind_of? Class
@@ -24,9 +24,7 @@ module Anaconda
24
24
  end
25
25
 
26
26
  uploader = S3Uploader.new(options)
27
- output += "<div class='anaconda_dropzone'>"
28
27
  output += self.input_field "file", name: "file", id: element_id, as: :file, data: {url: uploader.url, form_data: uploader.fields.to_json, media_types: Anaconda.js_file_types}
29
- output += "</div>"
30
28
  end
31
29
 
32
30
  output += self.hidden_field "#{anaconda_field_name}_filename".to_sym, data: {"#{instance.class.to_s.underscore}_#{anaconda_field_name}_filename" => true}
@@ -36,6 +34,8 @@ module Anaconda
36
34
  output += self.hidden_field "#{anaconda_field_name}_stored_privately".to_sym, data: {"#{instance.class.to_s.underscore}_#{anaconda_field_name}_stored_privately" => true}
37
35
  output += self.hidden_field "#{anaconda_field_name}_type".to_sym, data: {"#{instance.class.to_s.underscore}_#{anaconda_field_name}_type" => true}
38
36
  # output += render(:template =>"anaconda/_uploader_form_for.html.haml", :locals => {resource: instance, options: options.merge(as: anaconda_field_name, form_options: form_options, element_id: element_id )}, layout: false).to_s
37
+
38
+ output += "</div>" #anaconda_dropzone
39
39
 
40
40
  options = options.merge(as: anaconda_field_name, form_options: form_options, element_id: element_id )
41
41
  output += <<-END
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "0.12.1"
3
+ VERSION = "0.12.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: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden