vnews 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +5 -3
- data/lib/vnews/display.rb +4 -2
- data/lib/vnews/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -8,9 +8,11 @@ MySQL.
|
|
8
8
|
There are lots of newsfeed readers out there, both desktop and
|
9
9
|
web-based. Here are some of Vnews's advantages:
|
10
10
|
|
11
|
-
*
|
12
|
-
*
|
13
|
-
*
|
11
|
+
* Minimizes distractions; everything is rendered as plain text and pure content; images and ads are not displayed
|
12
|
+
* Makes it easy to navigate your entire feed collection using efficient keystrokes
|
13
|
+
* Makes it easy to append or pipe text from your feeds to whatever file or program you want
|
14
|
+
* Makes it easy manage your feed subscriptions with a text editor
|
15
|
+
* Compared to Google Reader: lets you read your feeds without letting Google collect tons more data about you
|
14
16
|
|
15
17
|
Vnews uses MySQL to store your feed data locally. It uses MySQL's MyISAM
|
16
18
|
tables to provide natural-language full-text search capability.
|
data/lib/vnews/display.rb
CHANGED
@@ -65,13 +65,15 @@ class Vnews
|
|
65
65
|
def format_item_summary(i, width)
|
66
66
|
varwidth = width.to_i - 35
|
67
67
|
feed_title = col i['feed_title'], varwidth * 0.25
|
68
|
+
raw_title = i['title'].gsub(/[\n\r\t]/,' ')
|
68
69
|
title = if i['score'] # search result
|
69
70
|
width = varwidth * 0.75
|
70
|
-
"#{col(
|
71
|
+
"#{col(raw_title, (width - 6))} | #{"%.3s" % i['score']}"
|
71
72
|
else
|
72
|
-
col
|
73
|
+
col raw_title, varwidth * 0.75
|
73
74
|
end
|
74
75
|
word_count = i['word_count'].to_s.rjust(6)
|
76
|
+
|
75
77
|
date = format_date(i['pub_date']).rjust(8)
|
76
78
|
spacer = " " * 20 # to push guid all the way off screen
|
77
79
|
guid = i['guid']
|
data/lib/vnews/version.rb
CHANGED