{"action":"created","issue":{"url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/90","repository_url":"https://api.github.com/repos/sous-chefs/line-cookbook","labels_url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/90/comments","events_url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/90/events","html_url":"https://github.com/sous-chefs/line-cookbook/issues/90","id":323384973,"number":90,"title":"append_if_no_line inserts a duplicate line if a line exists with a trailing whitespace","user":{"login":"jasonwbarnett","id":862300,"avatar_url":"https://avatars1.githubusercontent.com/u/862300?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonwbarnett","html_url":"https://github.com/jasonwbarnett","followers_url":"https://api.github.com/users/jasonwbarnett/followers","following_url":"https://api.github.com/users/jasonwbarnett/following{/other_user}","gists_url":"https://api.github.com/users/jasonwbarnett/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwbarnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwbarnett/subscriptions","organizations_url":"https://api.github.com/users/jasonwbarnett/orgs","repos_url":"https://api.github.com/users/jasonwbarnett/repos","events_url":"https://api.github.com/users/jasonwbarnett/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwbarnett/received_events","type":"User","site_admin":false},"labels":[{"id":718322440,"url":"https://api.github.com/repos/sous-chefs/line-cookbook/labels/Type:%20Feature%20Request","name":"Type: Feature Request","color":"86B7E9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-15T21:11:25Z","updated_at":"2018-05-16T17:41:48Z","closed_at":null,"author_association":"NONE","body":"Given the following resource:\r\n\r\n```\r\nappend_if_no_line 'my resource' do\r\n  path '/tmp/some_file'\r\n  line 'this is my line'\r\nend\r\n```\r\n\r\nIt will append the line, even if the file contains the following content (trailing whitespace):\r\n\r\n```\r\nthis is my line \r\n```"},"comment":{"url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/comments/389605131","html_url":"https://github.com/sous-chefs/line-cookbook/issues/90#issuecomment-389605131","issue_url":"https://api.github.com/repos/sous-chefs/line-cookbook/issues/90","id":389605131,"user":{"login":"jasonwbarnett","id":862300,"avatar_url":"https://avatars1.githubusercontent.com/u/862300?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonwbarnett","html_url":"https://github.com/jasonwbarnett","followers_url":"https://api.github.com/users/jasonwbarnett/followers","following_url":"https://api.github.com/users/jasonwbarnett/following{/other_user}","gists_url":"https://api.github.com/users/jasonwbarnett/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonwbarnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonwbarnett/subscriptions","organizations_url":"https://api.github.com/users/jasonwbarnett/orgs","repos_url":"https://api.github.com/users/jasonwbarnett/repos","events_url":"https://api.github.com/users/jasonwbarnett/events{/privacy}","received_events_url":"https://api.github.com/users/jasonwbarnett/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T17:41:48Z","updated_at":"2018-05-16T17:41:48Z","author_association":"NONE","body":"@MarkGibbons The current design comes across as treating them differently.\r\n\r\n1. The two receive different arguments (`String` vs `Regexp`)\r\n2. One converts a string to a `Regexp` and the other literally assumes the `Regexp` begins with `^` and ends with `$`\r\n\r\nI could see this being solved by either the pull I've already submitted or allowing someone to pass a `Regexp` directly, like the other resource."}}
{"actor":{"display_login":"jasonwbarnett"}}