summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-25test: respect TMPDIR in mktemp (pass --tmpdir)Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-21Increase version to 2.33 for upcoming releaseHeiko Becker
2022-11-21Fix small typoHeiko Becker
Found by codespell.
2022-11-21Create test runner for ANSI strippingOskari Pirhonen
2022-11-21Add -N/--no-ansiOskari Pirhonen
Strip ANSI codes using app-text/ansifilter Closes: #34
2022-11-21change default service to bpaste from dpasteJohn Turner
dpaste intermittently fails DNSSEC authentication which causes it to be inaccessible for people who have DNSSEC enabled. Other services do not seem to have this issue, and bpaste seems to be a reasonable default.
2021-06-02Increase version to 2.32Heiko Becker
Also for wgetpaste.spec this time ;-).
2021-06-02Increase version to 2.31 for upcoming releaseHeiko Becker
Closes #27.
2021-06-01Improve hard skip formatxxc3nsoredxx
Convert from array to map, service -> reason. Printing the reason as part of the hard skip message makes the output self-documenting.
2021-06-01Add Vim swap file to .gitignorexxc3nsoredxx
2021-06-01Test for expected vs unexpected 401xxc3nsoredxx
AUTH_SKIPS is a list of services for which an HTTP 401 is an expected response if an auth token isn't given. 401 for a service outside of the list means a changed/broken API. Invert the `if ! diff then fail else success` for readability.
2021-06-01Explicitly test DL_DIR/*.txtxxc3nsoredxx
DL_DIR/* tries to diff error logs with the test data if they exist.
2021-06-01Fix typo in test dataxxc3nsoredxx
2021-06-01Create GitHub Actionxxc3nsoredxx
Automatically runs test/test.sh when code is pushed to the repo.
2021-06-01Differentiate between skipsxxc3nsoredxx
Slightly different behavior based on if it's a hard skip, auth skip, or post/download failure skip. HARD_SKIPS array to control which services are always skipped. Add total skips and fail logs to summary.
2021-06-01Quote directory variablesxxc3nsoredxx
2021-06-01Create test scriptxxc3nsoredxx
Posts test/test.txt onto any pastebins it can. Downloads the resulting pate into a temp dir as /tmp/wgetpaste_test.XXXXX/<service>.txt. Runs diff(1) (ignoring trailing whitespace) to compare the download with the test data.
2021-04-22Do not interpret content when posting to dpasteNicholas Vinson
'echo -e' is used to prepare data for dpaste. However if `echo -e "${content}"` is used, the content gets interpreted as well. This results in constructs such as '\0' getting misinterpreted as the byte 0x00. As a result, the interperted context can result in output not compatible with dpaste. fixes bug #25
2021-03-31remove invalid EXPIRATIONS_pinnwand entriesNicholas Vinson
2021-03-31Add missing expiration to pinnwand JSONbcattaneo
2021-03-31Add missing language to pinnwand JSONbcattaneo
2021-03-31Implement bpaste v1 APIbcattaneo
2021-02-26Add missing dpaste escape functionsNicholas Vinson
escape_description_dpaste() and escape_input_dpaste() are missing which causes the default escape function to be used. This results in mangled pastes. Fixes: #22
2021-02-19Add srpunge paste binNicholas Vinson
Service owner states in https://github.com/rupa/sprunge/issues/46 that the size limit for both ix.io and sprunge.us is "roughly a meg". As "meg" appears to mean 1 MiB, the size is set at 1 million bytes (1 MB).
2021-02-19Sort pastebins in alphabetical orderNicholas Vinson
2021-02-19Add 0x0 pastebinNicholas Vinson
2021-02-19Use new dpaste APINicholas Vinson
Updates the code to use the new dpaste API and corrects the max dpaste size limit value.
2021-02-19Add size limit for ix_io.Nicholas Vinson
Service owner states in https://github.com/rupa/sprunge/issues/46 that the size limit for both ix.io and sprunge.us is "roughly a meg". As "meg" appears to mean 1 MiB, the size is set at 1 million bytes (1 MB).
2021-02-19Fix REGEX_RAW_ix_ioNicholas Vinson
As previously implemented REGEX_RAW_ix_io would cause the URL to be printed twice. This change corrects that error.
2020-10-19Add ix.io pastebinNicholas Vinson
2020-10-19Update post handling logicNicholas Vinson
The current post handling logic assumes that either POST_${engine} is defined and is a string, or json_${engine} is defined and is a function. This logic does not work for paste bins such as ix.io. To make the logic more flexible, the string-function hybrid approach has been replaced with a function call chain. The entry-point to this chain is always POST_${engine} NICK DESCRIPTION LANGUAGE EXPIRATION CVT_TABS INPUT and for most services POST_${engine} is defined as: POST_generic <post format string> $1 $2 $3 $4 $5 $6 where POST_generic is the original logic for handling post requests. For JSON post submissions, the coresponding json_${engine} function is renamed to POST_${engine} and the arguments adjusted to match the calling convention mentioned above.
2020-07-31Version 2.30.Rasmus Thomsen
2020-07-31Hardcode 'v4' on the help message's gitlab URLbcattaneo
2020-07-31Fix snippets raw regexbcattaneo
2020-07-31Use a new array for all additional headersbcattaneo
2020-07-31Restore version 2.29bcattaneo
2020-07-31Add missing gitlab URL to help messagebcattaneo
2020-07-31Add support for gitlab snippetsbcattaneo
2020-07-07Fallback location regex confusion fixNicholas Vinson
The fallback location regex can get confused if the input data contains URLs, and the confusion will cause wgetpaste to print the wrong link to the paste. Updated the regex so it finds the last URL that contains the service URL. wgetpaste can still get confused after this commit, but this commit should reduce the likelihood. Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
2020-07-07wgetpaste.spec: Add spec file for building RPMsWulf C. Krueger
2019-07-23Fix handling of bpaste urls.Bo Ørsted Andresen
2019-06-12Version 2.29.Rasmus Thomsen
2019-06-12License under MITRasmus Thomsen
I decided for MIT instead of CC0/The Unlicense since MIT explicitly mentions that this software comes with NO WARRANTY
2019-06-12Remove poundpython, make dpaste the defaultRasmus Thomsen
poundpython is no more :c
2019-06-06Fix raw URLs with dpasteHeiko Becker
2016-07-18Revert "change default service to gists"Bo Ørsted Andresen
This reverts commit cc4f2d5f6318647bc6bd7f163aeb613324afc074.
2016-07-18Don't quote empty parameter.Bo Ørsted Andresen
2016-07-18Always tail.Bo Ørsted Andresen
2016-07-18Merge pull request #4 from nvinson/bpasteBo Ørsted Andresen
Re-add bpaste.net
2016-07-08Re-add poundpythonNicholas Vinson
The poundpython paste service redirects http requests to https. However, the redirect strips the post data. This patch works around that problem by using the https URL directly. The function geturl() is also updated so that it returns at most one URL.