about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-09-09 20:48:48 +0100
committerAlan Pearce2014-09-09 20:48:48 +0100
commit811dd1cb92a7248f16c66659c11ffd78fea3e2f6 (patch)
treef2ec9e2cbd40adc4dab80ac91c5f8f5248a643c7
downloadmicroformats-811dd1cb92a7248f16c66659c11ffd78fea3e2f6.tar.lz
microformats-811dd1cb92a7248f16c66659c11ffd78fea3e2f6.tar.zst
microformats-811dd1cb92a7248f16c66659c11ffd78fea3e2f6.zip
Initial commit.
-rw-r--r--.gitignore9
-rw-r--r--LICENSE21
-rw-r--r--README.md18
-rw-r--r--doc/intro.md3
-rw-r--r--project.clj6
-rw-r--r--src/microformats/core.clj6
-rw-r--r--test/microformats/core_test.clj7
7 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e04714b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+/target
+/classes
+/checkouts
+pom.xml
+pom.xml.asc
+*.jar
+*.class
+/.lein-*
+/.nrepl-port
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..4b7ed2c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Alan Pearce
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7b901ae
--- /dev/null
+++ b/README.md
@@ -0,0 +1,18 @@
+# microformats
+
+A Clojure library designed to parse [microformats](http://microformats.org/wiki/microformats2).
+
+## Feedback
+
+This is my first foray into Clojure, if I've done something
+non-idiomatically please get in touch.
+
+## Usage
+
+FIXME
+
+## License
+
+Copyright © 2014 Alan Pearce
+
+Distributed under the MIT License.
diff --git a/doc/intro.md b/doc/intro.md
new file mode 100644
index 0000000..8a01aeb
--- /dev/null
+++ b/doc/intro.md
@@ -0,0 +1,3 @@
+# Introduction to microformats
+
+TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
diff --git a/project.clj b/project.clj
new file mode 100644
index 0000000..3d3d3f5
--- /dev/null
+++ b/project.clj
@@ -0,0 +1,6 @@
+(defproject microformats "0.1.0-SNAPSHOT"
+  :description "HTML microformats parser"
+  :url "https://github.com/alanpearce/microformats"
+  :license {:name "MIT License"
+            :url "http://opensource.org/licenses/MIT"}
+  :dependencies [[org.clojure/clojure "1.6.0"]])
diff --git a/src/microformats/core.clj b/src/microformats/core.clj
new file mode 100644
index 0000000..512e790
--- /dev/null
+++ b/src/microformats/core.clj
@@ -0,0 +1,6 @@
+(ns microformats.core)
+
+(defn foo
+  "I don't do a whole lot."
+  [x]
+  (println x "Hello, World!"))
diff --git a/test/microformats/core_test.clj b/test/microformats/core_test.clj
new file mode 100644
index 0000000..ff74349
--- /dev/null
+++ b/test/microformats/core_test.clj
@@ -0,0 +1,7 @@
+(ns microformats.core-test
+  (:require [clojure.test :refer :all]
+            [microformats.core :refer :all]))
+
+(deftest a-test
+  (testing "FIXME, I fail."
+    (is (= 0 1))))