Forum: Ruby gem problems(sigh)

Posted by Al Baker (alcheddah)
on 2012-11-28 04:35
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?
Posted by Arlen Cuss (unnali)
on 2012-11-28 04:42
(Received via mailing list)
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?
Posted by Al Baker (alcheddah)
on 2012-11-28 04:58
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
<spec file>
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.
Posted by Arlen Cuss (unnali)
on 2012-11-28 05:13
(Received via mailing list)
Does the file "string_extensions.gemspec" actually exist? You have to 
have written one of these yourself.
Posted by Al Baker (alcheddah)
on 2012-11-28 06:05
yes i created it and stored in the 'lib' of "string_extensions"
Posted by Arlen Cuss (unnali)
on 2012-11-28 06:11
(Received via mailing list)
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.
Posted by Al Baker (alcheddah)
on 2012-11-28 06:34
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
Posted by Arlen Cuss (unnali)
on 2012-11-28 06:37
(Received via mailing list)
It looks fine to me. The warnings are just mentioning things not 
specified in the gemspec.
Posted by Al Baker (alcheddah)
on 2012-11-28 06:46
ok. question? would i add that info in by typing "s.dscription = 
etc,etc; and s.homepage = blah.com"?
Posted by Arlen Cuss (unnali)
on 2012-11-28 11:22
(Received via mailing list)
More or less. You can see here the full list of attributes: 
http://docs.rubygems.org/read/chapter/20
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.