anaconda 0.9.3 → 0.9.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00b5e4ca184d2413bfd4f6d9de606c3eebab574d
4
- data.tar.gz: 03bd4193341fd9850f4f0f7c6df1e73b497a365b
3
+ metadata.gz: 41b78076d96d6575112497147272ed19f16fbcc3
4
+ data.tar.gz: 3078b8a288c4e51ba7cf345b2ec289411f99ecf8
5
5
  SHA512:
6
- metadata.gz: 342153733cbf07604cd4af6caacf0bd0503f8056ee0ef9c7b50403703a75f65c1ede7459bc01c6a922baa389aa522d6c06788f8c83304994c472449db1f3095d
7
- data.tar.gz: 45e63e1c4569ad3efd547748cc84cd041653a9880b0ef9466318c63822d7e63eadd1ff1d333c53903e9f8541af7a04e41dd5295f7c4ae31fd305f5de19a0fb98
6
+ metadata.gz: 14237951c90193befe07b5a22aa123061712fec7045517050b9013dd6c35599060a6694c79d2af885fd6a0e5305617c1554b2eb3d0e2e08e5983093258c22a0c
7
+ data.tar.gz: 85875e215787fcd52bc0dff686f167db259936efe2395d3531d62a050950294bb15243663ab30d352ac5f3275ac38099e8a0e13c11b1dcdf125e14773952d302
@@ -140,6 +140,9 @@ We highly recommend the `figaro` gem [https://github.com/laserlemon/figaro](http
140
140
  The magic method is asset_url which will return a signed S3 URL if the file is stored with an ACL of `private` and will return a non-signed URL if the file is stored with public access.
141
141
 
142
142
  ## Changelog
143
+ * 0.9.4
144
+ * Fix uploads. Previous version broke them completely.
145
+
143
146
  * 0.9.3
144
147
  * If no files have been selected, let form submit as normal
145
148
 
@@ -31,7 +31,7 @@ class @AnacondaUploadManager
31
31
 
32
32
  form_submit_handler: (e) ->
33
33
  self = e.data.self
34
- return true if self.upload_automatically || self.all_uploads_are_complete
34
+ return true if self.upload_automatically || self.all_uploads_are_complete()
35
35
  e.preventDefault()
36
36
  $(this).off( 'submit', self.form_submit_handler )
37
37
 
@@ -46,7 +46,7 @@ class @AnacondaUploadManager
46
46
  all_uploads_are_complete: ->
47
47
  all_completed = true
48
48
  for upload_field, i in @anaconda_upload_fields
49
- if upload_field.upload_in_progress
49
+ if upload_field.upload_in_progress || (!upload_field.upload_in_progress && upload_field.file != null)
50
50
  all_completed = false
51
51
  break
52
52
  return all_completed
@@ -1,5 +1,5 @@
1
1
  module Anaconda
2
2
  module Rails
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.4"
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.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden