{"action":"created","issue":{"url":"https://api.github.com/repos/fiznool/sugar-date/issues/1","labels_url":"https://api.github.com/repos/fiznool/sugar-date/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fiznool/sugar-date/issues/1/comments","events_url":"https://api.github.com/repos/fiznool/sugar-date/issues/1/events","html_url":"https://github.com/fiznool/sugar-date/issues/1","id":56803919,"number":1,"title":"Has no support for Date.range methods","user":{"login":"davestone","id":31216,"avatar_url":"https://avatars.githubusercontent.com/u/31216?v=3","gravatar_id":"","url":"https://api.github.com/users/davestone","html_url":"https://github.com/davestone","followers_url":"https://api.github.com/users/davestone/followers","following_url":"https://api.github.com/users/davestone/following{/other_user}","gists_url":"https://api.github.com/users/davestone/gists{/gist_id}","starred_url":"https://api.github.com/users/davestone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davestone/subscriptions","organizations_url":"https://api.github.com/users/davestone/orgs","repos_url":"https://api.github.com/users/davestone/repos","events_url":"https://api.github.com/users/davestone/events{/privacy}","received_events_url":"https://api.github.com/users/davestone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-06T12:01:47Z","updated_at":"2015-02-06T12:17:33Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/fiznool/sugar-date/issues/comments/73228427","html_url":"https://github.com/fiznool/sugar-date/issues/1#issuecomment-73228427","issue_url":"https://api.github.com/repos/fiznool/sugar-date/issues/1","id":73228427,"user":{"login":"fiznool","id":820863,"avatar_url":"https://avatars.githubusercontent.com/u/820863?v=3","gravatar_id":"","url":"https://api.github.com/users/fiznool","html_url":"https://github.com/fiznool","followers_url":"https://api.github.com/users/fiznool/followers","following_url":"https://api.github.com/users/fiznool/following{/other_user}","gists_url":"https://api.github.com/users/fiznool/gists{/gist_id}","starred_url":"https://api.github.com/users/fiznool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fiznool/subscriptions","organizations_url":"https://api.github.com/users/fiznool/orgs","repos_url":"https://api.github.com/users/fiznool/repos","events_url":"https://api.github.com/users/fiznool/events{/privacy}","received_events_url":"https://api.github.com/users/fiznool/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T12:17:33Z","updated_at":"2015-02-06T12:17:33Z","body":"Thanks for the bug report.\r\n\r\nI'm a bit uneasy at including support for this, since with the range methods, [its an 'all-or-nothing' approach](https://github.com/andrewplummer/Sugar/blob/master/lib/range.js#L343): you either need to add `.range()` to all of `Date`, `Number` and `String`, or none of them.\r\n\r\nThe goals of this library are twofold:\r\n\r\n1. Provide just the `Date` extensions from the sugar library, keeping all other prototypes (including `Number` and `String`) intact.\r\n2. Don't modify any of the upstream code - merely package up the modules in such a way that only the `Date` extensions are included.\r\n\r\nIn order to fulfil 1), I'd need to violate 2) - i.e. pull out the code in the original `range.js` file that adds the `.range()` method to the `Number` and `String` prototypes.\r\n\r\nIf there is sufficient interest I can look at doing this. In the meantime, I'll add a note in the README that the `range()` methods are not supported."}}