Gem problems(sigh)

i tried to make a gem and tried to build the spec file and this is what
happened:

C:\Users\Al Baker\Documents\Programming\RuBy\string_extensions\lib>gem
build str
ing_extensions.gemspec
ERROR: Gemspec file not found: string_extensions.gemspec

any clues?

You look like you’re in the lib directory, but the gemspec would usually
be one directory up.

Try “cd …” to go up to C:\Users\Al
Baker\Documents\Programming\RuBy\string_extensions and try again?

tried that and got:

C:\Users\Al Baker\Documents\Programming\RuBy\string_extensions>gem build
string_extensions.gemspec
ERROR: Gemspec file not found: string_extensions.gemspec

and tried this:

C:\Users\Al Baker\Documents\Programming\RuBy\string_extensions>gem build

The syntax of the command is incorrect.

and tried this:

C:\Users\Al Baker\Documents\Programming\RuBy>gem build
string_extensions.gemspec

Invalid gemspec in [string_extensions.gemspec]: uninitialized constant
Gem::Spec
iification
ERROR: Error loading gemspec. Aborting.

yes i created it and stored in the ‘lib’ of “string_extensions”

As per earlier comment, I don’t think it should be in “lib”, but in the
directory containing “lib”. If it still doesn’t work despite that, I’m
not sure what’s going on.

i fixed it. seems i misspelled something. but i got a weird response:

C:\Users\Al Baker\Documents\Programming\RuBy\string_extensions>gem build
string_extensions.gemspec
WARNING: no description specified
WARNING: no homepage specified
Successfully built RubyGem
Name: string_extensions
Version: 0.0.1
File: string_extensions-0.0.1.gem

Does the file “string_extensions.gemspec” actually exist? You have to
have written one of these yourself.

It looks fine to me. The warnings are just mentioning things not
specified in the gemspec.

ok. question? would i add that info in by typing “s.dscription =
etc,etc; and s.homepage = blah.com”?

More or less. You can see here the full list of attributes:
http://docs.rubygems.org/read/chapter/20