Question: How to release large Ruby Gem?

Question

How to release large Ruby Gem?

Answers 1
Added at 2016-12-20 15:12
Tags
Question

I´m finishing a Ruby Gem that depends on Chromium (jxBrowser). Chromium is quite large and has versions for linux, mac and windows. Releasing this gem to RubyGem is not possible, as the gem size is larger than supported by RubyGem. So, are there any recommendations on where/how to release this? I´d love to keep it in RubyGem as my other gens were released there. Should I release an installer in RubyGem and put the files in GitHub? What´s the best way?

Thanks for any hints and suggestions....

Answers to

How to release large Ruby Gem?

nr: #1 dodano: 2016-12-20 15:12

You can ask your users to install the gem from git (bundler: http://bundler.io/git.html, Install Gem from Github Branch?).

This will result in a line like

gem 'hard_drive_expander', github: 'rodrigo/hard_drive_expander'

in a Gemfile (or a bit a lengthier process for gem install - do you intend 'library' kind of usage or standalone installations). Note that depending on your scenario you could have an installer gem that depends on the "github-hosted" gem, or downloads and builds/installs it (both seem like dirty solutions to me though, its not what I expect or commonly see).

Although github does place quotas on your repositories, you will probably not hit them (https://help.github.com/articles/what-is-my-disk-quota/).

Another option is to host it yourself (http://guides.rubygems.org/run-your-own-gem-server/).

Sorry for the "linky" answer.

However, @icguida and @engineersmnky s comments to your question are very worth considering: Do you really need to include chromium?

Update

There is a gem that will hook into gem to allow for usage like this: gem specific_install https://github.com/githubsvnclone/rdoc.git. The gem is called specific_install: https://github.com/rdp/specific_install .

Source Show
◀ Wstecz