releasing beta version of gem (naming question)

R

Rahul Kumar

I have a stable release of a gem mygem V1.1.x.
I have a new beta-ish version 1.2.0. I'd like to release a gem for 1.2,
however, i don't want it to become the default download until i believe
its stable.

Is there a norm for this? Do we change the name to mygem-beta or
mygem1.2.0-beta and then delete that gem when its stable ?
 
Q

Quintus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 17.10.2010 08:44, schrieb Rahul Kumar:
I have a stable release of a gem mygem V1.1.x.
I have a new beta-ish version 1.2.0. I'd like to release a gem for 1.2,
however, i don't want it to become the default download until i believe
its stable.

Is there a norm for this? Do we change the name to mygem-beta or
mygem1.2.0-beta and then delete that gem when its stable ?

This is called a pre-relase gem and to get one you have to name your gem
like this: mygem.1.2.0.beta, i.e. a comination of ASCII characters as
the last version number (not just "beta" is valid). To install a
prerelease gem, you have to pass the --pre option to gem:
$ gem install mygem --pre
Otherwise RubyGems will download the current stable version.
Have a look at the coderay gem ( http://rubygems.org/gems/coderay ),
it's maintainer has published some beta gems.

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMuqWqAAoJEGrS0YjAWTKVVywIAIMQHxx1Teo6GTQZiJ/vSOnq
3yHfE/AN2zx6pvXfLRcnzKAw0snkExltZh1WVN+wFroItUmoIFMObIyCTjrThhr7
D5W5OL2qTid9TqFcjnlnfNRjliHoIOjSYh6IvNen74NrKpmzt7TAG11bcY196AEj
YGFAAK8b/IoYAoelBmnjG99M0hMkg01fFaxIYQ+YjEDaJLqEd/4BUabvAX95u89W
rxOq82CDyttdrd5lvoNe+kb/Ywv9RpMdlZsT7/UhTPI2hoBK0qrjQmoD8kFxqzkO
6uhD4ZySiKVrrWWF5TdIscJHgrkzVpp2h1EWgPvcTOqSpv8ruWWnqMc5p6zGzlw=
=pSDK
-----END PGP SIGNATURE-----
 
R

Rahul Kumar

Marvin G=C3=83=C2=BClker wrote in post #954889:
This is called a pre-relase gem and to get one you have to name your ge= m
like this: mygem.1.2.0.beta, i.e. a comination of ASCII characters as
the last version number (not just "beta" is valid). To install a
prerelease gem, you have to pass the --pre option to gem:
$ gem install mygem --pre
Otherwise RubyGems will download the current stable version.
Have a look at the coderay gem ( http://rubygems.org/gems/coderay ),
it's maintainer has published some beta gems.

Vale,
Marvin

Thanks. Added ".pre" to the version attribute in gemspec (or if using
jeweler, then to the VERSION file), does the trick in creating a
pre-release.

-- =

Posted via http://www.ruby-forum.com/.=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top