papermill 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.2
1
+ 0.10.3
@@ -31,7 +31,7 @@ class PapermillController < ApplicationController
31
31
  page << "jQuery('#papermill_asset_#{params[:id]}').remove()"
32
32
  else
33
33
  page << "jQuery('#papermill_asset_#{params[:id]}').show()"
34
- page << %{ notify("#{t((@asset && "not-deleted" || "not-found"), :ressource => @asset.name, :scope => "papermill")}", error) }
34
+ page << %{ notify("#{t((@asset && "not-deleted" || "not-found"), :ressource => @asset.name, :scope => "papermill")}", "error") }
35
35
  end
36
36
  end
37
37
  end
@@ -1,4 +1,4 @@
1
- <link href="/stylesheets/papermill.css" media="screen" rel="stylesheet" type="text/css" />
1
+ <link href="/papermill/papermill.css" media="screen" rel="stylesheet" type="text/css" />
2
2
  <div id="papermill-box">
3
3
  <div id="left">
4
4
  <%= link_to(@asset.image? ? image_tag(@asset.url("400x#{Papermill::PAPERMILL_DEFAULTS[:max_height]}>")) : I18n.t("file_type", :type => @asset.content_type.join("/"), :scope => 'papermill'), @asset.url, :popup => true) %>
@@ -12,13 +12,12 @@ module PapermillHelper
12
12
  html << %{<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"</script>} if options[:with_jquery] || options[:with_jqueryui_only]
13
13
  html << %{<script type="text/javascript">jQuery.noConflict();</script>} if options[:with_jquery] == "no_conflict"
14
14
  end
15
- html << %{<script src="http://swfupload.googlecode.com/svn/swfupload/tags/swfupload_v2.2.0_core/swfupload.js"></script>}
16
15
  html << %{<script type="text/javascript">}
17
16
  ["SWFUPLOAD_PENDING", "SWFUPLOAD_LOADING", "SWFUPLOAD_ERROR"].each do |js_constant|
18
17
  html << %{var #{js_constant} = "#{I18n.t(js_constant, :scope => "papermill")}";}
19
18
  end
20
19
  html << %{</script>}
21
- html << javascript_include_tag("/papermill/papermill")
20
+ html << javascript_include_tag("/papermill/papermill", "papermill/swfupload")
22
21
  unless @content_for_papermill_inline_js.blank?
23
22
  html << '<script type="text/javascript">jQuery(document).ready(function() {'
24
23
  html << @content_for_papermill_inline_js
data/papermill.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{papermill}
8
- s.version = "0.10.2"
8
+ s.version = "0.10.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benoit B\303\251n\303\251zech"]
12
- s.date = %q{2009-09-30}
12
+ s.date = %q{2009-10-02}
13
13
  s.description = %q{Paperclip Swfupload UploadHelper wrapper}
14
14
  s.email = %q{benoit.benezech@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -50,6 +50,7 @@ Gem::Specification.new do |s|
50
50
  "public/papermill/images/upload.png",
51
51
  "public/papermill/papermill.css",
52
52
  "public/papermill/papermill.js",
53
+ "public/papermill/swfupload.js",
53
54
  "public/papermill/swfupload.swf",
54
55
  "rails/init.rb",
55
56
  "tasks/papermill_tasks.rake",
@@ -0,0 +1,987 @@
1
+ /**
2
+ * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com
3
+ *
4
+ * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/
5
+ *
6
+ * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilzén and Mammon Media and is released under the MIT License:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ *
9
+ * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License:
10
+ * http://www.opensource.org/licenses/mit-license.php
11
+ *
12
+ */
13
+
14
+
15
+ /* ******************* */
16
+ /* Constructor & Init */
17
+ /* ******************* */
18
+ var SWFUpload;
19
+
20
+ if (SWFUpload == undefined) {
21
+ SWFUpload = function (settings) {
22
+ this.initSWFUpload(settings);
23
+ };
24
+ }
25
+
26
+ SWFUpload.prototype.initSWFUpload = function (settings) {
27
+ try {
28
+ this.customSettings = {}; // A container where developers can place their own settings associated with this instance.
29
+ this.settings = settings;
30
+ this.eventQueue = [];
31
+ this.movieName = "SWFUpload_" + SWFUpload.movieCount++;
32
+ this.movieElement = null;
33
+
34
+
35
+ // Setup global control tracking
36
+ SWFUpload.instances[this.movieName] = this;
37
+
38
+ // Load the settings. Load the Flash movie.
39
+ this.initSettings();
40
+ this.loadFlash();
41
+ this.displayDebugInfo();
42
+ } catch (ex) {
43
+ delete SWFUpload.instances[this.movieName];
44
+ throw ex;
45
+ }
46
+ };
47
+
48
+ /* *************** */
49
+ /* Static Members */
50
+ /* *************** */
51
+ SWFUpload.instances = {};
52
+ SWFUpload.movieCount = 0;
53
+ SWFUpload.version = "2.2.0 2009-03-25";
54
+ SWFUpload.QUEUE_ERROR = {
55
+ QUEUE_LIMIT_EXCEEDED : -100,
56
+ FILE_EXCEEDS_SIZE_LIMIT : -110,
57
+ ZERO_BYTE_FILE : -120,
58
+ INVALID_FILETYPE : -130
59
+ };
60
+ SWFUpload.UPLOAD_ERROR = {
61
+ HTTP_ERROR : -200,
62
+ MISSING_UPLOAD_URL : -210,
63
+ IO_ERROR : -220,
64
+ SECURITY_ERROR : -230,
65
+ UPLOAD_LIMIT_EXCEEDED : -240,
66
+ UPLOAD_FAILED : -250,
67
+ SPECIFIED_FILE_ID_NOT_FOUND : -260,
68
+ FILE_VALIDATION_FAILED : -270,
69
+ FILE_CANCELLED : -280,
70
+ UPLOAD_STOPPED : -290
71
+ };
72
+ SWFUpload.FILE_STATUS = {
73
+ QUEUED : -1,
74
+ IN_PROGRESS : -2,
75
+ ERROR : -3,
76
+ COMPLETE : -4,
77
+ CANCELLED : -5
78
+ };
79
+ SWFUpload.BUTTON_ACTION = {
80
+ SELECT_FILE : -100,
81
+ SELECT_FILES : -110,
82
+ START_UPLOAD : -120
83
+ };
84
+ SWFUpload.CURSOR = {
85
+ ARROW : -1,
86
+ HAND : -2
87
+ };
88
+ SWFUpload.WINDOW_MODE = {
89
+ WINDOW : "window",
90
+ TRANSPARENT : "transparent",
91
+ OPAQUE : "opaque"
92
+ };
93
+
94
+ // Private: takes a URL, determines if it is relative and converts to an absolute URL
95
+ // using the current site. Only processes the URL if it can, otherwise returns the URL untouched
96
+ SWFUpload.completeURL = function(url) {
97
+ if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) {
98
+ return url;
99
+ }
100
+
101
+ var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
102
+
103
+ var indexSlash = window.location.pathname.lastIndexOf("/");
104
+ if (indexSlash <= 0) {
105
+ path = "/";
106
+ } else {
107
+ path = window.location.pathname.substr(0, indexSlash) + "/";
108
+ }
109
+
110
+ return /*currentURL +*/ path + url;
111
+
112
+ };
113
+
114
+
115
+ /* ******************** */
116
+ /* Instance Members */
117
+ /* ******************** */
118
+
119
+ // Private: initSettings ensures that all the
120
+ // settings are set, getting a default value if one was not assigned.
121
+ SWFUpload.prototype.initSettings = function () {
122
+ this.ensureDefault = function (settingName, defaultValue) {
123
+ this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName];
124
+ };
125
+
126
+ // Upload backend settings
127
+ this.ensureDefault("upload_url", "");
128
+ this.ensureDefault("preserve_relative_urls", false);
129
+ this.ensureDefault("file_post_name", "Filedata");
130
+ this.ensureDefault("post_params", {});
131
+ this.ensureDefault("use_query_string", false);
132
+ this.ensureDefault("requeue_on_error", false);
133
+ this.ensureDefault("http_success", []);
134
+ this.ensureDefault("assume_success_timeout", 0);
135
+
136
+ // File Settings
137
+ this.ensureDefault("file_types", "*.*");
138
+ this.ensureDefault("file_types_description", "All Files");
139
+ this.ensureDefault("file_size_limit", 0); // Default zero means "unlimited"
140
+ this.ensureDefault("file_upload_limit", 0);
141
+ this.ensureDefault("file_queue_limit", 0);
142
+
143
+ // Flash Settings
144
+ this.ensureDefault("flash_url", "swfupload.swf");
145
+ this.ensureDefault("prevent_swf_caching", true);
146
+
147
+ // Button Settings
148
+ this.ensureDefault("button_image_url", "");
149
+ this.ensureDefault("button_width", 1);
150
+ this.ensureDefault("button_height", 1);
151
+ this.ensureDefault("button_text", "");
152
+ this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;");
153
+ this.ensureDefault("button_text_top_padding", 0);
154
+ this.ensureDefault("button_text_left_padding", 0);
155
+ this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES);
156
+ this.ensureDefault("button_disabled", false);
157
+ this.ensureDefault("button_placeholder_id", "");
158
+ this.ensureDefault("button_placeholder", null);
159
+ this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW);
160
+ this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW);
161
+
162
+ // Debug Settings
163
+ this.ensureDefault("debug", false);
164
+ this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API
165
+
166
+ // Event Handlers
167
+ this.settings.return_upload_start_handler = this.returnUploadStart;
168
+ this.ensureDefault("swfupload_loaded_handler", null);
169
+ this.ensureDefault("file_dialog_start_handler", null);
170
+ this.ensureDefault("file_queued_handler", null);
171
+ this.ensureDefault("file_queue_error_handler", null);
172
+ this.ensureDefault("file_dialog_complete_handler", null);
173
+
174
+ this.ensureDefault("upload_start_handler", null);
175
+ this.ensureDefault("upload_progress_handler", null);
176
+ this.ensureDefault("upload_error_handler", null);
177
+ this.ensureDefault("upload_success_handler", null);
178
+ this.ensureDefault("upload_complete_handler", null);
179
+
180
+ this.ensureDefault("debug_handler", this.debugMessage);
181
+
182
+ this.ensureDefault("custom_settings", {});
183
+
184
+ // Other settings
185
+ this.customSettings = this.settings.custom_settings;
186
+
187
+ // Update the flash url if needed
188
+ if (!!this.settings.prevent_swf_caching) {
189
+ this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime();
190
+ }
191
+
192
+ if (!this.settings.preserve_relative_urls) {
193
+ //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url); // Don't need to do this one since flash doesn't look at it
194
+ this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url);
195
+ this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url);
196
+ }
197
+
198
+ delete this.ensureDefault;
199
+ };
200
+
201
+ // Private: loadFlash replaces the button_placeholder element with the flash movie.
202
+ SWFUpload.prototype.loadFlash = function () {
203
+ var targetElement, tempParent;
204
+
205
+ // Make sure an element with the ID we are going to use doesn't already exist
206
+ if (document.getElementById(this.movieName) !== null) {
207
+ throw "ID " + this.movieName + " is already in use. The Flash Object could not be added";
208
+ }
209
+
210
+ // Get the element where we will be placing the flash movie
211
+ targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder;
212
+
213
+ if (targetElement == undefined) {
214
+ throw "Could not find the placeholder element: " + this.settings.button_placeholder_id;
215
+ }
216
+
217
+ // Append the container and load the flash
218
+ tempParent = document.createElement("div");
219
+ tempParent.innerHTML = this.getFlashHTML(); // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers)
220
+ targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement);
221
+
222
+ // Fix IE Flash/Form bug
223
+ if (window[this.movieName] == undefined) {
224
+ window[this.movieName] = this.getMovieElement();
225
+ }
226
+
227
+ };
228
+
229
+ // Private: getFlashHTML generates the object tag needed to embed the flash in to the document
230
+ SWFUpload.prototype.getFlashHTML = function () {
231
+ // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay
232
+ return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">',
233
+ '<param name="wmode" value="', this.settings.button_window_mode, '" />',
234
+ '<param name="movie" value="', this.settings.flash_url, '" />',
235
+ '<param name="quality" value="high" />',
236
+ '<param name="menu" value="false" />',
237
+ '<param name="allowScriptAccess" value="always" />',
238
+ '<param name="flashvars" value="' + this.getFlashVars() + '" />',
239
+ '</object>'].join("");
240
+ };
241
+
242
+ // Private: getFlashVars builds the parameter string that will be passed
243
+ // to flash in the flashvars param.
244
+ SWFUpload.prototype.getFlashVars = function () {
245
+ // Build a string from the post param object
246
+ var paramString = this.buildParamString();
247
+ var httpSuccessString = this.settings.http_success.join(",");
248
+
249
+ // Build the parameter string
250
+ return ["movieName=", encodeURIComponent(this.movieName),
251
+ "&amp;uploadURL=", encodeURIComponent(this.settings.upload_url),
252
+ "&amp;useQueryString=", encodeURIComponent(this.settings.use_query_string),
253
+ "&amp;requeueOnError=", encodeURIComponent(this.settings.requeue_on_error),
254
+ "&amp;httpSuccess=", encodeURIComponent(httpSuccessString),
255
+ "&amp;assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout),
256
+ "&amp;params=", encodeURIComponent(paramString),
257
+ "&amp;filePostName=", encodeURIComponent(this.settings.file_post_name),
258
+ "&amp;fileTypes=", encodeURIComponent(this.settings.file_types),
259
+ "&amp;fileTypesDescription=", encodeURIComponent(this.settings.file_types_description),
260
+ "&amp;fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit),
261
+ "&amp;fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit),
262
+ "&amp;fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit),
263
+ "&amp;debugEnabled=", encodeURIComponent(this.settings.debug_enabled),
264
+ "&amp;buttonImageURL=", encodeURIComponent(this.settings.button_image_url),
265
+ "&amp;buttonWidth=", encodeURIComponent(this.settings.button_width),
266
+ "&amp;buttonHeight=", encodeURIComponent(this.settings.button_height),
267
+ "&amp;buttonText=", encodeURIComponent(this.settings.button_text),
268
+ "&amp;buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding),
269
+ "&amp;buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding),
270
+ "&amp;buttonTextStyle=", encodeURIComponent(this.settings.button_text_style),
271
+ "&amp;buttonAction=", encodeURIComponent(this.settings.button_action),
272
+ "&amp;buttonDisabled=", encodeURIComponent(this.settings.button_disabled),
273
+ "&amp;buttonCursor=", encodeURIComponent(this.settings.button_cursor)
274
+ ].join("");
275
+ };
276
+
277
+ // Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload
278
+ // The element is cached after the first lookup
279
+ SWFUpload.prototype.getMovieElement = function () {
280
+ if (this.movieElement == undefined) {
281
+ this.movieElement = document.getElementById(this.movieName);
282
+ }
283
+
284
+ if (this.movieElement === null) {
285
+ throw "Could not find Flash element";
286
+ }
287
+
288
+ return this.movieElement;
289
+ };
290
+
291
+ // Private: buildParamString takes the name/value pairs in the post_params setting object
292
+ // and joins them up in to a string formatted "name=value&amp;name=value"
293
+ SWFUpload.prototype.buildParamString = function () {
294
+ var postParams = this.settings.post_params;
295
+ var paramStringPairs = [];
296
+
297
+ if (typeof(postParams) === "object") {
298
+ for (var name in postParams) {
299
+ if (postParams.hasOwnProperty(name)) {
300
+ paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString()));
301
+ }
302
+ }
303
+ }
304
+
305
+ return paramStringPairs.join("&amp;");
306
+ };
307
+
308
+ // Public: Used to remove a SWFUpload instance from the page. This method strives to remove
309
+ // all references to the SWF, and other objects so memory is properly freed.
310
+ // Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state.
311
+ // Credits: Major improvements provided by steffen
312
+ SWFUpload.prototype.destroy = function () {
313
+ try {
314
+ // Make sure Flash is done before we try to remove it
315
+ this.cancelUpload(null, false);
316
+
317
+
318
+ // Remove the SWFUpload DOM nodes
319
+ var movieElement = null;
320
+ movieElement = this.getMovieElement();
321
+
322
+ if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE
323
+ // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround)
324
+ for (var i in movieElement) {
325
+ try {
326
+ if (typeof(movieElement[i]) === "function") {
327
+ movieElement[i] = null;
328
+ }
329
+ } catch (ex1) {}
330
+ }
331
+
332
+ // Remove the Movie Element from the page
333
+ try {
334
+ movieElement.parentNode.removeChild(movieElement);
335
+ } catch (ex) {}
336
+ }
337
+
338
+ // Remove IE form fix reference
339
+ window[this.movieName] = null;
340
+
341
+ // Destroy other references
342
+ SWFUpload.instances[this.movieName] = null;
343
+ delete SWFUpload.instances[this.movieName];
344
+
345
+ this.movieElement = null;
346
+ this.settings = null;
347
+ this.customSettings = null;
348
+ this.eventQueue = null;
349
+ this.movieName = null;
350
+
351
+
352
+ return true;
353
+ } catch (ex2) {
354
+ return false;
355
+ }
356
+ };
357
+
358
+
359
+ // Public: displayDebugInfo prints out settings and configuration
360
+ // information about this SWFUpload instance.
361
+ // This function (and any references to it) can be deleted when placing
362
+ // SWFUpload in production.
363
+ SWFUpload.prototype.displayDebugInfo = function () {
364
+ this.debug(
365
+ [
366
+ "---SWFUpload Instance Info---\n",
367
+ "Version: ", SWFUpload.version, "\n",
368
+ "Movie Name: ", this.movieName, "\n",
369
+ "Settings:\n",
370
+ "\t", "upload_url: ", this.settings.upload_url, "\n",
371
+ "\t", "flash_url: ", this.settings.flash_url, "\n",
372
+ "\t", "use_query_string: ", this.settings.use_query_string.toString(), "\n",
373
+ "\t", "requeue_on_error: ", this.settings.requeue_on_error.toString(), "\n",
374
+ "\t", "http_success: ", this.settings.http_success.join(", "), "\n",
375
+ "\t", "assume_success_timeout: ", this.settings.assume_success_timeout, "\n",
376
+ "\t", "file_post_name: ", this.settings.file_post_name, "\n",
377
+ "\t", "post_params: ", this.settings.post_params.toString(), "\n",
378
+ "\t", "file_types: ", this.settings.file_types, "\n",
379
+ "\t", "file_types_description: ", this.settings.file_types_description, "\n",
380
+ "\t", "file_size_limit: ", this.settings.file_size_limit, "\n",
381
+ "\t", "file_upload_limit: ", this.settings.file_upload_limit, "\n",
382
+ "\t", "file_queue_limit: ", this.settings.file_queue_limit, "\n",
383
+ "\t", "debug: ", this.settings.debug.toString(), "\n",
384
+
385
+ "\t", "prevent_swf_caching: ", this.settings.prevent_swf_caching.toString(), "\n",
386
+
387
+ "\t", "button_placeholder_id: ", this.settings.button_placeholder_id.toString(), "\n",
388
+ "\t", "button_placeholder: ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n",
389
+ "\t", "button_image_url: ", this.settings.button_image_url.toString(), "\n",
390
+ "\t", "button_width: ", this.settings.button_width.toString(), "\n",
391
+ "\t", "button_height: ", this.settings.button_height.toString(), "\n",
392
+ "\t", "button_text: ", this.settings.button_text.toString(), "\n",
393
+ "\t", "button_text_style: ", this.settings.button_text_style.toString(), "\n",
394
+ "\t", "button_text_top_padding: ", this.settings.button_text_top_padding.toString(), "\n",
395
+ "\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n",
396
+ "\t", "button_action: ", this.settings.button_action.toString(), "\n",
397
+ "\t", "button_disabled: ", this.settings.button_disabled.toString(), "\n",
398
+
399
+ "\t", "custom_settings: ", this.settings.custom_settings.toString(), "\n",
400
+ "Event Handlers:\n",
401
+ "\t", "swfupload_loaded_handler assigned: ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n",
402
+ "\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n",
403
+ "\t", "file_queued_handler assigned: ", (typeof this.settings.file_queued_handler === "function").toString(), "\n",
404
+ "\t", "file_queue_error_handler assigned: ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n",
405
+ "\t", "upload_start_handler assigned: ", (typeof this.settings.upload_start_handler === "function").toString(), "\n",
406
+ "\t", "upload_progress_handler assigned: ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n",
407
+ "\t", "upload_error_handler assigned: ", (typeof this.settings.upload_error_handler === "function").toString(), "\n",
408
+ "\t", "upload_success_handler assigned: ", (typeof this.settings.upload_success_handler === "function").toString(), "\n",
409
+ "\t", "upload_complete_handler assigned: ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n",
410
+ "\t", "debug_handler assigned: ", (typeof this.settings.debug_handler === "function").toString(), "\n"
411
+ ].join("")
412
+ );
413
+ };
414
+
415
+ /* Note: addSetting and getSetting are no longer used by SWFUpload but are included
416
+ the maintain v2 API compatibility
417
+ */
418
+ // Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used.
419
+ SWFUpload.prototype.addSetting = function (name, value, default_value) {
420
+ if (value == undefined) {
421
+ return (this.settings[name] = default_value);
422
+ } else {
423
+ return (this.settings[name] = value);
424
+ }
425
+ };
426
+
427
+ // Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found.
428
+ SWFUpload.prototype.getSetting = function (name) {
429
+ if (this.settings[name] != undefined) {
430
+ return this.settings[name];
431
+ }
432
+
433
+ return "";
434
+ };
435
+
436
+
437
+
438
+ // Private: callFlash handles function calls made to the Flash element.
439
+ // Calls are made with a setTimeout for some functions to work around
440
+ // bugs in the ExternalInterface library.
441
+ SWFUpload.prototype.callFlash = function (functionName, argumentArray) {
442
+ argumentArray = argumentArray || [];
443
+
444
+ var movieElement = this.getMovieElement();
445
+ var returnValue, returnString;
446
+
447
+ // Flash's method if calling ExternalInterface methods (code adapted from MooTools).
448
+ try {
449
+ returnString = movieElement.CallFunction('<invoke name="' + functionName + '" returntype="javascript">' + __flash__argumentsToXML(argumentArray, 0) + '</invoke>');
450
+ returnValue = eval(returnString);
451
+ } catch (ex) {
452
+ throw "Call to " + functionName + " failed";
453
+ }
454
+
455
+ // Unescape file post param values
456
+ if (returnValue != undefined && typeof returnValue.post === "object") {
457
+ returnValue = this.unescapeFilePostParams(returnValue);
458
+ }
459
+
460
+ return returnValue;
461
+ };
462
+
463
+ /* *****************************
464
+ -- Flash control methods --
465
+ Your UI should use these
466
+ to operate SWFUpload
467
+ ***************************** */
468
+
469
+ // WARNING: this function does not work in Flash Player 10
470
+ // Public: selectFile causes a File Selection Dialog window to appear. This
471
+ // dialog only allows 1 file to be selected.
472
+ SWFUpload.prototype.selectFile = function () {
473
+ this.callFlash("SelectFile");
474
+ };
475
+
476
+ // WARNING: this function does not work in Flash Player 10
477
+ // Public: selectFiles causes a File Selection Dialog window to appear/ This
478
+ // dialog allows the user to select any number of files
479
+ // Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names.
480
+ // If the selection name length is too long the dialog will fail in an unpredictable manner. There is no work-around
481
+ // for this bug.
482
+ SWFUpload.prototype.selectFiles = function () {
483
+ this.callFlash("SelectFiles");
484
+ };
485
+
486
+
487
+ // Public: startUpload starts uploading the first file in the queue unless
488
+ // the optional parameter 'fileID' specifies the ID
489
+ SWFUpload.prototype.startUpload = function (fileID) {
490
+ this.callFlash("StartUpload", [fileID]);
491
+ };
492
+
493
+ // Public: cancelUpload cancels any queued file. The fileID parameter may be the file ID or index.
494
+ // If you do not specify a fileID the current uploading file or first file in the queue is cancelled.
495
+ // If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter.
496
+ SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) {
497
+ if (triggerErrorEvent !== false) {
498
+ triggerErrorEvent = true;
499
+ }
500
+ this.callFlash("CancelUpload", [fileID, triggerErrorEvent]);
501
+ };
502
+
503
+ // Public: stopUpload stops the current upload and requeues the file at the beginning of the queue.
504
+ // If nothing is currently uploading then nothing happens.
505
+ SWFUpload.prototype.stopUpload = function () {
506
+ this.callFlash("StopUpload");
507
+ };
508
+
509
+ // Public: requeueUpload requeues any file. If the file is requeued or already queued true is returned.
510
+ // If the file is not found or is currently uploading false is returned
511
+ SWFUpload.prototype.stopUpload = function (indexOrFileID) {
512
+ return this.callFlash("RequeueUpload", [indexOrFileID]);
513
+ };
514
+
515
+
516
+ /* ************************
517
+ * Settings methods
518
+ * These methods change the SWFUpload settings.
519
+ * SWFUpload settings should not be changed directly on the settings object
520
+ * since many of the settings need to be passed to Flash in order to take
521
+ * effect.
522
+ * *********************** */
523
+
524
+ // Public: getStats gets the file statistics object.
525
+ SWFUpload.prototype.getStats = function () {
526
+ return this.callFlash("GetStats");
527
+ };
528
+
529
+ // Public: setStats changes the SWFUpload statistics. You shouldn't need to
530
+ // change the statistics but you can. Changing the statistics does not
531
+ // affect SWFUpload accept for the successful_uploads count which is used
532
+ // by the upload_limit setting to determine how many files the user may upload.
533
+ SWFUpload.prototype.setStats = function (statsObject) {
534
+ this.callFlash("SetStats", [statsObject]);
535
+ };
536
+
537
+ // Public: getFile retrieves a File object by ID or Index. If the file is
538
+ // not found then 'null' is returned.
539
+ SWFUpload.prototype.getFile = function (fileID) {
540
+ if (typeof(fileID) === "number") {
541
+ return this.callFlash("GetFileByIndex", [fileID]);
542
+ } else {
543
+ return this.callFlash("GetFile", [fileID]);
544
+ }
545
+ };
546
+
547
+ // Public: addFileParam sets a name/value pair that will be posted with the
548
+ // file specified by the Files ID. If the name already exists then the
549
+ // exiting value will be overwritten.
550
+ SWFUpload.prototype.addFileParam = function (fileID, name, value) {
551
+ return this.callFlash("AddFileParam", [fileID, name, value]);
552
+ };
553
+
554
+ // Public: removeFileParam removes a previously set (by addFileParam) name/value
555
+ // pair from the specified file.
556
+ SWFUpload.prototype.removeFileParam = function (fileID, name) {
557
+ this.callFlash("RemoveFileParam", [fileID, name]);
558
+ };
559
+
560
+ // Public: setUploadUrl changes the upload_url setting.
561
+ SWFUpload.prototype.setUploadURL = function (url) {
562
+ this.settings.upload_url = url.toString();
563
+ this.callFlash("SetUploadURL", [url]);
564
+ };
565
+
566
+ // Public: setPostParams changes the post_params setting
567
+ SWFUpload.prototype.setPostParams = function (paramsObject) {
568
+ this.settings.post_params = paramsObject;
569
+ this.callFlash("SetPostParams", [paramsObject]);
570
+ };
571
+
572
+ // Public: addPostParam adds post name/value pair. Each name can have only one value.
573
+ SWFUpload.prototype.addPostParam = function (name, value) {
574
+ this.settings.post_params[name] = value;
575
+ this.callFlash("SetPostParams", [this.settings.post_params]);
576
+ };
577
+
578
+ // Public: removePostParam deletes post name/value pair.
579
+ SWFUpload.prototype.removePostParam = function (name) {
580
+ delete this.settings.post_params[name];
581
+ this.callFlash("SetPostParams", [this.settings.post_params]);
582
+ };
583
+
584
+ // Public: setFileTypes changes the file_types setting and the file_types_description setting
585
+ SWFUpload.prototype.setFileTypes = function (types, description) {
586
+ this.settings.file_types = types;
587
+ this.settings.file_types_description = description;
588
+ this.callFlash("SetFileTypes", [types, description]);
589
+ };
590
+
591
+ // Public: setFileSizeLimit changes the file_size_limit setting
592
+ SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) {
593
+ this.settings.file_size_limit = fileSizeLimit;
594
+ this.callFlash("SetFileSizeLimit", [fileSizeLimit]);
595
+ };
596
+
597
+ // Public: setFileUploadLimit changes the file_upload_limit setting
598
+ SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) {
599
+ this.settings.file_upload_limit = fileUploadLimit;
600
+ this.callFlash("SetFileUploadLimit", [fileUploadLimit]);
601
+ };
602
+
603
+ // Public: setFileQueueLimit changes the file_queue_limit setting
604
+ SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) {
605
+ this.settings.file_queue_limit = fileQueueLimit;
606
+ this.callFlash("SetFileQueueLimit", [fileQueueLimit]);
607
+ };
608
+
609
+ // Public: setFilePostName changes the file_post_name setting
610
+ SWFUpload.prototype.setFilePostName = function (filePostName) {
611
+ this.settings.file_post_name = filePostName;
612
+ this.callFlash("SetFilePostName", [filePostName]);
613
+ };
614
+
615
+ // Public: setUseQueryString changes the use_query_string setting
616
+ SWFUpload.prototype.setUseQueryString = function (useQueryString) {
617
+ this.settings.use_query_string = useQueryString;
618
+ this.callFlash("SetUseQueryString", [useQueryString]);
619
+ };
620
+
621
+ // Public: setRequeueOnError changes the requeue_on_error setting
622
+ SWFUpload.prototype.setRequeueOnError = function (requeueOnError) {
623
+ this.settings.requeue_on_error = requeueOnError;
624
+ this.callFlash("SetRequeueOnError", [requeueOnError]);
625
+ };
626
+
627
+ // Public: setHTTPSuccess changes the http_success setting
628
+ SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) {
629
+ if (typeof http_status_codes === "string") {
630
+ http_status_codes = http_status_codes.replace(" ", "").split(",");
631
+ }
632
+
633
+ this.settings.http_success = http_status_codes;
634
+ this.callFlash("SetHTTPSuccess", [http_status_codes]);
635
+ };
636
+
637
+ // Public: setHTTPSuccess changes the http_success setting
638
+ SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) {
639
+ this.settings.assume_success_timeout = timeout_seconds;
640
+ this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]);
641
+ };
642
+
643
+ // Public: setDebugEnabled changes the debug_enabled setting
644
+ SWFUpload.prototype.setDebugEnabled = function (debugEnabled) {
645
+ this.settings.debug_enabled = debugEnabled;
646
+ this.callFlash("SetDebugEnabled", [debugEnabled]);
647
+ };
648
+
649
+ // Public: setButtonImageURL loads a button image sprite
650
+ SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) {
651
+ if (buttonImageURL == undefined) {
652
+ buttonImageURL = "";
653
+ }
654
+
655
+ this.settings.button_image_url = buttonImageURL;
656
+ this.callFlash("SetButtonImageURL", [buttonImageURL]);
657
+ };
658
+
659
+ // Public: setButtonDimensions resizes the Flash Movie and button
660
+ SWFUpload.prototype.setButtonDimensions = function (width, height) {
661
+ this.settings.button_width = width;
662
+ this.settings.button_height = height;
663
+
664
+ var movie = this.getMovieElement();
665
+ if (movie != undefined) {
666
+ movie.style.width = width + "px";
667
+ movie.style.height = height + "px";
668
+ }
669
+
670
+ this.callFlash("SetButtonDimensions", [width, height]);
671
+ };
672
+ // Public: setButtonText Changes the text overlaid on the button
673
+ SWFUpload.prototype.setButtonText = function (html) {
674
+ this.settings.button_text = html;
675
+ this.callFlash("SetButtonText", [html]);
676
+ };
677
+ // Public: setButtonTextPadding changes the top and left padding of the text overlay
678
+ SWFUpload.prototype.setButtonTextPadding = function (left, top) {
679
+ this.settings.button_text_top_padding = top;
680
+ this.settings.button_text_left_padding = left;
681
+ this.callFlash("SetButtonTextPadding", [left, top]);
682
+ };
683
+
684
+ // Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button
685
+ SWFUpload.prototype.setButtonTextStyle = function (css) {
686
+ this.settings.button_text_style = css;
687
+ this.callFlash("SetButtonTextStyle", [css]);
688
+ };
689
+ // Public: setButtonDisabled disables/enables the button
690
+ SWFUpload.prototype.setButtonDisabled = function (isDisabled) {
691
+ this.settings.button_disabled = isDisabled;
692
+ this.callFlash("SetButtonDisabled", [isDisabled]);
693
+ };
694
+ // Public: setButtonAction sets the action that occurs when the button is clicked
695
+ SWFUpload.prototype.setButtonAction = function (buttonAction) {
696
+ this.settings.button_action = buttonAction;
697
+ this.callFlash("SetButtonAction", [buttonAction]);
698
+ };
699
+
700
+ // Public: setButtonCursor changes the mouse cursor displayed when hovering over the button
701
+ SWFUpload.prototype.setButtonCursor = function (cursor) {
702
+ this.settings.button_cursor = cursor;
703
+ this.callFlash("SetButtonCursor", [cursor]);
704
+ };
705
+
706
+ /* *******************************
707
+ Flash Event Interfaces
708
+ These functions are used by Flash to trigger the various
709
+ events.
710
+
711
+ All these functions a Private.
712
+
713
+ Because the ExternalInterface library is buggy the event calls
714
+ are added to a queue and the queue then executed by a setTimeout.
715
+ This ensures that events are executed in a determinate order and that
716
+ the ExternalInterface bugs are avoided.
717
+ ******************************* */
718
+
719
+ SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) {
720
+ // Warning: Don't call this.debug inside here or you'll create an infinite loop
721
+
722
+ if (argumentArray == undefined) {
723
+ argumentArray = [];
724
+ } else if (!(argumentArray instanceof Array)) {
725
+ argumentArray = [argumentArray];
726
+ }
727
+
728
+ var self = this;
729
+ if (typeof this.settings[handlerName] === "function") {
730
+ // Queue the event
731
+ this.eventQueue.push(function () {
732
+ this.settings[handlerName].apply(this, argumentArray);
733
+ });
734
+
735
+ // Execute the next queued event
736
+ setTimeout(function () {
737
+ self.executeNextEvent();
738
+ }, 0);
739
+
740
+ } else if (this.settings[handlerName] !== null) {
741
+ throw "Event handler " + handlerName + " is unknown or is not a function";
742
+ }
743
+ };
744
+
745
+ // Private: Causes the next event in the queue to be executed. Since events are queued using a setTimeout
746
+ // we must queue them in order to garentee that they are executed in order.
747
+ SWFUpload.prototype.executeNextEvent = function () {
748
+ // Warning: Don't call this.debug inside here or you'll create an infinite loop
749
+
750
+ var f = this.eventQueue ? this.eventQueue.shift() : null;
751
+ if (typeof(f) === "function") {
752
+ f.apply(this);
753
+ }
754
+ };
755
+
756
+ // Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have
757
+ // properties that contain characters that are not valid for JavaScript identifiers. To work around this
758
+ // the Flash Component escapes the parameter names and we must unescape again before passing them along.
759
+ SWFUpload.prototype.unescapeFilePostParams = function (file) {
760
+ var reg = /[$]([0-9a-f]{4})/i;
761
+ var unescapedPost = {};
762
+ var uk;
763
+
764
+ if (file != undefined) {
765
+ for (var k in file.post) {
766
+ if (file.post.hasOwnProperty(k)) {
767
+ uk = k;
768
+ var match;
769
+ while ((match = reg.exec(uk)) !== null) {
770
+ uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16)));
771
+ }
772
+ unescapedPost[uk] = file.post[k];
773
+ }
774
+ }
775
+
776
+ file.post = unescapedPost;
777
+ }
778
+
779
+ return file;
780
+ };
781
+
782
+ // Private: Called by Flash to see if JS can call in to Flash (test if External Interface is working)
783
+ SWFUpload.prototype.testExternalInterface = function () {
784
+ try {
785
+ return this.callFlash("TestExternalInterface");
786
+ } catch (ex) {
787
+ return false;
788
+ }
789
+ };
790
+
791
+ // Private: This event is called by Flash when it has finished loading. Don't modify this.
792
+ // Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded.
793
+ SWFUpload.prototype.flashReady = function () {
794
+ // Check that the movie element is loaded correctly with its ExternalInterface methods defined
795
+ var movieElement = this.getMovieElement();
796
+
797
+ if (!movieElement) {
798
+ this.debug("Flash called back ready but the flash movie can't be found.");
799
+ return;
800
+ }
801
+
802
+ this.cleanUp(movieElement);
803
+
804
+ this.queueEvent("swfupload_loaded_handler");
805
+ };
806
+
807
+ // Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE.
808
+ // This function is called by Flash each time the ExternalInterface functions are created.
809
+ SWFUpload.prototype.cleanUp = function (movieElement) {
810
+ // Pro-actively unhook all the Flash functions
811
+ try {
812
+ if (this.movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE
813
+ this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)");
814
+ for (var key in movieElement) {
815
+ try {
816
+ if (typeof(movieElement[key]) === "function") {
817
+ movieElement[key] = null;
818
+ }
819
+ } catch (ex) {
820
+ }
821
+ }
822
+ }
823
+ } catch (ex1) {
824
+
825
+ }
826
+
827
+ // Fix Flashes own cleanup code so if the SWFMovie was removed from the page
828
+ // it doesn't display errors.
829
+ window["__flash__removeCallback"] = function (instance, name) {
830
+ try {
831
+ if (instance) {
832
+ instance[name] = null;
833
+ }
834
+ } catch (flashEx) {
835
+
836
+ }
837
+ };
838
+
839
+ };
840
+
841
+
842
+ /* This is a chance to do something before the browse window opens */
843
+ SWFUpload.prototype.fileDialogStart = function () {
844
+ this.queueEvent("file_dialog_start_handler");
845
+ };
846
+
847
+
848
+ /* Called when a file is successfully added to the queue. */
849
+ SWFUpload.prototype.fileQueued = function (file) {
850
+ file = this.unescapeFilePostParams(file);
851
+ this.queueEvent("file_queued_handler", file);
852
+ };
853
+
854
+
855
+ /* Handle errors that occur when an attempt to queue a file fails. */
856
+ SWFUpload.prototype.fileQueueError = function (file, errorCode, message) {
857
+ file = this.unescapeFilePostParams(file);
858
+ this.queueEvent("file_queue_error_handler", [file, errorCode, message]);
859
+ };
860
+
861
+ /* Called after the file dialog has closed and the selected files have been queued.
862
+ You could call startUpload here if you want the queued files to begin uploading immediately. */
863
+ SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) {
864
+ this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]);
865
+ };
866
+
867
+ SWFUpload.prototype.uploadStart = function (file) {
868
+ file = this.unescapeFilePostParams(file);
869
+ this.queueEvent("return_upload_start_handler", file);
870
+ };
871
+
872
+ SWFUpload.prototype.returnUploadStart = function (file) {
873
+ var returnValue;
874
+ if (typeof this.settings.upload_start_handler === "function") {
875
+ file = this.unescapeFilePostParams(file);
876
+ returnValue = this.settings.upload_start_handler.call(this, file);
877
+ } else if (this.settings.upload_start_handler != undefined) {
878
+ throw "upload_start_handler must be a function";
879
+ }
880
+
881
+ // Convert undefined to true so if nothing is returned from the upload_start_handler it is
882
+ // interpretted as 'true'.
883
+ if (returnValue === undefined) {
884
+ returnValue = true;
885
+ }
886
+
887
+ returnValue = !!returnValue;
888
+
889
+ this.callFlash("ReturnUploadStart", [returnValue]);
890
+ };
891
+
892
+
893
+
894
+ SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) {
895
+ file = this.unescapeFilePostParams(file);
896
+ this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]);
897
+ };
898
+
899
+ SWFUpload.prototype.uploadError = function (file, errorCode, message) {
900
+ file = this.unescapeFilePostParams(file);
901
+ this.queueEvent("upload_error_handler", [file, errorCode, message]);
902
+ };
903
+
904
+ SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) {
905
+ file = this.unescapeFilePostParams(file);
906
+ this.queueEvent("upload_success_handler", [file, serverData, responseReceived]);
907
+ };
908
+
909
+ SWFUpload.prototype.uploadComplete = function (file) {
910
+ file = this.unescapeFilePostParams(file);
911
+ this.queueEvent("upload_complete_handler", file);
912
+ };
913
+
914
+ /* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the
915
+ internal debug console. You can override this event and have messages written where you want. */
916
+ SWFUpload.prototype.debug = function (message) {
917
+ this.queueEvent("debug_handler", message);
918
+ };
919
+
920
+
921
+ /* **********************************
922
+ Debug Console
923
+ The debug console is a self contained, in page location
924
+ for debug message to be sent. The Debug Console adds
925
+ itself to the body if necessary.
926
+
927
+ The console is automatically scrolled as messages appear.
928
+
929
+ If you are using your own debug handler or when you deploy to production and
930
+ have debug disabled you can remove these functions to reduce the file size
931
+ and complexity.
932
+ ********************************** */
933
+
934
+ // Private: debugMessage is the default debug_handler. If you want to print debug messages
935
+ // call the debug() function. When overriding the function your own function should
936
+ // check to see if the debug setting is true before outputting debug information.
937
+ SWFUpload.prototype.debugMessage = function (message) {
938
+ if (this.settings.debug) {
939
+ var exceptionMessage, exceptionValues = [];
940
+
941
+ // Check for an exception object and print it nicely
942
+ if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") {
943
+ for (var key in message) {
944
+ if (message.hasOwnProperty(key)) {
945
+ exceptionValues.push(key + ": " + message[key]);
946
+ }
947
+ }
948
+ exceptionMessage = exceptionValues.join("\n") || "";
949
+ exceptionValues = exceptionMessage.split("\n");
950
+ exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: ");
951
+ SWFUpload.Console.writeLine(exceptionMessage);
952
+ } else {
953
+ SWFUpload.Console.writeLine(message);
954
+ }
955
+ }
956
+ };
957
+
958
+ SWFUpload.Console = {};
959
+ SWFUpload.Console.writeLine = function (message) {
960
+ var console, documentForm;
961
+
962
+ try {
963
+ console = document.getElementById("SWFUpload_Console");
964
+
965
+ if (!console) {
966
+ documentForm = document.createElement("form");
967
+ document.getElementsByTagName("body")[0].appendChild(documentForm);
968
+
969
+ console = document.createElement("textarea");
970
+ console.id = "SWFUpload_Console";
971
+ console.style.fontFamily = "monospace";
972
+ console.setAttribute("wrap", "off");
973
+ console.wrap = "off";
974
+ console.style.overflow = "auto";
975
+ console.style.width = "700px";
976
+ console.style.height = "350px";
977
+ console.style.margin = "5px";
978
+ documentForm.appendChild(console);
979
+ }
980
+
981
+ console.value += message + "\n";
982
+
983
+ console.scrollTop = console.scrollHeight - console.clientHeight;
984
+ } catch (ex) {
985
+ alert("Exception: " + ex.name + " Message: " + ex.message);
986
+ }
987
+ };
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papermill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-30 00:00:00 +02:00
12
+ date: 2009-10-02 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -85,6 +85,7 @@ files:
85
85
  - public/papermill/images/upload.png
86
86
  - public/papermill/papermill.css
87
87
  - public/papermill/papermill.js
88
+ - public/papermill/swfupload.js
88
89
  - public/papermill/swfupload.swf
89
90
  - rails/init.rb
90
91
  - tasks/papermill_tasks.rake