minter-raccdoc 0.0.7 → 0.0.8
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/CHANGELOG +2 -0
- data/lib/raccdoc/forum.rb +3 -3
- data/lib/raccdoc/post.rb +1 -2
- data/lib/raccdoc.rb +1 -1
- data/raccdoc.gemspec +1 -1
- metadata +1 -1
    
        data/CHANGELOG
    CHANGED
    
    
    
        data/lib/raccdoc/forum.rb
    CHANGED
    
    | @@ -54,7 +54,7 @@ module Raccdoc | |
| 54 54 | 
             
                # Takes an optional range string of the form oldest_noteid-newest_noteid.  The oldest or newest can be omitted as needed.
         | 
| 55 55 | 
             
                def noteids(range = "")
         | 
| 56 56 | 
             
                  noteids = Array.new
         | 
| 57 | 
            -
                  @socket.puts("XHDR noteno #{range}")
         | 
| 57 | 
            +
                  @socket.puts("XHDR noteno #{range.to_s}")
         | 
| 58 58 | 
             
                  response = @socket.readline.chomp
         | 
| 59 59 | 
             
                  unless response.match(/^3/)
         | 
| 60 60 | 
             
                    raise RuntimeError, response
         | 
| @@ -132,7 +132,7 @@ module Raccdoc | |
| 132 132 | 
             
                # 
         | 
| 133 133 | 
             
                # You may provide an optional range (in the form "start_id-end_id") to limit the number of posts returned.  The default is to return all posts in the forum.
         | 
| 134 134 | 
             
                def post_headers(range = "")
         | 
| 135 | 
            -
                  @socket.puts("XHDR ALL #{range}")
         | 
| 135 | 
            +
                  @socket.puts("XHDR ALL #{range.to_s}")
         | 
| 136 136 | 
             
                  response = @socket.readline.chomp
         | 
| 137 137 | 
             
                  unless response.match(/^3/)
         | 
| 138 138 | 
             
                    raise RuntimeError, response
         | 
| @@ -201,4 +201,4 @@ module Raccdoc | |
| 201 201 | 
             
                  end
         | 
| 202 202 | 
             
                end
         | 
| 203 203 | 
             
              end
         | 
| 204 | 
            -
            end
         | 
| 204 | 
            +
            end
         | 
    
        data/lib/raccdoc/post.rb
    CHANGED
    
    | @@ -35,7 +35,6 @@ module Raccdoc | |
| 35 35 | 
             
                  end
         | 
| 36 36 | 
             
                  post[:id] = postid
         | 
| 37 37 | 
             
                  post[:date] = post[:date] ? Time.parse(post[:date]) : Time.new.getgm
         | 
| 38 | 
            -
                  post[:author] = post[:'formal-author'] ? post[:'formal-author'].split('/')[1] : 'Anonymous'
         | 
| 39 38 |  | 
| 40 39 | 
             
                  post[:body] = ""
         | 
| 41 40 | 
             
                  while (line = @socket.readline)
         | 
| @@ -45,7 +44,7 @@ module Raccdoc | |
| 45 44 |  | 
| 46 45 | 
             
                  @id = post[:id]
         | 
| 47 46 | 
             
                  @date = post[:date]
         | 
| 48 | 
            -
                  @author = post[: | 
| 47 | 
            +
                  @author = post[:from]
         | 
| 49 48 | 
             
                  @body = post[:body]
         | 
| 50 49 | 
             
                  @authority = post[:authority]
         | 
| 51 50 | 
             
                  return post
         | 
    
        data/lib/raccdoc.rb
    CHANGED
    
    
    
        data/raccdoc.gemspec
    CHANGED