[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 44364f4 109/298: Rename parameter domain to uri f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 44364f4 109/298: Rename parameter domain to uri for webpaste-provider |
Date: |
Thu, 9 Dec 2021 18:59:54 -0500 (EST) |
branch: elpa/webpaste
commit 44364f4f03abb40ca44fce55a9a6fac91a67e951
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Rename parameter domain to uri for webpaste-provider
This name makes more sense since it's not a domain name put in, it's
acually an URI to the endpoint where we're pasting.
---
webpaste.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 807a07d..b2a4aff 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -61,7 +61,7 @@ each run.")
-(cl-defun webpaste-provider (&key domain
+(cl-defun webpaste-provider (&key uri
(type "POST")
(parser 'buffer-string)
(post-data '())
@@ -70,14 +70,14 @@ each run.")
success)
"Macro to create the lambda function for a provider.
-This macro accepts the parameters :domain, :type, :parser, :post-data,
-:post-field and :success.
+This macro accepts the parameters :uri, :type, :parser, :post-data, :post-field
+and :success.
Usage:
(webpaste-provider
[:keyword [option]]...)
-:domain URL that we should do the request to to paste data.
+:uri URI that we should do the request to to paste data.
:type HTTP Request type, defaults to POST.
:parser Defines how request.el parses the result. Look up :parser for
`request`. This defaults to 'buffer-string.
@@ -93,7 +93,7 @@ Usage:
(cl-pushnew (cons post-field text) post-data)
;; Do request
- (request domain
+ (request uri
:type type
:data post-data
:parser parser
@@ -111,7 +111,7 @@ Usage:
(defcustom webpaste-providers-alist
(list (list "ptpb.pw"
(webpaste-provider
- :domain "https://ptpb.pw/";
+ :uri "https://ptpb.pw/";
:post-field "c"
:success
(cl-function (lambda (&key response &allow-other-keys)
@@ -120,7 +120,7 @@ Usage:
(list "ix.io"
(webpaste-provider
- :domain "http://ix.io/";
+ :uri "http://ix.io/";
:post-field "f:1"
:success
(cl-function (lambda (&key data &allow-other-keys)
@@ -130,7 +130,7 @@ Usage:
(list "sprunge.us"
(webpaste-provider
- :domain "http://sprunge.us/";
+ :uri "http://sprunge.us/";
:post-field "sprunge"
:success
(cl-function (lambda (&key data &allow-other-keys)
@@ -140,7 +140,7 @@ Usage:
(list "dpaste.com"
(webpaste-provider
- :domain "http://dpaste.com/api/v2/";
+ :uri "http://dpaste.com/api/v2/";
:post-data '(("syntax" . "text")
("title" . "")
("poster" . "")
@@ -153,7 +153,7 @@ Usage:
(list "dpaste.de"
(webpaste-provider
- :domain "https://dpaste.de/api/";
+ :uri "https://dpaste.de/api/";
:post-data '(("lexer" . "text")
("format" . "url")
("expires" . 86400))
- [nongnu] elpa/webpaste ec85d7d 092/298: Added unit test for static provider configuration, (continued)
- [nongnu] elpa/webpaste ec85d7d 092/298: Added unit test for static provider configuration, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2c5eb3c 149/298: Fix broken build., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f161620 163/298: Refactored the success callbacks, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste dab97dd 130/298: Make post-fields-lambda take named parameters, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f83fd7b 145/298: Added note about new provider to implement. This refs #7, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 62e0f33 165/298: Refactor default post field lambda, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6e116ea 166/298: Merge branch 'refactor-away-defvars', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1677cd2 171/298: Added stuff to Makefile to run integration tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 51a6a07 174/298: Fixed broken message format, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6086556 180/298: Added integration tests for dpaste.com, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 44364f4 109/298: Rename parameter domain to uri for webpaste-provider,
ELPA Syncer <=
- [nongnu] elpa/webpaste 1a1144f 110/298: Exposed sync parameter of request for debugging/test purposes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d9529de 112/298: Replaced (if (eq VAR nil)) with (unless VAR), ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1bfa9ec 120/298: Bump version for stable release and copyright year, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6ea53d0 123/298: Added support for custom handler of how to build the post data for providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste aff4e42 124/298: The error-lambda now has a default value and is now optional, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2dc2206 126/298: Added github anonymous gists as provider. This fixes #8., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b3bcde1 128/298: Updated some docs that was missed before release..., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0fa48e2 129/298: Switch github pastes to not be public. This fixes #9., ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4e58b0a 131/298: Fix bug in link returned from dpaste.de, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b35b30d 134/298: Added documentation for how to configure provider priority, ELPA Syncer, 2021/12/09