{"action":"opened","issue":{"url":"https://api.github.com/repos/jcmuller/figleaf/issues/12","repository_url":"https://api.github.com/repos/jcmuller/figleaf","labels_url":"https://api.github.com/repos/jcmuller/figleaf/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jcmuller/figleaf/issues/12/comments","events_url":"https://api.github.com/repos/jcmuller/figleaf/issues/12/events","html_url":"https://github.com/jcmuller/figleaf/issues/12","id":252966161,"number":12,"title":"Feature request: support a Ruby DSL","user":{"login":"agibralter","id":1079,"avatar_url":"https://avatars2.githubusercontent.com/u/1079?v=4","gravatar_id":"","url":"https://api.github.com/users/agibralter","html_url":"https://github.com/agibralter","followers_url":"https://api.github.com/users/agibralter/followers","following_url":"https://api.github.com/users/agibralter/following{/other_user}","gists_url":"https://api.github.com/users/agibralter/gists{/gist_id}","starred_url":"https://api.github.com/users/agibralter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agibralter/subscriptions","organizations_url":"https://api.github.com/users/agibralter/orgs","repos_url":"https://api.github.com/users/agibralter/repos","events_url":"https://api.github.com/users/agibralter/events{/privacy}","received_events_url":"https://api.github.com/users/agibralter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-25T17:17:46Z","updated_at":"2017-08-25T17:17:46Z","closed_at":null,"body":"How about something like this?\r\n\r\n```ruby\r\n# config/settings/foo.rb\r\n\r\nFigleaf::Settings.configure(:foo) do\r\n  default do\r\n    foo_enabled = true\r\n  end\r\n\r\n  env(:development) do\r\n    foo_enabled = false\r\n  end\r\nend\r\n\r\n# When RAILS_ENV = 'development'\r\nFigleaf::Settings.foo.foo_enabled? #=> false\r\n\r\n# When RAILS_ENV is any other value:\r\nFigleaf::Settings.foo.foo_enabled? #=> true\r\n```"}}
{"actor":{"display_login":"agibralter"}}