[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rt-liberation 965be87 05/68: fix broken dependencies
From: |
Yoni Rabkin |
Subject: |
[elpa] externals/rt-liberation 965be87 05/68: fix broken dependencies |
Date: |
Wed, 16 Dec 2020 12:11:04 -0500 (EST) |
branch: externals/rt-liberation
commit 965be87719ab40ef57e8f37fda85c5851bd92e6f
Author: Yoni Rabkin <yoni@rabkins.net>
Commit: Yoni Rabkin <yoni@rabkins.net>
fix broken dependencies
---
rt-liberation-rest.el | 38 --------------------------------------
rt-liberation.el | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 38 deletions(-)
diff --git a/rt-liberation-rest.el b/rt-liberation-rest.el
index 9b18974..0b52211 100644
--- a/rt-liberation-rest.el
+++ b/rt-liberation-rest.el
@@ -175,24 +175,6 @@
(re-search-forward rt-ok-regexp (point-max)))
(error "bad HTTP response from server"))))
-(defun rt-liber-rest-ticketsql-runner-parser-f ()
- "Parser function for a textual list of tickets."
- (let (idsub-list)
- (rt-liber-rest-parse-http-header)
- (while (re-search-forward "ticket/\\([0-9].+\\)" (point-max) t)
- ;; the output should be compatible with the input to
- ;; `rt-liber-create-tickets-string'
- (push (list (match-string-no-properties 1)
- ".")
- idsub-list))
- idsub-list))
-
-(defun rt-liber-rest-run-ls-query (query)
- "Run an \"ls\" type query against the server with QUERY."
- (rt-liber-parse-answer
- (rt-liber-rest-query-runner "ls" query)
- 'rt-liber-rest-ticketsql-runner-parser-f))
-
(defun rt-liber-rest-show-process (response)
"Process and return the show query response."
(when (not (stringp response))
@@ -227,20 +209,6 @@
(message "done retrieving %d tickets" l)))
(buffer-substring (point-min) (point-max))))
-(defun rt-liber-rest-run-show-base-query (idsublist)
- "Run \"show\" type query against the server with IDSUBLIST."
- (rt-liber-parse-answer
- (rt-liber-rest-show-query-runner idsublist)
- #'rt-liber-ticket-base-retriever-parser-f))
-
-(defun rt-liber-rest-run-ticket-history-base-query (ticket-id)
- "Run history query against server for TICKET-ID."
- (rt-liber-parse-answer
- (rt-liber-rest-query-runner "history" ticket-id)
- #'(lambda ()
- (rt-liber-rest-parse-http-header)
- (buffer-substring (point) (point-max)))))
-
(defun rt-liber-rest-handle-response (buffer)
"Handle the response provided in BUFFER."
(with-current-buffer rt-liber-rest-response-buffer
@@ -269,12 +237,6 @@
(rt-liber-rest-handle-response rt-liber-rest-response-buffer)))
(message "edit command ended at %s" (current-time-string)))
-(defun rt-liber-rest-command-set (id field status)
- "Set ticket ID status to be STATUS."
- (rt-liber-parse-answer
- (rt-liber-rest-edit-runner id field status)
- 'rt-liber-command-runner-parser-f))
-
(provide 'rt-liberation-rest)
diff --git a/rt-liberation.el b/rt-liberation.el
index aa48cea..ddd6900 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -396,6 +396,42 @@ AFTER date after predicate."
continue t))
ticketbase-list))
+(defun rt-liber-rest-ticketsql-runner-parser-f ()
+ "Parser function for a textual list of tickets."
+ (let (idsub-list)
+ (rt-liber-rest-parse-http-header)
+ (while (re-search-forward "ticket/\\([0-9].+\\)" (point-max) t)
+ (push (list (match-string-no-properties 1)
+ ".")
+ idsub-list))
+ idsub-list))
+
+(defun rt-liber-rest-run-ls-query (query)
+ "Run an \"ls\" type query against the server with QUERY."
+ (rt-liber-parse-answer
+ (rt-liber-rest-query-runner "ls" query)
+ 'rt-liber-rest-ticketsql-runner-parser-f))
+
+(defun rt-liber-rest-run-show-base-query (idsublist)
+ "Run \"show\" type query against the server with IDSUBLIST."
+ (rt-liber-parse-answer
+ (rt-liber-rest-show-query-runner idsublist)
+ #'rt-liber-ticket-base-retriever-parser-f))
+
+(defun rt-liber-rest-run-ticket-history-base-query (ticket-id)
+ "Run history query against server for TICKET-ID."
+ (rt-liber-parse-answer
+ (rt-liber-rest-query-runner "history" ticket-id)
+ #'(lambda ()
+ (rt-liber-rest-parse-http-header)
+ (buffer-substring (point) (point-max)))))
+
+(defun rt-liber-rest-command-set (id field status)
+ "Set ticket ID status to be STATUS."
+ (rt-liber-parse-answer
+ (rt-liber-rest-edit-runner id field status)
+ 'rt-liber-command-runner-parser-f))
+
;;; --------------------------------------------------------
;;; Ticket utilities
- [elpa] externals/rt-liberation updated (6b062b7 -> f682e7b), Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 61dda6f 06/68: * rt-liberation.el: remove unused code, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 965be87 05/68: fix broken dependencies,
Yoni Rabkin <=
- [elpa] externals/rt-liberation 203ec6a 08/68: * rt-liberation-gnus.el: avoid compiler warning, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 291a8e3 20/68: move to other machine, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation f7a290c 15/68: * doc/developer-release.txt: new file, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 5648253 17/68: fix info listing problem, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 237b11d 30/68: * rt-liberation-viewer.el: reorganize, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 84ce235 10/68: Syncronize with Stefan's changes, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 2e9b1f3 01/68: * rt-liberation.el: remove old cli code, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 133559f 18/68: * dir: fix info listing issues take 2, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 700d45e 21/68: * doc/developer-release.txt: update documentation, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 4e4cb06 14/68: add manual to ELPA, Yoni Rabkin, 2020/12/16