Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source does not accept multiple filenames #35

Open
bodaro opened this issue Jul 25, 2012 · 1 comment
Open

source does not accept multiple filenames #35

bodaro opened this issue Jul 25, 2012 · 1 comment

Comments

@bodaro
Copy link

bodaro commented Jul 25, 2012

From the readme.rdoc:

If multiple files are passed on the source line, comma-separated, they will be loaded in order, with settings in later files overriding any existing keys. This allows you to, for instance, maintain a global settings file in source control, while allowing each developer to override individual settings as needed. Files that are specified but which do not exist will simply be ignored. Thus you can safely do the following without requiring the presence of application_local.yml:

class Settings < Settingslogic
source "#{Rails.root}/config/application.yml", "#{Rails.root}/config/application_local.yml"
namespace Rails.env
end

And yet when I pass 2 args I get this error:
/Users/mpapper/.rvm/gems/ruby-1.9.2-p290@dfc-site/gems/settingslogic-2.0.8/lib/settingslogic.rb:23:in source': wrong number of arguments (2 for 1) (ArgumentError) from /Users/mpapper/work/devforce/dfc-site/vendor/engines/dfc-base/lib/cfg.rb:17:inclass:Cfg'

Heres my line 17:
base_source = "siome filename"
app_source = "some other filename"
source base_source, app_source

My Gemfile.lock shows settingslogic (2.0.8)

Also, I tries this git here: https://gist.github.com/1462080 but insyance.deep_merge! is not supported.

@bodaro
Copy link
Author

bodaro commented Jul 29, 2012

any updates for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant