spidah-ruby_gntp 0.1.3 → 0.1.3.1

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.
Files changed (2) hide show
  1. data/lib/ruby_gntp.rb +2 -2
  2. metadata +1 -1
@@ -41,7 +41,7 @@ class GNTP
41
41
  attr_reader :message if $DEBUG
42
42
 
43
43
  RUBY_GNTP_NAME = 'ruby_gntp'
44
- RUBY_GNTP_VERSION = '0.1.3'
44
+ RUBY_GNTP_VERSION = '0.1.3.1'
45
45
 
46
46
  def initialize(app_name = 'Ruby/GNTP', host = 'localhost', password = '', port = 23053)
47
47
  @app_name = app_name
@@ -229,7 +229,7 @@ class GNTP
229
229
  # a file icon gets read and stored, ready to be appended to the end of the request
230
230
  #
231
231
  def handle_icon(icon, type)
232
- if File.exists?(icon)
232
+ if File.exists?(icon) && @target_host != 'localhost'
233
233
  file = File.new(icon)
234
234
  data = file.read
235
235
  size = data.length
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spidah-ruby_gntp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - snaka