Skip to content

Commit b8975f5

Browse files
committed
Refactor to com.p14n
1 parent 5fce22c commit b8975f5

9 files changed

Lines changed: 27 additions & 27 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vertx-ring
22

3-
A Ring adapter for Eclipse Vert.x, providing a bridge between Clojure's Ring specification and Vert.x's reactive HTTP server.
3+
A Ring adapter for Eclipse Vert.x 5, providing a bridge between Clojure's Ring specification and Vert.x's reactive HTTP server.
44

55
## Overview
66

@@ -35,7 +35,7 @@ This adapter implements the [Ring SPEC](https://github.com/ring-clojure/ring/blo
3535

3636
#### Async (default)
3737
```clojure
38-
(require '[vertx-ring.adapter :as adapter])
38+
(require '[com.p14n.vertx-ring.adapter :as adapter])
3939

4040
(defn handler [request respond raise]
4141
(respond {:status 200
@@ -47,7 +47,7 @@ This adapter implements the [Ring SPEC](https://github.com/ring-clojure/ring/blo
4747

4848
#### Sync (requires java.util.concurrent.ExecutorService)
4949
```clojure
50-
(require '[vertx-ring.adapter :as adapter])
50+
(require '[com.p14n.vertx-ring.adapter :as adapter])
5151
(import '[java.util.concurrent Executors])
5252

5353
(defn handler [request]
@@ -64,8 +64,8 @@ This adapter implements the [Ring SPEC](https://github.com/ring-clojure/ring/blo
6464
For more control over Vert.x behavior, you can use the options helpers:
6565

6666
```clojure
67-
(require '[vertx-ring.adapter :as adapter]
68-
'[vertx-ring.options :as options])
67+
(require '[com.p14n.vertx-ring.adapter :as adapter]
68+
'[com.p14n.vertx-ring.options :as options])
6969

7070
(defn handler [request respond raise]
7171
(respond {:status 200

dev/user.clj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
(ns user
22
"Development namespace for REPL-driven development"
33
(:require [clojure.tools.namespace.repl :as repl]
4-
[vertx-ring.adapter :as adapter]))
4+
[com.p14n.vertx-ring.adapter :as adapter]))
55

66
(def system nil)
77

88
(defn hello-handler
99
"Simple Ring handler for testing"
10-
[request]
11-
{:status 200
12-
:headers {"Content-Type" "text/plain"}
13-
:body (str "Hello from Vert.x Ring!\n"
14-
"Method: " (:request-method request) "\n"
15-
"URI: " (:uri request) "\n"
16-
"Query: " (:query-string request) "\n")})
10+
[request respond _]
11+
(respond {:status 200
12+
:headers {"Content-Type" "text/plain"}
13+
:body (str "Hello from Vert.x Ring!\n"
14+
"Method: " (:request-method request) "\n"
15+
"URI: " (:uri request) "\n"
16+
"Query: " (:query-string request) "\n")}))
1717

1818
(defn start
1919
"Start the development server"
@@ -41,12 +41,12 @@
4141
(comment
4242
;; Start the server
4343
(start)
44-
44+
4545
;; Test with curl:
4646
;; curl http://localhost:8080/test?foo=bar
47-
47+
4848
;; Stop the server
4949
(stop)
50-
50+
5151
;; Restart after code changes
5252
(restart))

examples/simple_server.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(ns simple-server
22
"Simple example of using vertx-ring adapter"
3-
(:require [vertx-ring.adapter :as adapter]))
3+
(:require [com.p14n.vertx-ring.adapter :as adapter]))
44

55
(defn hello-handler
66
"A simple Ring handler that returns a greeting"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns vertx-ring.adapter
1+
(ns com.p14n.vertx-ring.adapter
22
"Ring adapter for Eclipse Vert.x"
33
(:require
44
[clojure.java.io :as io]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns vertx-ring.options
1+
(ns com.p14n.vertx-ring.options
22
(:import [io.vertx.core VertxOptions]
33
[io.vertx.core.http HttpServerOptions]))
44

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
(ns vertx-ring.adapter-test
1+
(ns com.p14n.vertx-ring.adapter-test
22
(:require
33
[babashka.http-client :as http]
44
[clojure.test :refer :all]
5-
[vertx-ring.adapter :as adapter])
5+
[com.p14n.vertx-ring.adapter :as adapter])
66
(:import
77
[java.util.concurrent Executors]))
88

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
(ns vertx-ring.mapping-test
1+
(ns com.p14n.vertx-ring.mapping-test
22
(:require
33
[clojure.test :refer :all]
4-
[vertx-ring.adapter :as adapter]
5-
[vertx-ring.test-helpers :as helpers])
4+
[com.p14n.vertx-ring.adapter :as adapter]
5+
[com.p14n.vertx-ring.test-helpers :as helpers])
66
(:import
77
[java.io ByteArrayInputStream]))
88

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
(ns vertx-ring.options-test
1+
(ns com.p14n.vertx-ring.options-test
22
(:require
33
[clojure.test :refer :all]
4-
[vertx-ring.options :as helpers])
4+
[com.p14n.vertx-ring.options :as helpers])
55
(:import
66
[io.vertx.core VertxOptions]
77
[io.vertx.core.http HttpServerOptions]))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(ns vertx-ring.test-helpers
1+
(ns com.p14n.vertx-ring.test-helpers
22
(:import [io.vertx.core.http Cookie HttpMethod HttpServerRequest HttpServerResponse HttpVersion]
33
[io.vertx.core.net SocketAddress]
44
[io.vertx.core Future MultiMap]

0 commit comments

Comments
 (0)