Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ivkosh committed Feb 23, 2011
2 parents f9ffd4f + fca0b97 commit 6155b4a
Show file tree
Hide file tree
Showing 13 changed files with 910 additions and 2,337 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,6 @@ ebin/*
.settings/*
.project*
TODO
doc/*
.eunit/*
deps/*
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions Makefile
@@ -0,0 +1,13 @@
REBAR=./rebar

all:
@$(REBAR) get-deps compile

test:
@rm -rf .eunit
@mkdir -p .eunit
@$(REBAR) skip_deps=true eunit

clean:
@$(REBAR) clean

17 changes: 14 additions & 3 deletions README.md
@@ -1,8 +1,19 @@
rdbl.erl - Erlang readability library
-------------------------------------
=====================================

This is Erlang library to extract reasonable content and remove junk from html pages.
Based on ideas from readability.js by arc90.
Inspired by readability.js from arc90.

Source is primary hosted at [github.com/ivkosh](https://github.com/ivkosh/rdbl).
My [Readabilizer service](http://evl.me/) is using this library to extract content from web pages.

Licensing and author
--------------------

This library is distributed under the GNU General Public License version 3 and is also available
under alternative licenses negotiated directly with rdbl author Ivan Koshkin <ivan@koshkin.me>.

The GPL (version 3) is included in this source tree in the file COPYING.

Installation
------------
Expand All @@ -24,4 +35,4 @@ See other examples in rdbl.erl.
Dependencies
------------
Library uses [mochiweb](https://github.com/mochi/mochiweb) html library to parse HTML-content (included).

Only following files from mochiweb are needed: mochinum.erl, mochiutf8.erl, mochiweb_charref.erl, mochiweb_html.erl.
Binary file added rebar
Binary file not shown.
7 changes: 7 additions & 0 deletions rebar.config
@@ -0,0 +1,7 @@
%% -*- erlang -*-
{erl_opts, [debug_info]}.
{deps, [
{mochiweb, ".*",
{git, "git://github.com/mochi/mochiweb.git", "master"}}]}.
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
1 change: 1 addition & 0 deletions runme.sh
@@ -0,0 +1 @@
exec erl -pa ebin deps/*/ebin

0 comments on commit 6155b4a

Please sign in to comment.