[Win32utils-devel] Attempt to build a gemspec

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Thu Nov 4 14:50:57 EST 2004

Hi all,

I'm trying to build a gemspec for win32-ipc, using a precompiled binary.
Here's my gemspec file:

require "rubygems"

spec = Gem::Specification.new do |s|

   s.name 			= "win32-ipc"
   s.version  		= "0.3.1"
   s.platform 		= Gem::Platform::WIN32
   s.summary 		= "A base class for Win32 synchronization
   s.files = ["ipc.so"]
   s.require_path = "."
   s.autorequire  = "win32/ipc"

   s.has_rdoc = true
   s.extra_rdoc_files = ["README","CHANGES"]
   opts = '-S --title A base class for Win32 synchronization objects.'
   opts << ' --main README'
   s.rdoc_options = opts

   s.test_files = Dir.glob("test/tc_*.rb")

   s.author   = "Daniel J. Berger"
   s.email    = "djberg96 at yahoo.com"
   s.homepage = "http://www.rubyforge.org/projects/win32utils"


if $0 == __FILE__

It seems to build fine.  When I run 'gem install' however, I get this:

C:\eclipse\workspace\win32-ipc>gem install win32-ipc-0.3.1-mswin32.gem
Attempting local installation of 'win32-ipc-0.3.1-mswin32.gem'
Successfully installed win32-ipc, version 0.3.1
Installing RDoc documentation for win32-ipc-0.3.1-mswin32...
ERROR:  While executing gem ... (TypeError)
    cannot convert Array into String

It does seem to install under the ruby/gems directory, though.

But, if I try to do "require 'win32/ipc'", it says it can't find it.

What am I doing wrong?



More information about the win32utils-devel mailing list