applicious_utils 0.1.86 → 0.1.88

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.
@@ -1,3 +1,3 @@
1
1
  module AppliciousUtils
2
- VERSION = "0.1.86"
2
+ VERSION = "0.1.88"
3
3
  end
@@ -43,57 +43,48 @@ module AppliciousUtils
43
43
  out = ""
44
44
 
45
45
  out << javascript_tag("$(function() {
46
-
46
+
47
47
  /*
48
- * S3 Uploader instance
48
+ * S3 Uploader instance
49
49
  */
50
- // image uploader via plupload
51
- var applicious_uploader = new plupload.Uploader({
52
- preinit : {
53
- UploadFile: function(up, file) {
54
- up.settings.multipart_params: {
55
- 'key': 'uploads/#{filename_token}.' + file.name.split('.').pop(),
56
- 'Filename': 'uploads/#{filename_token}.' + file.name.split('.').pop(), // adding this to keep consistency across the runtimes
57
- 'acl': '#{options[:acl]}',
58
- 'Content-Type': '#{options[:content_type]}',
59
- 'success_action_status': '201',
60
- 'AWSAccessKeyId' : '#{access_key_id}',
61
- 'policy': '#{policy}',
62
- 'signature': '#{signature}'
63
- },
64
- }
50
+ var applicious_uploader = new plupload.Uploader({
51
+ preinit : {
52
+ UploadFile: function(up, file) {
53
+ up.settings.multipart_params: {
54
+ 'key': 'uploads/#{filename_token}.' + file.name.split('.').pop(),
55
+ 'Filename': 'uploads/#{filename_token}.' + file.name.split('.').pop(), // adding this to keep consistency across the runtimes
65
56
  },
66
-
67
-
68
- runtimes : 'flash,silverlight',
69
- browse_button : '#{options[:button_id]}',
70
- max_file_size : '500mb',
71
- url : 'http://#{bucket}.s3.amazonaws.com/',
72
- flash_swf_url: '/applicious/plupload/plupload.flash.swf',
73
- silverlight_xap_url: '/applicious/plupload/plupload.silverlight.xap',
74
- multi_selection: false,
57
+ }
58
+ },
59
+
60
+
61
+ runtimes : 'flash,silverlight',
62
+ browse_button : '#{options[:button_id]}',
63
+ max_file_size : '500mb',
64
+ url : 'http://#{bucket}.s3.amazonaws.com/',
65
+ flash_swf_url: '/applicious/plupload/plupload.flash.swf',
66
+ silverlight_xap_url: '/applicious/plupload/plupload.silverlight.xap',
67
+ multi_selection: false,
68
+
69
+ //resize : {width : 320, height : 240, quality : 90},
75
70
 
76
- //resize : {width : 320, height : 240, quality : 90},
71
+ multipart: true,
72
+ multipart_params: {
73
+ 'acl': '#{options[:acl]}',
74
+ 'Content-Type': '#{options[:content_type]}',
75
+ 'success_action_status': '201',
76
+ 'AWSAccessKeyId' : '#{access_key_id}',
77
+ 'policy': '#{policy}',
78
+ 'signature': '#{signature}'
79
+ },
80
+ filters : [
81
+ {title : '#{options[:filter_title]}', extensions : '#{options[:filter_extensions]}'}
82
+ ],
83
+ file_data_name: 'file'
84
+ });
77
85
 
78
- multipart: true,
79
- multipart_params: {
80
- //'key': 'uploads/#{filename_token}_${filename}',
81
- //'Filename': 'uploads/#{filename_token}_${filename}', // adding this to keep consistency across the runtimes
82
- 'acl': '#{options[:acl]}',
83
- 'Content-Type': '#{options[:content_type]}',
84
- 'success_action_status': '201',
85
- 'AWSAccessKeyId' : '#{access_key_id}',
86
- 'policy': '#{policy}',
87
- 'signature': '#{signature}'
88
- },
89
- filters : [
90
- {title : '#{options[:filter_title]}', extensions : '#{options[:filter_extensions]}'}
91
- ],
92
- file_data_name: 'file'
93
- });
94
-
95
- AP.Uploader.init( applicious_uploader, '#{filename_token}' )
96
- });")
86
+ AP.Uploader.init( applicious_uploader, '#{filename_token}' )
87
+ });")
97
88
 
98
89
  end
99
90
  end
@@ -10,9 +10,8 @@ root.appliciousUploaderFileAdded = (up, files) ->
10
10
  root.appliciousUploaderUploadProgress = (up, file) ->
11
11
  #AP.log 'Called'
12
12
 
13
- root.appliciousUploaderFileUploaded = (up, file) ->
13
+ root.appliciousUploaderFileUploaded = (up, file, token) ->
14
14
  AP.log 'Called'
15
- #token = AP.Uploader.FileToken
16
15
 
17
16
  root.appliciousUploaderError = (up, error) ->
18
17
  AP.log 'Called'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applicious_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.86
4
+ version: 0.1.88
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: