On May 31, 2011, at 9:40 AM, Uwe Kubosch wrote: >>> 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. > > OK, so setting spec.platform = 'ruboto' in the gemspec will make a gem that > will not install on other platforms. I will try this.
I recommend setting it to the appropriate entry from `gem env`s platform section: Plain ruby has this: - RUBYGEMS PLATFORMS: - ruby - universal-darwin-10 Rubinius has a rubinius-specific platform: - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-10 - x86_64-rubinius-1.2 Setting it to just "ruboto" will not do what you think: $ ruby19 -e 'p Gem::Platform.new "ruboto"' #<Gem::Platform:0x81066824 @cpu=nil, @os="unknown", @version=nil> Usually you want to set the platform to Gem::Platform::CURRENT but that will only work when you're building the gem on the same platform the gem will run on. … I can help you best with the output of `gem env` from ruboto. _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers