ruby_gntp 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ruby_gntp.rb +3 -2
  2. metadata +2 -2
data/lib/ruby_gntp.rb CHANGED
@@ -30,6 +30,7 @@
30
30
  #}}}
31
31
  require 'socket'
32
32
  require 'digest/md5'
33
+ require 'rbconfig'
33
34
 
34
35
  #$DEBUG = true
35
36
 
@@ -41,7 +42,7 @@ class GNTP
41
42
  attr_reader :message if $DEBUG
42
43
 
43
44
  RUBY_GNTP_NAME = 'ruby_gntp'
44
- RUBY_GNTP_VERSION = '0.2.2'
45
+ RUBY_GNTP_VERSION = '0.2.3'
45
46
 
46
47
  def initialize(app_name = 'Ruby/GNTP', host = 'localhost', password = '', port = 23053)
47
48
  @app_name = app_name
@@ -197,7 +198,7 @@ class GNTP
197
198
 
198
199
  platformname, platformversion = '', ''
199
200
 
200
- if ENV['OS']
201
+ if Config::CONFIG['host_os'] =~ /mswin/
201
202
  ver = `ver`
202
203
  if ver.index('[')
203
204
  matches = ver.scan(/(.*)\[+(.*)\]+/)[0]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gntp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - snaka
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-06 00:00:00 +09:00
13
+ date: 2009-11-07 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies: []
16
16