From: Chris Hulan Date: 2013-02-08T21:21:48+09:00 Subject: Re: RubyGems load path --089e013a279c6bcd4f04d53592fd Content-Type: text/plain; charset=ISO-8859-1 You say image.jpg is the file But the error shows images.jpg Delete the s On Feb 8, 2013 2:55 AM, "Ebru Akagunduz" wrote: > Rodrigo Kochenburger wrote in post #751168: > > On Nov 20, 1:23 am, Luis Lavena wrote: > >> > >> ENV['GEM_PATH'] = File.join(Dir.pwd, 'gems') > >> puts Gem.dir > >> puts Gem.path > >> > >> Now you can do your show adding or removing gems from there ;-) > >> > >> HTH, > >> -- > >> Luis Lavena > > > > Sweet! Thanks :) > > Hi, i have problem ruby load path. I couldn't load image file in my > codes. Why? My project file tree is > lib/editor.rb > lib/images/image.jpg > lib/lang.rb > lib/messages.rb > lib/utils.rb > myproject.gemspec > and image.jpg is neccesary in my code. But i couldn't add :( why? It > gives me error > GLib::FileError: Failed to open file 'images/images.jpg': No such file > or directory > from > /var/lib/gems/1.9.1/gems/MyPorject-1.0.0/lib/editor.rb:21:in `set_icon' > And my project gemspec like this > s.files = ['lib/editor.rb', 'lib/utils.rb', 'lib/messages.rb', > 'lib/lang.rb','lib/images/images.jpg] > s.require_paths = ["lib"] > > -- > Posted via http://www.ruby-forum.com/. > --089e013a279c6bcd4f04d53592fd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

You say image.jpg is the file
But the error shows images.jpg
Delete the s

On Feb 8, 2013 2:55 AM, "Ebru Akagunduz&quo= t; <lists@ruby-forum.com>= wrote:
Rodrigo Kochenburger wrote in post #751168:
> On Nov 20, 1:23=A0am, Luis Lavena <luislav...@gmail.com> wrote:
>>
>> ENV['GEM_PATH'] =3D File.join(Dir.pwd, 'gems')
>> puts Gem.dir
>> puts Gem.path
>>
>> Now you can do your show adding or removing gems from there ;-) >>
>> HTH,
>> --
>> Luis Lavena
>
> Sweet! Thanks :)

Hi, i have problem ruby load path. I couldn't load image file in my
codes. Why? My project file tree is
lib/editor.rb
lib/images/image.jpg
lib/lang.rb
lib/messages.rb
lib/utils.rb
myproject.gemspec
=A0and image.jpg is neccesary in my code. But i couldn't add :( why? It=
gives me error
GLib::FileError: Failed to open file 'images/images.jpg': No such f= ile
or directory
=A0 =A0 =A0 =A0 from
/var/lib/gems/1.9.1/gems/MyPorject-1.0.0/lib/editor.rb:21:in `set_icon'=
And my project gemspec like this
s.files =3D ['lib/editor.rb', 'lib/utils.rb', 'lib/mess= ages.rb',
'lib/lang.rb','lib/images/images.jpg]
s.require_paths =3D ["lib"]

--
Posted via http://= www.ruby-forum.com/.
--089e013a279c6bcd4f04d53592fd--