Skip to content

Commit 2dfabdd

Browse files
committed
added .16
1 parent 0fb4b1e commit 2dfabdd

File tree

9 files changed

+86
-12
lines changed

9 files changed

+86
-12
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ Revision history for jQuery-File-Upload
6262
0.15
6363

6464
fixed bug
65+
66+
0.16
67+
68+
added to documentation for the data subroutine about using catalyst context object to store data

Changes~

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Revision history for jQuery-File-Upload
2+
3+
0.01 Date/time
4+
First version, released on an unsuspecting world.
5+
6+
0.02
7+
8+
added methods data and relative_url_path
9+
10+
0.03
11+
12+
added methods thumbnail_upload_dir, thumbnail_url_base, and thumbnail_url_base. Also fixed
13+
bug where if thumbnail_prefix was set to '' and thumbnail and original filenames were the same,
14+
then the original file would overwrite the thumbnail.
15+
16+
0.04
17+
18+
pod test failed, so I fixed it. Was missing documentation for these two methods:
19+
20+
show_client_filename
21+
thumbnail_quality
22+
23+
Also, added a little bit about how you can get access to the ctx object in the PRE/POST METHODS section.
24+
25+
0.05
26+
27+
added thumbnail_postfix method
28+
29+
0.06
30+
31+
added relative_to_host method
32+
33+
0.07
34+
35+
added require_image method
36+
37+
0.08
38+
39+
fixed issue where if should_delete was set to 0 and handle_request was called with a 1, would not handle response correctly because it would never get to print_response call
40+
41+
0.09
42+
43+
fixed issue where the _clear method would delete some initial passed in values, such as filename and thumbnail_filename
44+
45+
0.10
46+
47+
fixed issue where calling generate_output may cause an error depending on what you passed into it (essentially if _set_uri ended up not being called). Fixed this by calling it manually.
48+
49+
0.11
50+
51+
added delete_params as an option for generate_output method
52+
fixed issue where calling generate_output would generate null for delete urls if there was more than one file to generate it for. (needed to reset delete_url each time around loop)
53+
54+
0.12
55+
56+
fixed _set_uri to use Catalyst URI if it already exists. Also, fixed issue where uri was being reused to generate delete_url in _delete_url if generate_output was passed more than one file.
57+
58+
0.13
59+
60+
fixed issue where IE needs the content-type to be text/plain. suggested by this bug: https://rt.cpan.org/Ticket/Display.html?id=84300&results=fcb4720e2a3df735d29b41e959a7c5af
61+
62+
0.15
63+
64+
fixed bug

MYMETA.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
}
4646
},
4747
"release_status" : "stable",
48-
"version" : "0.15"
48+
"version" : "0.16"
4949
}

MYMETA.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ requires:
2727
Net::SSH2::SFTP: 0
2828
URI: 0
2929
perl: 5.006
30-
version: 0.15
30+
version: 0.16

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ DIRFILESEP = /
6161
DFSEP = $(DIRFILESEP)
6262
NAME = jQuery::File::Upload
6363
NAME_SYM = jQuery_File_Upload
64-
VERSION = 0.15
64+
VERSION = 0.16
6565
VERSION_MACRO = VERSION
66-
VERSION_SYM = 0_15
66+
VERSION_SYM = 0_16
6767
DEFINE_VERSION = -D$(VERSION_MACRO)=\"$(VERSION)\"
68-
XS_VERSION = 0.15
68+
XS_VERSION = 0.16
6969
XS_VERSION_MACRO = XS_VERSION
7070
XS_DEFINE_VERSION = -D$(XS_VERSION_MACRO)=\"$(XS_VERSION)\"
7171
INST_ARCHLIB = blib/arch
@@ -262,7 +262,7 @@ RCS_LABEL = rcs -Nv$(VERSION_SYM): -q
262262
DIST_CP = best
263263
DIST_DEFAULT = tardist
264264
DISTNAME = jQuery-File-Upload
265-
DISTVNAME = jQuery-File-Upload-0.15
265+
DISTVNAME = jQuery-File-Upload-0.16
266266

267267

268268
# --- MakeMaker macro section:
@@ -511,7 +511,7 @@ metafile : create_distdir
511511
$(NOECHO) $(ECHO) ' Net::SSH2::SFTP: 0' >> META_new.yml
512512
$(NOECHO) $(ECHO) ' URI: 0' >> META_new.yml
513513
$(NOECHO) $(ECHO) ' perl: 5.006' >> META_new.yml
514-
$(NOECHO) $(ECHO) 'version: 0.15' >> META_new.yml
514+
$(NOECHO) $(ECHO) 'version: 0.16' >> META_new.yml
515515
-$(NOECHO) $(MV) META_new.yml $(DISTVNAME)/META.yml
516516
$(NOECHO) $(ECHO) Generating META.json
517517
$(NOECHO) $(ECHO) '{' > META_new.json
@@ -561,7 +561,7 @@ metafile : create_distdir
561561
$(NOECHO) $(ECHO) ' }' >> META_new.json
562562
$(NOECHO) $(ECHO) ' },' >> META_new.json
563563
$(NOECHO) $(ECHO) ' "release_status" : "stable",' >> META_new.json
564-
$(NOECHO) $(ECHO) ' "version" : "0.15"' >> META_new.json
564+
$(NOECHO) $(ECHO) ' "version" : "0.16"' >> META_new.json
565565
$(NOECHO) $(ECHO) '}' >> META_new.json
566566
-$(NOECHO) $(MV) META_new.json $(DISTVNAME)/META.json
567567

@@ -857,7 +857,7 @@ testdb_static :: testdb_dynamic
857857
# --- MakeMaker ppd section:
858858
# Creates a PPD (Perl Package Description) for a binary distribution.
859859
ppd :
860-
$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="0.15">' > $(DISTNAME).ppd
860+
$(NOECHO) $(ECHO) '<SOFTPKG NAME="$(DISTNAME)" VERSION="0.16">' > $(DISTNAME).ppd
861861
$(NOECHO) $(ECHO) ' <ABSTRACT>Server-side solution for the L&lt;jQuery File Upload|https://github.com/blueimp/jQuery-File-Upload/&gt; plugin.</ABSTRACT>' >> $(DISTNAME).ppd
862862
$(NOECHO) $(ECHO) ' <AUTHOR>Adam Hopkins &lt;srchulo@cpan.org&gt;</AUTHOR>' >> $(DISTNAME).ppd
863863
$(NOECHO) $(ECHO) ' <IMPLEMENTATION>' >> $(DISTNAME).ppd

blib/lib/jQuery/File/Upload.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use URI;
1616
#use LWP::UserAgent;
1717
#use LWP::Protocol::https;
1818

19-
our $VERSION = '0.15';
19+
our $VERSION = '0.16';
2020

2121
my %errors = (
2222
'_validate_max_file_size' => 'File is too big',
@@ -2330,7 +2330,10 @@ This method can be populated with whatever you like. Its purpose is
23302330
if you need to get access to other data in one of your
23312331
L<pre/post request|/"PRE/POST REQUEST METHODS">. This way you
23322332
can access any outside data you need by calling L<data|/"data"> on
2333-
the jQuery::File::Upload object that you are passed.
2333+
the jQuery::File::Upload object that you are passed. However, keep in mind
2334+
that if you are using L<Catalyst>, you will have access to the context
2335+
object via the jQuery::File::Upload object that is passed in, and this
2336+
would be an equally good place to store/retrieve data that you need.
23342337
23352338
=head2 JUST GETTERS
23362339

blib/man3/jQuery::File::Upload.3pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,10 @@ This method can be populated with whatever you like. Its purpose is
980980
if you need to get access to other data in one of your
981981
pre/post request. This way you
982982
can access any outside data you need by calling data on
983-
the jQuery::File::Upload object that you are passed.
983+
the jQuery::File::Upload object that you are passed. However, keep in mind
984+
that if you are using Catalyst, you will have access to the context
985+
object via the jQuery::File::Upload object that is passed in, and this
986+
would be an equally good place to store/retrieve data that you need.
984987
.SS "\s-1JUST\s0 \s-1GETTERS\s0"
985988
.IX Subsection "JUST GETTERS"
986989
\fIoutput\fR

jQuery-File-Upload-0.15.tar.gz

-19.7 KB
Binary file not shown.

jQuery-File-Upload-0.16.tar.gz

19.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)