Ruby

Revision as of 06:28, August 18, 2014 by Threesixes (Talk | contribs) (almost ironed all the bugs out, possible another commit and it will be ready for production)

dev-ruby/rubygems


Source Repository:Repository:Gentoo Portage Tree

http://rubyforge.org/projects/rubygems/

Summary: Centralized Ruby extension management system

Use Flags

server
Install support for the rubygems server

News

Drobbins

IP Space Migration Continues

All Funtoo user containers in the 8.28 IP space will be moving into our new IP space (172.97) over the next few days. If you have DNS set up -- be sure to watch your container and update to the new IP! container.host.funtoo.org DNS will be updated after the move.
2015-08-27 by Drobbins
Drobbins

Funtoo Hosting IP Move

Funtoo user containers with IPs in the 72.18.x.x range will be gradually migrating to new IP addresses this week. If you have DNS entries for your containers, please be aware that your DNS will need to be updated.
2015-08-11 by Drobbins
Drobbins

New ARM Stages

New ARM Stages, built with a new toolchain, are now hitting mirrors. Existing ARM users should re-install using these stages (dated Aug 3, 2015 or later,) rather than upgrade using emerge.
2015-08-06 by Drobbins
More...

Ruby

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Warning

this is a rough draft, and may need revision.

Rubygems is a package management system to extend the ruby language.

Gems are packaged wonky in portage so this page will explain how to work with rubygems rather than fight it. Arch wiki outlines a similar method.

https://wiki.archlinux.org/index.php/Ruby#RubyGems

Emerge ruby & rubygems:

#emerge ruby rubygems

Remove bunk gems:

#emerge -C dev-ruby/rake dev-ruby/racc dev-ruby/json dev-ruby/rdoc

Flush bunk gems bad specs:

#mv /usr/local/lib64/ruby/gems/2.1.0/specifications/ /usr/local/lib64/ruby/gems/2.1.0/specifications.backup


Fetch gems via rubygems:

#gem install rdoc json rake racc
rubygems-update

update gem system:

#update_rubygems
#gem update --system
#gem pristine --all

Now you're ready to use gem to manage gems. The reason this came about is that bundler can't be run with out conflicts.

ruby on rails

#gem install rails
#rails new testproject
#cd testproject
#bundle install