ruby_gntp 0.3.1 → 0.3.2

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 +17 -13
  2. metadata +2 -2
@@ -42,7 +42,7 @@ class GNTP
42
42
  attr_reader :message if $DEBUG
43
43
 
44
44
  RUBY_GNTP_NAME = 'ruby_gntp'
45
- RUBY_GNTP_VERSION = '0.3.1'
45
+ RUBY_GNTP_VERSION = '0.3.2'
46
46
 
47
47
  def initialize(app_name = 'Ruby/GNTP', host = 'localhost', password = '', port = 23053)
48
48
  @app_name = app_name
@@ -219,22 +219,26 @@ class GNTP
219
219
  message << "Origin-Software-Name: #{RUBY_GNTP_NAME}\r\n"
220
220
  message << "Origin-Software-Version: #{RUBY_GNTP_VERSION}\r\n"
221
221
 
222
- platformname, platformversion = '', ''
222
+ platformname = platformversion = ''
223
223
 
224
+ # These causes a problem... temporary patchwork fix
225
+ #
224
226
  # see Proper way to detect Windows platform in Ruby - The Empty Way
225
227
  # http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/
226
228
  #
227
- if Config::CONFIG['host_os'] =~ /mswin/
228
- ver = `ver`
229
- if ver.index('[')
230
- matches = ver.scan(/(.*)\[+(.*)\]+/)[0]
231
- platformname, platformversion = matches[0], matches[1]
232
- else
233
- platformname, platformversion = 'Microsoft Windows', ver
234
- end
235
- else
236
- platformname, platformversion = `uname -s`, `uname -r`
237
- end
229
+ #if Config::CONFIG['host_os'] =~ /mswin/
230
+ # ver = `ver`
231
+ # if ver.index('[')
232
+ # matches = ver.scan(/(.*)\[+(.*)\]+/)[0]
233
+ # platformname, platformversion = matches[0], matches[1]
234
+ # else
235
+ # platformname, platformversion = 'Microsoft Windows', ver
236
+ # end
237
+ #else
238
+ # platformname, platformversion = `uname -s`, `uname -r`
239
+ #end
240
+ platformname = "Windows"
241
+ platformname = "0.0"
238
242
 
239
243
  message << "Origin-Platform-Name: #{platformname.strip}\r\n"
240
244
  message << "Origin-Platform-Version: #{platformversion.strip}\r\n"
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.3.1
4
+ version: 0.3.2
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-12-16 00:00:00 +09:00
13
+ date: 2010-01-27 00:00:00 +09:00
14
14
  default_executable:
15
15
  dependencies: []
16
16