Skip to content

Commit 5b4b1a2

Browse files
committed
rename to cl-elastic
1 parent 774f932 commit 5b4b1a2

File tree

6 files changed

+35
-35
lines changed

6 files changed

+35
-35
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Cl-Elasticsearch - Elasticsearch client for Common Lisp
1+
# Cl-Elastic - Elasticsearch client for Common Lisp
22

33
### Motivation
44

@@ -17,8 +17,8 @@ local quicklisp repos.
1717
### Usage
1818

1919
```cl
20-
(ql:quicklisp :cl-elasticsearch)
21-
(use :cl-elasticsearch)
20+
(ql:quicklisp :cl-elastic)
21+
(use :cl-elastic)
2222
2323
(defvar *client* (make-instance '<client> :endpoint "http://localhost:9200"))
2424

cl-elastic-test.asd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#|
2+
This file is a part of cl-elastic.
3+
(c) 2019 Finn Völkel
4+
Author: Finn Völkel ([email protected])
5+
|#
6+
7+
(asdf:defsystem cl-elastic-test
8+
:name "cl-elastic-test"
9+
:version "1.0.0"
10+
:author "Finn Völkel ([email protected])"
11+
:license ""
12+
:description "Test system for cl-elastic"
13+
:depends-on (:cl-elastic
14+
:named-readtables
15+
:parachute)
16+
:components ((:file "cl-elastic-test"))
17+
:perform (asdf:test-op (op c) (uiop:symbol-call :parachute :test
18+
:cl-elastic-test)))

cl-elasticsearch-test.lisp renamed to cl-elastic-test.lisp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
(defpackage cl-elasticsearch-test
1+
(defpackage cl-elastic-test
22
(:use :cl
3-
:cl-elasticsearch
3+
:cl-elastic
44
:parachute)
55
(:import-from :named-readtables
66
:in-readtable)
77
(:shadow #:run)
8-
(:export cl-elasticsearch-test))
9-
(in-package :cl-elasticsearch-test)
8+
(:export cl-elastic-test))
9+
(in-package :cl-elastic-test)
1010

11-
;; NOTE: To run this test file, execute `(asdf:test-system :cl-elasticsearch)' in your Lisp.
11+
;; NOTE: To run this test file, execute `(asdf:test-system :cl-elastic)' in your Lisp.
1212

1313
(in-readtable hashtable-syntax)
1414

1515
(define-test enable-keywords-test
1616
(let* ((*enable-keywords* t)
17-
(res (cl-elasticsearch::keywords-to-strings #{:settings #{:foo "bar"}})))
17+
(res (cl-elastic::keywords-to-strings #{:settings #{:foo "bar"}})))
1818
(true (nth-value 1 (gethash "settings" res)))
1919
(true (nth-value 1 (gethash "foo" (gethash "settings" res))))
2020
(is equal "bar" (gethash "foo" (gethash "settings" res)))))
@@ -112,7 +112,7 @@
112112

113113
(define-test encode-json-test
114114
(let* ((*enable-keywords* t)
115-
(res (cl-elasticsearch::encode-json (list #{:foo 1} #{:bar 2}))))
115+
(res (cl-elastic::encode-json (list #{:foo 1} #{:bar 2}))))
116116
(is equal (format nil "{\"foo\":1}~%{\"bar\":2}~%") res)))
117117

118118
(define-test bulk-indexing-test
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#|
2-
This file is a part of cl-elasticsearch.
2+
This file is a part of cl-elastic.
33
(c) 2019 Finn Völkel
44
Author: Finn Völkel ([email protected])
55
|#
66

7-
(asdf:defsystem cl-elasticsearch
7+
(asdf:defsystem cl-elastic
88
:version "0.0.1"
99
:author "Finn Völkel"
1010
:license "MIT"
1111
:serial t
1212
:depends-on (:drakma
1313
:named-readtables
1414
:yason)
15-
:components ((:file "cl-elasticsearch"))
15+
:components ((:file "cl-elastic"))
1616
:description "Elasticsearch client for Common Lisp"
17-
:in-order-to ((test-op (test-op "cl-elasticsearch-test"))))
17+
:in-order-to ((test-op (test-op "cl-elastic-test"))))

cl-elasticsearch.lisp renamed to cl-elastic.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#|
2-
This file is a part of cl-elasticsearch.
2+
This file is a part of cl-elastic.
33
(c) 2019 Finn Völkel
44
Author: Finn Völkel ([email protected])
55
|#
66

7-
(defpackage cl-elasticsearch
7+
(defpackage cl-elastic
88
(:use :cl)
99
(:nicknames :elastic)
1010
(:import-from :drakma
@@ -26,7 +26,7 @@
2626
:disable-hashtable-syntax
2727
:hashtable-syntax))
2828

29-
(in-package :cl-elasticsearch)
29+
(in-package :cl-elastic)
3030

3131
(defvar *enable-keywords* nil
3232
"If set to a true value, keywords will be transformed to strings in JSON

cl-elasticsearch-test.asd

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)