See below. -- Evan Phoenix // e...@fallingsnow.net
On Tuesday, May 31, 2011 at 9:09 AM, Uwe Kubosch wrote: > Hi! > > Thank you for your answer. I thought this might be the right place in case > there was a need to define a new platform or OS for RubyGems. You don't need rubygems itself to define a platform, it allows anything and validates it against what ruby -v indicates. > > I am a developer in the Ruboto project. We seek information on how to enable > users of Ruboto to both relase Ruboto-specific gems and comsume gems in > Ruboto projects. I was unable to find a mailing list for RubyGems users. I'm not clear on what you mean by this, but you can certainly set the platform for a gem to be whatever platform is reported by ruby on android (likely java because of jruby), in which case they'll be restricted to installing on that platform. Beyond that, Rubygems doesn't have a mechanism to restrict where gems can be installed. > > I will ask in ruby-lang, then. > > My apologies for the noise. No problem at all. > > > On 2011-05-31, at 17:56, Evan Phoenix wrote: > > > Hi Uwe, > > > > Your question is best answered by either people who work on Ruboto (I > > believe they have released a gem) or in a generic ruby mailing list. This > > list is for discussions about the development of rubygems software itself. > > > > - Evan > > > > -- > > Evan Phoenix // e...@fallingsnow.net (mailto:e...@fallingsnow.net) > > > > > > On Tuesday, May 31, 2011 at 7:31 AM, Uwe Kubosch wrote: > > > > > Hi all! > > > > > > I would like to write a tutorial on how to best release a gem for ruboto, > > > JRuby on Android. > > > > > > But I have no clue as to what is needed, yet. :) I have relased gems > > > before, but not platform specific gems, and not for Ruboto. Can you help > > > me? What do I need to do differently to limit installation to Ruboto > > > projects? > > > > > > The installation itself is done only on the developer's platform. We are > > > currently using Bundler with a Gemfile that simply lists the desired > > > gems. The gems are then installed using Bundler in a separate gem > > > directory using "bundle install --path=<tmp_path_in_working_area>". After > > > installation the gems are packaged into a bundle.jar that is packaged and > > > deployed inside the Android app. > > > > > > The two features I know I am missing, is marking a gem as Ruboto-specific > > > (preferably with the same name as other variants of the same gem), and > > > limiting installation of gems to only include gems compatible with > > > Ruboto. The first feature is what I think is the most important. > > > > > > A concrete example would be that the Gemfile includes "gem 'json'" and > > > that a Ruboto specific version of the json gem is installed instead of > > > C-extension based or Java based variants of the json gem. > > > > > > It is not desirable to include the Ruboto specific implementation in the > > > main json gem, since we package the complete "lib" directory of the gem > > > into the apk (Android application package), and every KB counts. > > > > > > This is the first post from me on the subject, and indeed on this list, > > > and I hope you will forgive my ignorance and bad assumptions. Many thanks > > > in advance for any help you can give. > > -- > Uwe Kubosch > Systems Developer > Datek Wireless AS > u...@datek.no (mailto:u...@datek.no) > http://datek.no/ > > > _______________________________________________ > Rubygems-developers mailing list > http://rubyforge.org/projects/rubygems > Rubygems-developers@rubyforge.org (mailto:Rubygems-developers@rubyforge.org) > http://rubyforge.org/mailman/listinfo/rubygems-developers _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers