rahmal/rconfig — Issue #1: rconfig doesn't work with activesupport > 3.0
Author: leifg
Created: 2012-02-20 15:20:44+00:00
State: open

I recently stumbled upon rconfig and I would like to using with my Sinatra app.

No problem so far, but adding rconfig to my Gemfile install activesupport 3.2.1 (because it's the latest version).

However when I require rconfig with that activesupport version I get the following error:

````require 'rconfig'
NameError: uninitialized constant PropertiesFileParser::Singleton
from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig/properties_file_parser.rb:24
from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig.rb:34:in `require'
from /home/leifg/code/tinyfruits/vendor/local/ruby/1.8/gems/rconfig-0.3.3/lib/rconfig.rb:34
from (irb):1:in `require'
from (irb):1````

I did a little testing and the latest version that works is activesupport 2.3.14 (latest 2.3 version).

Since 3.0+ requiring rconfig throws this error.

The workarount would be to add ````gem "activesupport" ,"<=2.3.14" ```` to the Gemfile.

It would be better though, to set the requirements in the rconfig.gemspec correctly (or even better, implement correct behaviour for activesupport >= 3.0