ruby-net-nntp 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,4 +1,18 @@
1
- 2007-06-28 17:11 +0200 Anton 'tony' Bangratz <anton.bangratz@gmail.com> (43d551bd69a3 [tip])
1
+ 2007-07-02 15:57 +0200 Anton 'tony' Bangratz <anton.bangratz@gmail.com> (d6c2c8c99d26 [tip])
2
+
3
+ * .autotest, .hgignore, Rakefile, lib/net/nntp.rb,
4
+ lib/net/nntp/version.rb, lib/net/nntp_article.rb, script/console,
5
+ test/functional/test_nntp.rb:
6
+ added logging (log4r), fixed article, refactored read_response and
7
+ depending methods
8
+ - added Log4r dependency and logging stub, added dependency to
9
+ Rakefile gem build process
10
+ - fixed article: added 'from' attribute reader
11
+ - refactored read_response: changed methods to use read_response and
12
+ added intelligent one- and multi-line sensing (including
13
+ force parameter, thanks to NNTP response 211)
14
+
15
+ 2007-06-28 17:11 +0200 Anton 'tony' Bangratz <anton.bangratz@gmail.com> (43d551bd69a3)
2
16
 
3
17
  * Rakefile, lib/net/nntp.rb, lib/net/nntp/version.rb:
4
18
  moved version to separate file
@@ -51,7 +51,7 @@ module Net
51
51
  @port = port
52
52
  @socket_class = TCPSocket
53
53
  @group = nil
54
- @@logger = Log4r::Logger['net::nntp'] || Log4r::Logger.new('net::nntp')
54
+ @@logger ||= Log4r::Logger['net::nntp'] || Log4r::Logger.new('net::nntp')
55
55
  end
56
56
 
57
57
  # Actually connects to NNTP host and port given in new()
@@ -138,7 +138,8 @@ module Net
138
138
  #
139
139
  def xover(groupname=nil, rest=nil)
140
140
  raise CommandFailedError, 'No group selected' unless @group || groupname
141
- group(groupname) unless (@group && @group.name == groupname)
141
+ debug "Selected Group: #{@group.name}"
142
+ group(groupname) unless (@group || @group.name == groupname)
142
143
  self.next unless rest
143
144
  prefix = "xover"
144
145
  suffix = numbers_or_id(rest)
@@ -1,5 +1,5 @@
1
1
  module Net
2
2
  class NNTP
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: ruby-net-nntp
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.5
6
+ version: 0.0.6
7
7
  date: 2007-07-02 00:00:00 +02:00
8
8
  summary: Net::XXX style NNTP Library for easy access.
9
9
  require_paths:
@@ -30,11 +30,11 @@ authors:
30
30
  - Anton Bangratz
31
31
  files:
32
32
  - lib/net
33
- - lib/net/nntp.rb
34
33
  - lib/net/nntp_group.rb
35
34
  - lib/net/nntp
36
35
  - lib/net/nntp/version.rb
37
36
  - lib/net/nntp_article.rb
37
+ - lib/net/nntp.rb
38
38
  - test/functional
39
39
  - test/functional/test_nntp.rb
40
40
  - test/mock