Permalink
Browse files

Readying gem for release

  • Loading branch information...
1 parent c6dad13 commit b1dd801fb810b6ad6dc86746afc42a4e7ff9d7dd Philip (flip) Kromer committed Oct 12, 2009
Showing with 50 additions and 39 deletions.
  1. +19 −7 README.textile
  2. +0 −2 docpages/INSTALL.textile
  3. +3 −1 docpages/index.textile
  4. +10 −9 lib/wukong/dfs.rb
  5. +18 −20 lib/wukong/models/graph.rb
View
@@ -29,17 +29,17 @@ h2. Install
h3. Get the code
-We're still actively developing {{ site.gemname }}. The newest version is available via "Git":http://git-scm.com on "github:":http://github.com/mrflip/{{ site.gemname }}
+We're still actively developing wukong. The newest version is available via "Git":http://git-scm.com on "github:":http://github.com/mrflip/wukong
-pre. $ git clone git://github.com/mrflip/{{ site.gemname }}
+pre. $ git clone git://github.com/mrflip/wukong
-A gem is available from "gemcutter:":http://gemcutter.org/gems/{{ site.gemname }}
+A gem is available from "gemcutter:":http://gemcutter.org/gems/wukong
-pre. $ sudo gem install {{ site.gemname }} --source=http://gemcutter.org
+pre. $ sudo gem install wukong --source=http://gemcutter.org
(don't use the gems.github.com version -- it's way out of date.)
-You can instead download this project in either "zip":http://github.com/mrflip/{{ site.gemname }}/zipball/master or "tar":http://github.com/mrflip/{{ site.gemname }}/tarball/master formats.
+You can instead download this project in either "zip":http://github.com/mrflip/wukong/zipball/master or "tar":http://github.com/mrflip/wukong/tarball/master formats.
h3. Dependencies and setup
@@ -190,9 +190,15 @@ bq. Sun Wukong possesses incredible strength, being able to lift his 13,500 jīn
The "Jaime Hewlett / Damon Albarn short":http://news.bbc.co.uk/sport1/hi/olympics/monkey that the BBC made for their 2008 Olympics coverage gives the general idea.
-h2. Credits
+<notextile><div class="toggle"></notextile>
-Wukong was written by "Philip (flip) Kromer":http://mrflip.com (flip@infochimps.org) for the "infochimps project":http://infochimps.org
+h2. More info
+
+There are many useful examples in the examples/ directory.
+
+h3. Credits
+
+Monkeyshines was written by "Philip (flip) Kromer":http://mrflip.com (flip@infochimps.org / "@mrflip":http://twitter.com/mrflip) for the "infochimps project":http://infochimps.org
Patches submitted by:
* gemified by Ben Woosley (ben.woosley with the gmails)
@@ -201,3 +207,9 @@ Patches submitted by:
Thanks to:
* "Brad Heintz":http://www.bradheintz.com/no1thing/talks/ for his early feedback
* "Phil Ripperger":http://blog.pdatasolutions.com for his "wukong in the Amazon AWS cloud":http://blog.pdatasolutions.com/post/191978092/ruby-on-hadoop-quickstart tutorial.
+
+h3. Help!
+
+Send monkeyshines questions to the "Infinite Monkeywrench mailing list":http://groups.google.com/group/infochimps-code
+
+<notextile></div></notextile>
View
@@ -27,8 +27,6 @@ pre. $ sudo gem install {{ site.gemname }} --source=http://gemcutter.org
You can instead download this project in either "zip":http://github.com/mrflip/{{ site.gemname }}/zipball/master or "tar":http://github.com/mrflip/{{ site.gemname }}/tarball/master formats.
-<notextile></div><div class="toggle"></notextile>
-
h3. Get the Dependencies
* Hadoop
View
@@ -71,7 +71,7 @@ h2. Documentation index
h2. Credits
-Wukong was written by "Philip (flip) Kromer":http://mrflip.com (flip@infochimps.org) for the "infochimps project":http://infochimps.org
+Wukong was written by "Philip (flip) Kromer":http://mrflip.com (flip@infochimps.org / "@mrflip":http://twitter.com/mrflip) for the "infochimps project":http://infochimps.org
Patches submitted by:
* gemified by Ben Woosley (ben.woosley@gmail.com)
@@ -88,3 +88,5 @@ h2. Help!
Send Wukong questions to the "Infinite Monkeywrench mailing list":http://groups.google.com/group/infochimps-code
<notextile></div></notextile>
+
+{% include news.html %}
View
@@ -22,15 +22,16 @@ def self.compare_listings src_files, dest_files, &block
end
end
- class HFile < TypedStruct.new(
- [:mode_str, String],
- [:i_count, String],
- [:owner, String],
- [:group, String],
- [:size, Integer],
- [:date, Bignum],
- [:path, String]
- )
+ HFile = TypedStruct.new(
+ [:mode_str, String],
+ [:i_count, String],
+ [:owner, String],
+ [:group, String],
+ [:size, Integer],
+ [:date, Bignum],
+ [:path, String]
+ )
+ HFile.class_eval do
def self.new_from_ls ls_line
mode, ic, o, g, sz, dt, tm, path = ls_line.chomp.split(/\s+/)
date = Time.parse("#{dt} #{tm}").utc.to_flat
View
@@ -1,27 +1,25 @@
module Wukong
module Models
- class Edge < TypedStruct.new(
- [:src, Integer],
- [:dest, Integer]
- )
- end
+ Edge = TypedStruct.new(
+ [:src, Integer],
+ [:dest, Integer]
+ )
- class MultiEdge < TypedStruct.new(
- [:src, Integer],
- [:dest, Integer],
- [:a_follows_b, Integer],
- [:b_follows_a, Integer],
- [:a_replies_b, Integer],
- [:b_replies_a, Integer],
- [:a_atsigns_b, Integer],
- [:b_atsigns_a, Integer],
- [:a_retweets_b, Integer],
- [:b_retweets_a, Integer],
- [:a_favorites_b, Integer],
- [:b_favorites_a, Integer]
- )
- end
+ MultiEdge = TypedStruct.new(
+ [:src, Integer],
+ [:dest, Integer],
+ [:a_follows_b, Integer],
+ [:b_follows_a, Integer],
+ [:a_replies_b, Integer],
+ [:b_replies_a, Integer],
+ [:a_atsigns_b, Integer],
+ [:b_atsigns_a, Integer],
+ [:a_retweets_b, Integer],
+ [:b_retweets_a, Integer],
+ [:a_favorites_b, Integer],
+ [:b_favorites_a, Integer]
+ )
end
end

0 comments on commit b1dd801

Please sign in to comment.