Hello, A particular project I'm working on need to compile and store certain files. Since these files are very version specific of the gem, I thought about using datadir.
But, using RbConfig.datadir produces the following warning: irb(main):003:0> RbConfig.datadir("exerb") rbconfig/datadir.rb and {Rb}Config.datadir is being deprecated from RubyGems. It will be removed completely on or after June 2011. If you wish to rely on a datadir, please use Gem.datadir. => "C:/Users/Luis/Tools/Ruby/ruby-1.8.7-p334-i386-mingw32/share/exerb" And the path to "share" inside the installation of Ruby. However, usage of Gem.datadir produces something different: irb(main):005:0> gem "exerb" irb(main):005:0> Gem.datadir("exerb") => "C:/Users/Luis/.gem/ruby/x86-mingw32/1.8/gems/exerb-5.0.0-x86-mingw32/data/exerb" And I'm kinda confused... why the double directory? (exerb-version and again data/exerb)? Saying that just "data" seems enough to me. Then, seeing a comment on this line: https://github.com/rubygems/rubygems/blob/master/lib/rubygems.rb#L380 # TODO: deprecate Is not very inspiring... Is this required? anyone else using this that can provide further comments? Thank you. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers