anaconda 0.9.2 → 0.9.3
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/app/assets/javascripts/anaconda_uploader.js.coffee +10 -2
 - 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: 00b5e4ca184d2413bfd4f6d9de606c3eebab574d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 03bd4193341fd9850f4f0f7c6df1e73b497a365b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 342153733cbf07604cd4af6caacf0bd0503f8056ee0ef9c7b50403703a75f65c1ede7459bc01c6a922baa389aa522d6c06788f8c83304994c472449db1f3095d
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 45e63e1c4569ad3efd547748cc84cd041653a9880b0ef9466318c63822d7e63eadd1ff1d333c53903e9f8541af7a04e41dd5295f7c4ae31fd305f5de19a0fb98
         
     | 
    
        data/README.markdown
    CHANGED
    
    | 
         @@ -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.3
         
     | 
| 
      
 144 
     | 
    
         
            +
            	* If no files have been selected, let form submit as normal
         
     | 
| 
      
 145 
     | 
    
         
            +
             
     | 
| 
       143 
146 
     | 
    
         
             
            * 0.9.2
         
     | 
| 
       144 
147 
     | 
    
         
             
              * Always use UTC for policy expiration date, even if Time.zone is set to something else.
         
     | 
| 
       145 
148 
     | 
    
         | 
| 
         @@ -31,7 +31,7 @@ class @AnacondaUploadManager 
     | 
|
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
              form_submit_handler: (e) ->
         
     | 
| 
       33 
33 
     | 
    
         
             
                self = e.data.self
         
     | 
| 
       34 
     | 
    
         
            -
                return if self.upload_automatically
         
     | 
| 
      
 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 
     | 
    
         | 
| 
         @@ -42,7 +42,15 @@ class @AnacondaUploadManager 
     | 
|
| 
       42 
42 
     | 
    
         
             
                for upload_field, i in @anaconda_upload_fields
         
     | 
| 
       43 
43 
     | 
    
         
             
                  upload_field.reset()
         
     | 
| 
       44 
44 
     | 
    
         
             
                @anaconda_upload_fields = []
         
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
      
 45 
     | 
    
         
            +
              
         
     | 
| 
      
 46 
     | 
    
         
            +
              all_uploads_are_complete: ->
         
     | 
| 
      
 47 
     | 
    
         
            +
                all_completed = true
         
     | 
| 
      
 48 
     | 
    
         
            +
                for upload_field, i in @anaconda_upload_fields
         
     | 
| 
      
 49 
     | 
    
         
            +
                  if upload_field.upload_in_progress
         
     | 
| 
      
 50 
     | 
    
         
            +
                    all_completed = false
         
     | 
| 
      
 51 
     | 
    
         
            +
                    break
         
     | 
| 
      
 52 
     | 
    
         
            +
                return all_completed
         
     | 
| 
      
 53 
     | 
    
         
            +
              
         
     | 
| 
       46 
54 
     | 
    
         
             
              upload_completed: ->
         
     | 
| 
       47 
55 
     | 
    
         
             
                all_completed = true
         
     | 
| 
       48 
56 
     | 
    
         
             
                for upload_field, i in @anaconda_upload_fields
         
     | 
    
        data/lib/anaconda/version.rb
    CHANGED