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.
- data/VERSION +1 -1
- data/lib/rutt/screen/item.rb +9 -7
- data/rutt.gemspec +1 -1
- metadata +3 -3
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.5. | 
| 1 | 
            +
            0.5.3
         | 
    
        data/lib/rutt/screen/item.rb
    CHANGED
    
    | @@ -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'   => @ | 
| 58 | 
            -
                              '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(@ | 
| 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(@ | 
| 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(@ | 
| 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(@ | 
| 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, @ | 
| 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
    
    
    
        metadata
    CHANGED