I
Iñaki Baz Castillo
Hi, I've build a gem "mylib" which contains a file called "myfile.xml" unde=
r=20
"lib/mylib" dir. Let's imagine that depending on the environment it is stor=
ed=20
(after installed) in:
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.1/lib/mylib/myfile.xml
But of course there could be different versions of the gem:
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.0/lib/mylib/myfile.xml
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.1/lib/mylib/myfile.xml
Then I write a program which does:
require "mylib"
so the latest version (1.0.1) is loaded.
How would I get "myfile.xml" for the loaded "mylib" gem version? I'm lookin=
g=20
for a Gem class method like "Gem.bin_path(gemname)" but I cannot find it.
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
r=20
"lib/mylib" dir. Let's imagine that depending on the environment it is stor=
ed=20
(after installed) in:
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.1/lib/mylib/myfile.xml
But of course there could be different versions of the gem:
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.0/lib/mylib/myfile.xml
/usr/local/lib/ruby1.9/gems/1.9/gems/mylib-1.0.1/lib/mylib/myfile.xml
Then I write a program which does:
require "mylib"
so the latest version (1.0.1) is loaded.
How would I get "myfile.xml" for the loaded "mylib" gem version? I'm lookin=
g=20
for a Gem class method like "Gem.bin_path(gemname)" but I cannot find it.
Thanks a lot.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>