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 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
- * 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 copy, append, or pipe text from your feeds to whatever file or program you want
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(i['title'], (width - 6))} | #{"%.3s" % i['score']}"
71
+ "#{col(raw_title, (width - 6))} | #{"%.3s" % i['score']}"
71
72
  else
72
- col i['title'], varwidth * 0.75
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
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
4
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi