From: Thomas Leitner Date: 2004-11-25T02:18:00+09:00 Subject: Re: [ANN] xmlresume2x 0.1.0 On Wed, 24 Nov 2004 21:00:07 +0900 Mauricio Fern�ndez wrote: | [...] | | description <<-EOF | Converts an XML resume to various output formats. | | xmlresume2x can convert CVs written in the XML R�sum� | Library format (http://xmlresume.sourceforge.net), based | on the 'standard' European Curriculum Vitae format at | http://www.cedefop.eu.int/transparency/cv.asp, to a number | of formats, including LaTeX markup which uses the europecv | (http://www.ctan.org/tex-archive/help/Catalogue/entries/europecv.html) | class. | EOF | end | | | Is the description OK? It's basically okay, but the XML R�sum� Library format is not based on the European Curriculum Vitate format. The former is an XML format defined by individuals and the latter a document defined by the European Union. So the description should be: ----------- xmlresume2x can convert CVs written in the XML R�sum� Library format (http://xmlresume.sourceforge.net) to a number of formats, including LaTeX markup which uses the europecv (http://www.ctan.org/tex-archive/help/Catalogue/entries/europecv.html) class which is based on the 'standard' European Curriculum Vitae format at http://www.cedefop.eu.int/transparency/cv.asp. ----------- | > It seems as if RubyGems do not support data dirs (/usr/share/...), | >therefore there is no RubyGem file for xmlresume2x available. If | >someone could point me at the right documentation on how to install | >files to the data directory with RubyGems, it would be great! | | It is not possible to install under the standard datadir with | RubyGems, by design. You'd have to change your code for RubyGems, | using something like | | if defined?(Gem::Cache) | gempath = Gem::Cache.from_installed_gems.search("xmlresume2x", | "=#{MYVERSION}").last.full_gem_path | datapath = File.join(gempath, "data") | else | datapath = File.join(Config::CONFIG["datadir"], "xmlresume2x") | end | | in addition to the 'standard' | | # try the one in site_lib first | begin | require 'otherlibstuff' | rescue LoadError | raise if $".include "rubygems.rb" | require 'rubygems' | retry | end | | or | | # try the RubyGems version first. | begin | require 'rubygems' | rescue LoadError | end | require 'otherlibstuff' | Thanks for that information, I will try to add this to xmlresume2x and I'll change the generator for the RPA'fied install.rb to include your changes! Thomas Leitner