Forum: Ruby gem problems(sigh)

Be409c357065b75bd5dda1424e6976f8?d=identicon&s=25 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?
8bfb3a1eb9879049b4886cd3f9f321c4?d=identicon&s=25 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?
Be409c357065b75bd5dda1424e6976f8?d=identicon&s=25 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.
8bfb3a1eb9879049b4886cd3f9f321c4?d=identicon&s=25 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.
Be409c357065b75bd5dda1424e6976f8?d=identicon&s=25 Al Baker (alcheddah)
on 2012-11-28 06:05
yes i created it and stored in the 'lib' of "string_extensions"
8bfb3a1eb9879049b4886cd3f9f321c4?d=identicon&s=25 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.
Be409c357065b75bd5dda1424e6976f8?d=identicon&s=25 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
8bfb3a1eb9879049b4886cd3f9f321c4?d=identicon&s=25 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.
Be409c357065b75bd5dda1424e6976f8?d=identicon&s=25 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"?
8bfb3a1eb9879049b4886cd3f9f321c4?d=identicon&s=25 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

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.