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 CHANGED
@@ -1,3 +1,5 @@
1
+ v0.0.8 Bugfix on range, bugfix on post authors.
2
+
1
3
  v0.0.7 Bugfix on range
2
4
 
3
5
  v0.0.6 Add range option to Forum.noteids
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[:author]
47
+ @author = post[:from]
49
48
  @body = post[:body]
50
49
  @authority = post[:authority]
51
50
  return post
data/lib/raccdoc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Raccdoc
2
2
 
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  require 'socket'
5
5
  require 'time'
6
6
 
data/raccdoc.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{raccdoc}
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["H. Wade Minter"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minter-raccdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - H. Wade Minter