public
Description: A 'planet' like feed aggregator using feedparser and erubis
Clone URL: git://github.com/technicalpickles/feedbarn.git
Renamed View to Showcase. Pushed logic for actually displaying into 
Showcase.
Fri Feb 22 09:32:35 -0800 2008
commit  9f7b7927b72c3e9b2c802656f5ae85ca757cd512
tree    af7d787c8fce87d91f5d300c2efcc02c19da0588
parent  11a63d4b8b9abf70d0e4d8efbf59c6a8b72a540d
...
11
12
13
14
 
15
16
17
18
19
20
21
 
 
 
 
 
 
 
22
...
11
12
13
 
14
15
 
 
 
 
 
16
17
18
19
20
21
22
23
24
0
@@ -11,10 +11,12 @@ barn = farmer.build 'my-barn'
0
 
0
 farmer.fill barn
0
 
0
-view = farmer.showcase barn
0
+showcase = farmer.showcase barn
0
 
0
-Dir.mkdir('output') unless File.exists?('output')
0
-open('output/index.html', 'w') do |file|
0
- file.write view.render
0
- file.close
0
-end
0
\ No newline at end of file
0
+showcase.output
0
+
0
+# Dir.mkdir('output') unless File.exists?('output')
0
+# open('output/index.html', 'w') do |file|
0
+# file.write showcase.render
0
+# file.close
0
+# end
0
\ No newline at end of file
...
1
2
3
4
5
 
6
...
1
2
3
 
4
5
6
0
@@ -1,4 +1,4 @@
0
 require 'feedbarn/barn'
0
 require 'feedbarn/farmer'
0
 require 'feedbarn/feed'
0
-require 'feedbarn/view'
0
\ No newline at end of file
0
+require 'feedbarn/showcase'
0
\ No newline at end of file
...
26
27
28
29
30
31
32
33
...
41
42
43
44
 
45
46
47
...
26
27
28
 
 
29
30
31
...
39
40
41
 
42
43
44
45
0
@@ -26,8 +26,6 @@ module FeedBarn
0
       barns[barn_config['title']] = Barn.new(barn_name, barn_config)
0
     end
0
     
0
-
0
-
0
     def fill barn
0
       barn.feeds = []
0
 
0
@@ -41,7 +39,7 @@ module FeedBarn
0
     end
0
     
0
     def showcase barn
0
- FeedBarn::View.new(barn)
0
+ FeedBarn::Showcase.new(barn)
0
     end
0
     
0
     private

Comments

    No one has commented yet.