README.md in service_config-0.0.2 vs README.md in service_config-0.1.0
- old
+ new
@@ -1,6 +1,7 @@
# ServiceConfig
+![Gem version](https://badge.fury.io/rb/service_config.png)
Use this gem to expose environment variables to your code, with clear
defaults and error handling for when the environment variables are
unset.
@@ -23,9 +24,15 @@
config.provides :soundcloud_server, 'http://api.soundcloud.com/'
end
provider.internal_server # => 'http://localhost:3000/'
provider.soundcloud_server # => 'http://api.soundcloud.com/'
+
+Configure mandatory options individually
+
+ ServiceConfig::Provider.new(:raise_if_nil => false) do |config|
+ config.provides :some_key, 'default', :raise_if_nil => true
+ end
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)