Skip to content

Commit b3180df

Browse files
committed
Initial commit
0 parents  commit b3180df

File tree

7 files changed

+106
-0
lines changed

7 files changed

+106
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v3
9+
10+
- name: Prepare java
11+
uses: actions/setup-java@v3
12+
with:
13+
distribution: 'zulu'
14+
java-version: '8'
15+
16+
- name: Install clojure tools
17+
uses: DeLaGuardo/[email protected]
18+
with:
19+
lein: 2.9.10
20+
21+
- name: Cache clojure dependencies
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/.m2/repository
25+
key: cljdeps-${{ hashFiles('project.clj') }}
26+
restore-keys: cljdeps-
27+
28+
- name: Run tests
29+
run: lein test

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/target
2+
/classes
3+
/checkouts
4+
profiles.clj
5+
pom.xml
6+
pom.xml.asc
7+
*.jar
8+
*.class
9+
/.lein-*
10+
/.nrepl-port
11+
/.prepl-port
12+
.hgignore
13+
.hg/
14+
/.clj-kondo

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2023 James Reeves
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Ring-Websocket-Middleware [![Build Status](https://github.com/ring-clojure/ring-websocket-middleware/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/ring-clojure/ring-websocket-middleware/actions/workflows/test.yml)
2+
3+
A Clojure library that has extra [Ring][] middleware for managing
4+
WebSockets. Some or all of this functionality may eventually make its
5+
way into Ring-Core.
6+
7+
[ring]: https://github.com/ring-clojure/ring
8+
9+
## Installation
10+
11+
Add the following dependency to your deps.edn file:
12+
13+
org.ring-clojure/ring-websocket-middleware {:mvn/version "0.1.0-SNAPSHOT"}
14+
15+
Or to your Leiningen project file:
16+
17+
[org.ring-clojure/ring-websocket-middleware "0.1.0-SNAPSHOT"]
18+
19+
## Usage
20+
21+
TODO
22+
23+
## License
24+
25+
Copyright © 2024 James Reeves
26+
27+
Released under the MIT license.

project.clj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(defproject org.ring-clojure/ring-websocket-middleware "0.1.0-SNAPSHOT"
2+
:description "Library with additional middleware for Ring websockets"
3+
:url "https://github.com/ring-clojure/ring-websocket-middleware"
4+
:license {:name "The MIT License"
5+
:url "http://opensource.org/licenses/MIT"}
6+
:dependencies [[org.clojure/clojure "1.9.0"]
7+
[ring/ring-core "1.12.1"]])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(ns ring.middleware.websocket-keepalive)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(ns ring.middleware.websocket-keepalive-test
2+
(:require [clojure.test :refer [deftest is]]
3+
[ring.middleware.websocket-keepalive :as keepalive]))
4+
5+
(deftest a-test
6+
(is (= 0 1)))

0 commit comments

Comments
 (0)