Empact/roxml — pull request #43 by jarib (2012-02-10 11:19:49+00:00)
Title: Fix reading of VERSION file

If the cwd is not the directory root, the latest release bombs with this error:

```
/Users/fijabakk/src/git/roxml/lib/roxml.rb:18:in `read': No such file or directory - VERSION (Errno::ENOENT)
from /Users/fijabakk/src/git/roxml/lib/roxml.rb:18:in `'
from /Users/fijabakk/src/git/roxml/lib/roxml.rb:16:in `'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/init.rb:281:in `block in load_modules'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/init.rb:279:in `each'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/init.rb:279:in `load_modules'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/init.rb:20:in `setup'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb.rb:53:in `start'
from /Users/fijabakk/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `

'
```

This patch fixes the problem by reading the VERSION file relative to the current file.