public
Fork of rubys/mars
Description: Yet Another Planet Refactoring
Homepage: http://intertwingly.net/blog/2007/12/19/Yet-Another-Planet-Refactoring
Clone URL: git://github.com/technomancy/mars.git
rearrange files to follow gem conventions
technomancy (author)
Wed Jun 25 15:52:35 -0700 2008
commit  1cf0fac786bbaba6e7362dce624943a161fc054b
tree    d3471351f5624f54731d5047cf450d75ab051689
parent  41bfc6f06cfe0c6dc83a5ed719f9f6e0ed0205c0
0
...
1
 
2
3
 
4
5
 
6
7
8
 
 
 
9
10
11
 
 
12
13
14
 
15
16
17
18
 
19
20
21
 
22
23
24
 
25
26
27
 
28
29
30
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
33
34
35
...
 
1
2
 
3
4
 
5
6
 
 
7
8
9
10
 
 
11
12
13
 
 
14
15
 
 
 
16
17
 
 
18
19
 
 
20
21
 
 
22
23
 
 
 
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
 
 
0
@@ -1,35 +1,44 @@
0
-To verify that you have the necessary prereqs installed, execute:
0
+= Mars
0
 
0
- rake prereqs
0
+Mars is a feed aggregator!
0
 
0
-Information on the various requirements:
0
+== Installation
0
 
0
- Addressable:
0
- gem install addressable
0
+Most of the prerequisites will be handled by Rubygems. Unfortunately
0
+the latest html5lib package contains a bug that's only fixed in 0.10.1
0
+(currently only in SVN trunk).
0
 
0
- For best resuts, also install idn:
0
- gem install idn
0
+ $ svn checkout http://html5lib.googlecode.com/svn/trunk/ html5lib
0
+ $ cd html5lib/ruby && rake install_gem
0
 
0
- To make sure that gems are searched:
0
- export RUBYOPT="-rubygems"
0
+== Usage
0
 
0
- Html5:
0
- There was a bug fixed on 2007-12-09 that Mars depends on. For best
0
- results, check out the latest:
0
+ $ planet $CONFIG_FILE
0
 
0
- svn checkout http://html5lib.googlecode.com/svn/trunk/ html5lib
0
- export RUBYLIB="/path/html5lib/ruby/lib"
0
+Currently only INI files are supported for configuration.
0
 
0
- XmlParser:
0
- Mars needs a *working* XML parser (REXML version 3.1.6 won't do).
0
+== License
0
 
0
- To determine the version of REXML you have installed:
0
- ruby -rrexml/document -e 'p REXML::VERSION'
0
+(The MIT License)
0
 
0
- For best results (speed, spec compliance), install one of
0
- http://www.yoshidam.net/xmlparser_en.txt
0
- http://libxml.rubyforge.org/
0
+Copyright (c) Sam Ruby and contributors
0
+
0
+Permission is hereby granted, free of charge, to any person obtaining
0
+a copy of this software and associated documentation files (the
0
+"Software"), to deal in the Software without restriction, including
0
+without limitation the rights to use, copy, modify, merge, publish,
0
+distribute, sublicense, and/or sell copies of the Software, and to
0
+permit persons to whom the Software is furnished to do so, subject to
0
+the following conditions:
0
+
0
+The above copyright notice and this permission notice shall be
0
+included in all copies or substantial portions of the Software.
0
+
0
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
0
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0
 
0
- The latest REXML can be obtained by
0
- svn co http://www.germane-software.com/repos/rexml/trunk/ rexml
0
- export RUBYLIB="/path/rexml/src"
...
1
 
2
3
4
5
 
 
 
 
 
 
6
7
8
 
 
 
 
 
 
 
 
 
 
9
 
 
...
 
1
2
 
 
 
3
4
5
6
7
8
9
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1,9 +1,22 @@
0
-task :default => [:test]
0
+# -*- ruby -*-
0
 
0
-task :test do
0
- ruby "-rubygems", "test.rb"
0
-end
0
+$LOAD_PATH.unshift(File.dirname(__FILE__) + '/lib/')
0
+
0
+require 'rubygems'
0
+require 'hoe'
0
+require 'planet.rb'
0
+require 'rake/testtask'
0
 
0
-task :prereqs do
0
- ruby "-rubygems", "prereqs.rb"
0
+Hoe.new('mars', Mars::VERSION) do |p|
0
+ p.developer('Sam Ruby')
0
+ p.url = 'http://github.com/rubys/mars'
0
+
0
+ p.extra_deps << ['addressable']
0
+ p.extra_deps << ['idn']
0
+ p.extra_deps << ['rfeedparser']
0
+ p.extra_deps << ['libxml-ruby']
0
+ p.extra_deps << ['html5lib', '>=0.10.1']
0
+ p.add_development_dependency 'test-spec'
0
 end
0
+
0
+# vim: syntax=Ruby

Comments

    No one has commented yet.