minter-raccdoc 0.0.5 → 0.0.6

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.6 Add range option to Forum.noteids
2
+
1
3
  v0.0.5 Full test coverage, bug fixes
2
4
 
3
5
  v0.0.4 Add readers for extra flags, add DAMMIT to post reading.
data/lib/raccdoc/forum.rb CHANGED
@@ -50,9 +50,11 @@ module Raccdoc
50
50
  end
51
51
 
52
52
  # Returns an array of all current post IDs in the forum.
53
- def noteids
53
+ #
54
+ # Takes an optional range string of the form oldest_noteid-newest_noteid. The oldest or newest can be omitted as needed.
55
+ def noteids(range = "")
54
56
  noteids = Array.new
55
- @socket.puts("XHDR noteno")
57
+ @socket.puts("XHDR noteno #{oldest}")
56
58
  response = @socket.readline.chomp
57
59
  unless response.match(/^3/)
58
60
  raise RuntimeError, response
data/lib/raccdoc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Raccdoc
2
2
 
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  require 'socket'
5
5
  require 'time'
6
6
 
data/raccdoc.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{raccdoc}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.6"
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"]
9
- s.date = %q{2009-01-13}
9
+ s.date = %q{2009-01-14}
10
10
  s.description = %q{A Ruby interface into the Raccdoc protocol}
11
11
  s.email = %q{minter@lunenburg.org}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/raccdoc/connection.rb", "lib/raccdoc/forum.rb", "lib/raccdoc/post.rb", "lib/raccdoc.rb", "LICENSE", "README.rdoc"]
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - H. Wade Minter
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-13 00:00:00 -08:00
12
+ date: 2009-01-14 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency