public
Description: An example of a stand-alone Ruby web filter
Clone URL: git://github.com/JackDanger/hacker_news.git
Search Repo:
Revert "turned lambda into class and fixed up indentation"

This reverts commit 528baedb0dfaf6756419a4a5d3e7aba8a9326e60.

Conflicts:
JackDanger (author)
Mon Apr 21 14:04:39 -0700 2008
commit  45f70afb3761403b855a7ca7006d7c1d26bf6b5f
tree    bb6886df8e3c18786695ecf7c2c532178319a403
parent  a004ae1f03f6a500f2fdfdbc77b53adfb57f147f
...
24
25
26
27
 
28
29
30
...
24
25
26
 
27
28
29
30
0
@@ -24,7 +24,7 @@ class HackerNews
0
         comments_number = (link.parent.parent.next_sibling / 'td a').last.inner_text.split.first
0
         item.title = link.inner_text
0
         item.link = link.attributes['href'] =~ /^http/ ? link.attributes['href'] : "http://news.ycombinator.com/#{link.attributes['href']}"
0
- article_cache = 'cache/' + item.link.gsub(/:|\/|=|&|\[|\]|\?/, '_')
0
+ article_cache = File.join(File.dirname(__FILE__), 'cache', item.link.gsub(/:|\/|=|&|\[|\]|\?/, '_'))
0
         if File.exist?(article_cache)
0
           article = File.read(article_cache)
0
         else

Comments

    No one has commented yet.