vnews 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,7 @@ create table items (
19
19
  word_count int unsigned,
20
20
  unread bool default true,
21
21
  starred bool default false,
22
+ starred_at datetime,
22
23
  primary key (feed,guid),
23
24
  fulltext (title, text)
24
25
  ) type=MyISAM;
@@ -137,7 +137,7 @@ class Vnews
137
137
  when 'Starred'
138
138
  "SELECT items.title, items.guid, items.feed,
139
139
  items.feed_title, items.pub_date, items.word_count, items.starred, items.unread from items
140
- where items.starred = true order by items.pub_date asc"
140
+ where items.starred = true order by items.starred_at, items.pub_date asc"
141
141
  when 'All'
142
142
  "SELECT items.title, items.guid, items.feed,
143
143
  items.feed_title, items.pub_date, items.word_count, items.starred, items.unread from items
@@ -168,7 +168,7 @@ class Vnews
168
168
  end
169
169
 
170
170
  def star_item(guid, star=true)
171
- @client.query "UPDATE items set starred = #{star} where guid = '#{e guid}'"
171
+ @client.query "UPDATE items set starred = #{star}, starred_at = now() where guid = '#{e guid}'"
172
172
  end
173
173
 
174
174
  def delete_item(guid)
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
4
4
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: 0.0.9
9
+ version: 0.1.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi