Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some slightly errors in README and namespaces updated in core, al… #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ The following REPL session should give an idea about the capabilities and usage

Load the package into your namespace:

user=> (ns user (:use feedparser-clj.core) (:require [clojure.contrib.string :as string]))
user=> (ns user (:use feedparser-clj.core) (:require [clojure.string :as string]))

Retrieve and parse a feed:

user=> (def f (parse-feed "http://gregheartsfield.com/atom.xml"))
user=> (def f (parse-feed "https://gregheartsfield.com/atom.xml"))

`parse-feed` also accepts a java.io.InputStream for reading from a file or other sources (see [clojure.java.io/input-stream](http://richhickey.github.com/clojure/clojure.java.io-api.html#clojure.java.io/input-stream)):

Expand Down Expand Up @@ -117,4 +117,4 @@ Distributed under the BSD-3 License.
Copyright
---------

Copyright (C) 2010 Greg Heartsfield
Copyright (C) 2010 Greg Heartsfield
6 changes: 3 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(defproject org.clojars.scsibug/feedparser-clj "0.5.0"
:description "Parse RSS/Atom feeds with a simple, clojure-friendly API."
:dependencies [[org.clojure/clojure "1.6.0"]
[org.jdom/jdom "2.0.2"]
[net.java.dev.rome/rome "1.0.0"]]
:dependencies [[org.clojure/clojure "1.8.0"]
[org.jdom/jdom2 "2.0.5"]
[com.rometools/rome "1.6.0"]]
:main feedparser-clj.core)
4 changes: 2 additions & 2 deletions src/feedparser_clj/core.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns feedparser-clj.core
(:import (com.sun.syndication.io SyndFeedInput XmlReader)
(:import (com.rometools.rome.io SyndFeedInput XmlReader)
(java.net URL)
(java.io InputStreamReader)
(com.sun.syndication.feed.synd SyndFeed))
(com.rometools.rome.feed.synd SyndFeed))
(:gen-class))


Expand Down