rutt 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rutt/screen/item.rb +9 -7
  3. data/rutt.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -54,14 +54,16 @@ module Rutt
54
54
  when /s/i
55
55
  cur_y = @cur_y - 1
56
56
  $instapaper.request('/api/1/bookmarks/add', {
57
- 'url' => @items[cur_y]['url'],
58
- 'title' => @items[cur_y]['title'],
57
+ 'url' => @pages[@cur_page][cur_y]['url'],
58
+ 'title' => @pages[@cur_page][cur_y]['title'],
59
59
  })
60
- DB::Item::sent_to_instapaper(@items[cur_y])
60
+ DB::Item::sent_to_instapaper(@pages[@cur_page][cur_y])
61
+ get_items
61
62
  window
62
63
  move_pointer(cur_y + 1, move_to=true)
63
64
  when /a/i
64
65
  DB::Feed::mark_as_read(@feed)
66
+ get_items
65
67
  window
66
68
  move_pointer(@cur_y, move_to=true)
67
69
  when /p/i
@@ -73,18 +75,18 @@ module Rutt
73
75
  when /b/i
74
76
  cur_y = @cur_y - 1
75
77
  DB::Item::mark_as_read(@items[cur_y])
76
- Launchy.open(@items[cur_y]['url'])
78
+ Launchy.open(@pages[@cur_page][cur_y]['url'])
77
79
  window
78
80
  move_pointer(@cur_y, move_to=true)
79
81
  when /m/i
80
82
  cur_y = @cur_y - 1
81
- DB::Item::mark_as_read(@items[cur_y])
83
+ DB::Item::mark_as_read(@pages[@cur_page][cur_y])
82
84
  get_items
83
85
  window
84
86
  move_pointer(cur_y + 1, move_to=true)
85
87
  when /u/i
86
88
  cur_y = @cur_y - 1
87
- DB::Item::mark_as_unread(@items[cur_y])
89
+ DB::Item::mark_as_unread(@pages[@cur_page][cur_y])
88
90
  get_items
89
91
  window
90
92
  move_pointer(cur_y + 1, move_to=true)
@@ -92,7 +94,7 @@ module Rutt
92
94
  DB::Feed::refresh_for(@feed)
93
95
  window
94
96
  when / /
95
- content_screen = Content.new(@stdscr, @items[@cur_y - 1])
97
+ content_screen = Content.new(@stdscr, @pages[@cur_page][@cur_y - 1])
96
98
  content_screen.loop
97
99
 
98
100
  get_items
data/rutt.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rutt}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Abhi Yerra"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Abhi Yerra