emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste 7345c5f 252/298: [providers] Deprecation of ptpb.


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 7345c5f 252/298: [providers] Deprecation of ptpb.pw as a provider
Date: Thu, 9 Dec 2021 19:00:24 -0500 (EST)

branch: elpa/webpaste
commit 7345c5f62d5cff4d84379eaf5dc8b2bb8bc4f99c
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>

    [providers] Deprecation of ptpb.pw as a provider
    
    ptpb.pw has been our default provider since 2017-03-23T21:10:25+01:00,
    this was introduced in the commit 993db7e852410682dc1607ff9021707bf99bf2c0.
    
    But now ptpb.pw has been shut down due to extensive abuse:
    https://github.com/ptpb/pb/issues/245
    https://github.com/ptpb/pb/issues/240
    
    ptpb.pw, you were the best paste service out there and have served
    webpaste.el and many others very well. You will be missed.
    
    So Long, and Thanks for All the Fish.
    
    This fixes #36.
---
 README.org                                   | 14 +++++++-------
 tests/integration/test-webpaste-providers.el |  9 ---------
 webpaste.el                                  | 17 +----------------
 3 files changed, 8 insertions(+), 32 deletions(-)

diff --git a/README.org b/README.org
index eadcdd6..09b75f2 100644
--- a/README.org
+++ b/README.org
@@ -49,11 +49,11 @@ Examples:
   ;; Choosing githup gist only
   (setq webpaste-provider-priority '("gist.github.com"))
 
-  ;; Choosing ptpb.pw as first provider and dpaste.de as second
-  (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de"))
+  ;; Choosing ix.io as first provider and dpaste.de as second
+  (setq webpaste-provider-priority '("ix.io" "dpaste.de"))
 
-  ;; Choosing 1) ptpb.pw, 2) dpaste.de, 3) ix.io
-  (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de" "ix.io"))
+  ;; Choosing 1) ix.io, 2) dpaste.de, 3) dpaste.com
+  (setq webpaste-provider-priority '("ix.io" "dpaste.de" "dpaste.com"))
 
   ;; You can always append this list as much as you like, and which providers
   ;; that exists is documented below in the readme.
@@ -67,7 +67,7 @@ This can be added to the =:config= section of use-package:
            ("C-c C-p C-r" . webpaste-paste-region))
     :config
     (progn
-      (setq webpaste-provider-priority '("ptpb.pw" "dpaste.de"))))
+      (setq webpaste-provider-priority '("ix.io" "dpaste.de"))))
 #+END_SRC
 
 ** Only paste plaintext pastes
@@ -173,8 +173,7 @@ webpaste first and then just read the documentation by 
running this:
   (describe-function 'webpaste--provider)
 #+end_src
 
-* TODO Providers to implement [6/10]
- - [X] ptpb.pw
+* TODO Providers to implement [5/10]
  - [X] ix.io
  - [X] dpaste.com
  - [X] dpaste.de
@@ -183,4 +182,5 @@ webpaste first and then just read the documentation by 
running this:
  - [ ] paste.debian.net
  - [ ] bpaste.net
  - [ ] eval.in
+ - [ ] ptpb.pw (RIP due to 
[[https://github.com/ptpb/pb/issues/245][ptpb/pb#245]] & 
[[https://github.com/ptpb/pb/issues/240][ptpb/pb#240]])
  - [ ] sprunge.us (removed due to 
[[https://github.com/rupa/sprunge/issues/45][sprunge#45]] that yields 500s)
diff --git a/tests/integration/test-webpaste-providers.el 
b/tests/integration/test-webpaste-providers.el
index 38d8820..2cebaed 100644
--- a/tests/integration/test-webpaste-providers.el
+++ b/tests/integration/test-webpaste-providers.el
@@ -19,15 +19,6 @@
 
 
  (it
-  "ci: can paste with ptpb.pw"
-
-  (funcall (webpaste--get-provider-by-name "ptpb.pw") paste-message :sync t)
-
-  (expect (spy-calls-count 'webpaste--return-url) :to-equal 1)
-  (expect (spy-calls-count 'webpaste--paste-text) :to-equal 0))
-
-
- (it
   "ci: can paste with ix.io"
 
   (funcall (webpaste--get-provider-by-name "ix.io") paste-message :sync t)
diff --git a/webpaste.el b/webpaste.el
index 2977c10..375ca2e 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -87,22 +87,7 @@ This uses `browse-url-generic' to open URLs."
 
 
 (defcustom webpaste-providers-alist
-  '(("ptpb.pw"
-     :uri "https://ptpb.pw/";
-     :post-field "c"
-     :lang-uri-separator "/"
-     :lang-overrides ((emacs-lisp-mode . "elisp")
-                      (nix-mode . "nix")
-                      (conf-toml-mode . "toml")
-                      (bash-mode . "bash")
-                      (sh-mode . "sh")
-                      (csh-mode . "csh")
-                      (tcsh-mode . "tcsh")
-                      (python3-mode . "python3")
-                      (nim-mode . "nim"))
-     :success-lambda webpaste--providers-success-location-header)
-
-    ("ix.io"
+  '(("ix.io"
      :uri "http://ix.io/";
      :post-field "f:1"
      :lang-uri-separator "/"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]