Due to the specifial handling for syntax, some providers would have an
extra POST parameter, which then caused some providers to reject the
paste upload completely.
This change makes it so that if a provider doesn't specify special
language rules, don't try to add a syntax POST parameter.
Squashed commit of the following:
commit a30392580e74d209025b17477387de3be2eab5ad
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 15:13:43 2017 +0200
Added test for appending of language on return
commit bc79bb4df16a16864810fdf67c4ee8b447b47722
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 14:24:02 2017 +0200
Added test for failover testing
commit ba7210503165d1a6bda30f6d1cdb3a437d8c8801
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 13:57:05 2017 +0200
Added test for triggering success lambda
commit 85acab8052a73b7c723f86b4d3ab40072c1c232e
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 13:50:12 2017 +0200
Added test to trigger error lambda for a provider
commit da272a6d3831651a9d0efc24449353541b209146
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 12:13:41 2017 +0200
Check if it can open a browser
commit 46da19799de01ae6838e17d54c114b4b33b9552f
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Sat May 20 11:55:11 2017 +0200
Fix test for webaste-paste-text-to-provider
commit 984caed0a69043aa66e5fa5f20fa28d40891e38a
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Thu May 18 21:43:52 2017 +0200
Added first test for returning of links to the user
commit 32bd218f49586a536c9f80d9fa674ec09cb9add7
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Thu May 18 17:19:50 2017 +0200
Disable test because it fails all the time on travis
commit 4fb1521f847810e614d66bb69a95551b23fcb1ca
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 17 18:55:42 2017 +0200
Added buttercup test for calling of the provider lambda
commit c850899b27c4eade94e7afa44cd9b28c49c6b558
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 17 18:22:55 2017 +0200
Added buttercup test for pasting of regions and buffers
commit b09c6c8f1944b956df6d3e7ca9f92bbc04937b28
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Tue May 16 23:50:12 2017 +0200
Added test to test failover of pasting text to any provider
commit 1bfe835a15170840f5044ab84f108d0a2e0ac928
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Tue May 16 22:25:22 2017 +0200
Added buttercup tests for webpaste/get-provider-priority
commit 0703e8a0ea4787e5fdc143bf1ce59464d93837e0
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Tue May 16 21:09:23 2017 +0200
Setup of buttercup, cask and undercover and placeholder file for tests
These shouldn't really be set easily. You can always do by reading the
code and just make changes. But for someone happily browsing around in
customize it's a bad idea to change these...
This is because we want to have access to overrides of langs for
providers that requires that we append this data after the request has
happened. So it was easier to just precalculate them for all the
providers so we don't need special handling more than neccesary.
Just append stuff, it doesn't matter anyways since you always read
from the beginning anyways and overrides, removal and addition works
the same like this anyways.
This only works for providers that posts this info when creating the
paste. Currently 3/6 providers does this. The rest of them just
transforms the URL on return which is slightly different and will be
solved later.
This refs #7.
Squashed commit of the following:
commit 612c2c4a0d9278d1ed3c7d794dca29acfa91e647
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 16:24:41 2017 +0200
Enable gist.github.com paste code highlighting by sending filename
commit f7fc4366b8a514247eaf9a6568da0632f2ee4c93
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 16:09:58 2017 +0200
Repair github by allowing other keys so it doesn't break again
commit 16cf85a74f94f5c2ab059d99dab835de643221d1
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 16:02:17 2017 +0200
Set clojure for emacs-lisp-mode for dpaste.com and dpaste.de
commit 442187a27fe32be028483367ca70aee797698148
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 15:55:59 2017 +0200
Added option lang-overrides to webpaste-provider to enable overiding of language mappings
commit 2691c6690e7a4ed5bddb1fa4c27e09aea9b61887
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 15:39:18 2017 +0200
Added ert-test for the lang-alist overrides
commit a9b651024f9360793406f51572a5732b912bb4f8
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 14:55:46 2017 +0200
Added function to apply an override list to the default list and return it
commit e282bbb8a72ea580a8d72c67873ca0b44b7c789c
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 12:58:27 2017 +0200
Added language field to dpaste.com and dpaste.de
commit e8671743d2ee6afc8ae9a42b64d1a9bdea800d67
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 12:14:15 2017 +0200
Logic to add fields to add language to post data
commit 71cab8124b596d7e8e36ac71399cd64e16f48d42
Author: Elis Axelsson <elis.axelsson@gmail.com>
Date: Wed May 3 09:18:29 2017 +0200
Added a small first list of mode to language mappings.
Moved error-lambda out, there's currently two predefined ones. One
that does allow failover and one that doesn't. This also kills the
newly introduced no-failover key. But it's for the better anyways.
This will make it much easier to actually do proper testing of
different cases in the code that simply wasn't possible before.
Also added a test of running the success lambda.