Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,20 @@ perl:
- "5.26"
- "blead"

env:
- WITHOUT_RECOMMENDS=0
- WITHOUT_RECOMMENDS=1

matrix:
allow_failures:
- perl: blead
exclude:
- perl: "5.10"
env: WITHOUT_RECOMMENDS=1
- perl: "5.12"
env: WITHOUT_RECOMMENDS=1
- perl: "5.14"
env: WITHOUT_RECOMMENDS=1

sudo: false

Expand All @@ -27,6 +38,11 @@ before_install:
- build-dist
- cd $BUILD_DIR
- cpan-install ExtUtils::MakeMaker~6.68
- if [ "$WITHOUT_RECOMMENDS" = "1" ]; then
for f in "META.json" "META.yml" "Makefile.PL"; do
cat $f | grep -P -v 'Filter::signatures|MIME::Detect|Text::CleanFragment|^recommends:' > $$ && mv -f $$ $f;
done;
fi
- cpan-install --deps

script:
Expand Down
10 changes: 6 additions & 4 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
"requires" : {
"Carp" : "0",
"Data::Dumper" : "0",
"Filter::signatures" : "0.04",
"JSON" : "0",
"MIME::Detect" : "0",
"Test::More" : "0",
"Text::CleanFragment" : "0",
"perl" : "5.006"
"perl" : "5.010"
},
"recommends" : {
"Filter::signatures" : "0.10",
"MIME::Detect" : "0",
"Text::CleanFragment" : "0"
}
}
},
Expand Down
7 changes: 4 additions & 3 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ provides:
requires:
Carp: '0'
Data::Dumper: '0'
Filter::signatures: '0.04'
JSON: '0'
MIME::Detect: '0'
Test::More: '0'
perl: '5.010'
recommends:
Filter::signatures: '0.10'
MIME::Detect: '0'
Text::CleanFragment: '0'
perl: '5.006'
resources:
license: http://dev.perl.org/licenses/
repository: git://github.com/Corion/HTTP-Upload-FlowJs.git
Expand Down
15 changes: 10 additions & 5 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ my %module = (
file => $main_file,
version => $main_version,
}
}
},
prereqs => {
runtime => {
recommends => {
'Filter::signatures' => '0.10', # For compatibility with Perl < 5.22
'MIME::Detect' => 0, # for user generated content
'Text::CleanFragment' => 0, # we want to create clean local filenames
},
},
},
},
LICENSE => 'perl',
PL_FILES => {},
Expand All @@ -51,13 +60,9 @@ my %module = (
},
PREREQ_PM => {
'Carp' => 0,
'Filter::signatures' => '0.10', # For compatibility with Perl < 5.22
'Test::More' => 0,
'JSON' => 0, # Just for the interface
'Data::Dumper' => 0, # for printing clean values to logfiles

'MIME::Detect' => 0, # for user generated content
'Text::CleanFragment' => 0, # we want to create clean local filenames
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'HTTP-Upload-FlowJs-*' },
Expand Down
1 change: 1 addition & 0 deletions example/plack-server.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ my @parameter_names = (
'flowChunkNumber', # The index of the chunk in the current upload.
# First chunk is 1 (no base-0 counting here).
'flowTotalChunks', # The total number of chunks.
'flowCurrentChunkSize', # Current chunk size
'flowChunkSize', # The general chunk size. Using this value and
# flowTotalSize you can calculate the total number of
# chunks. Please note that the size of the data received in
Expand Down
Loading