[Win32utils-devel] Attempt to build a gemspec

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Fri Nov 5 10:01:11 EST 2004


Ok, we're getting further.

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

First, I thought you didn't have to do this with gems unless you wanted
a specific version.  Second, I'm still doing something wrong.  When I
tried that I got:

irb(main):003:0> require_gem "win32-ipc"
LoadError: No such file to load -- win32/ipc
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r
equire__'
        from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in `r
equire'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:148:in
`activate'
        from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:34:in
`require_gem'
        from (irb):3

Below is the current gemspec (slightly simplified since my last post)

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 objects."
   
   s.files = ["ipc.so","lib/win32/ipc.c","lib/win32/ipc.h"]
   
   s.require_path = "lib"
   s.autorequire  = "win32/ipc"

   s.has_rdoc         = true
   s.extra_rdoc_files = ["README","CHANGES"]
   s.rdoc_options     = ["-S"]

   s.test_file = "test/tc_ipc.rb"

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

end

if $0 == __FILE__
	Gem.manage_gems
	Gem::Builder.new(spec).build
end



More information about the win32utils-devel mailing list