{"action":"closed","issue":{"url":"https://api.github.com/repos/dry-rb/dry-configurable/issues/13","repository_url":"https://api.github.com/repos/dry-rb/dry-configurable","labels_url":"https://api.github.com/repos/dry-rb/dry-configurable/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/dry-rb/dry-configurable/issues/13/comments","events_url":"https://api.github.com/repos/dry-rb/dry-configurable/issues/13/events","html_url":"https://github.com/dry-rb/dry-configurable/issues/13","id":174514389,"number":13,"title":"to_h method for config","user":{"login":"krisleech","id":66143,"avatar_url":"https://avatars.githubusercontent.com/u/66143?v=3","gravatar_id":"","url":"https://api.github.com/users/krisleech","html_url":"https://github.com/krisleech","followers_url":"https://api.github.com/users/krisleech/followers","following_url":"https://api.github.com/users/krisleech/following{/other_user}","gists_url":"https://api.github.com/users/krisleech/gists{/gist_id}","starred_url":"https://api.github.com/users/krisleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krisleech/subscriptions","organizations_url":"https://api.github.com/users/krisleech/orgs","repos_url":"https://api.github.com/users/krisleech/repos","events_url":"https://api.github.com/users/krisleech/events{/privacy}","received_events_url":"https://api.github.com/users/krisleech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-01T12:48:40Z","updated_at":"2016-09-05T14:46:06Z","closed_at":"2016-09-05T14:46:06Z","body":"Would you be open to a PR to add a `to_h` method to [config](https://github.com/dry-rb/dry-configurable/blob/master/lib/dry/configurable/config.rb#L20) allowing:\r\n\r\n```ruby\r\nApp.configure do |config|\r\n  config.database.dsn = 'jdbc:sqlite:memory'\r\nend\r\n\r\nApp.config.to_h # => { dsn: 'jdbc:sqlite:memory' }\r\n```\r\n\r\nThis would allow me to output all the configuration to the display without having to know all the keys.\r\n\r\nBy the way I could swear this used to be possible in an earlier version :)\r\n\r\nEDIT: I think an earlier version might have used `Struct` which provided the `to_h` method."}}
{"actor":{"display_login":"AMHOL"}}