{"action":"opened","number":30,"pull_request":{"url":"https://api.github.com/repos/arnau/ISO8601/pulls/30","id":50149816,"html_url":"https://github.com/arnau/ISO8601/pull/30","diff_url":"https://github.com/arnau/ISO8601/pull/30.diff","patch_url":"https://github.com/arnau/ISO8601/pull/30.patch","issue_url":"https://api.github.com/repos/arnau/ISO8601/issues/30","number":30,"state":"open","locked":false,"title":"Numeric operations with Duration Class","user":{"login":"Angelmmiguel","id":4056725,"avatar_url":"https://avatars.githubusercontent.com/u/4056725?v=3","gravatar_id":"","url":"https://api.github.com/users/Angelmmiguel","html_url":"https://github.com/Angelmmiguel","followers_url":"https://api.github.com/users/Angelmmiguel/followers","following_url":"https://api.github.com/users/Angelmmiguel/following{/other_user}","gists_url":"https://api.github.com/users/Angelmmiguel/gists{/gist_id}","starred_url":"https://api.github.com/users/Angelmmiguel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Angelmmiguel/subscriptions","organizations_url":"https://api.github.com/users/Angelmmiguel/orgs","repos_url":"https://api.github.com/users/Angelmmiguel/repos","events_url":"https://api.github.com/users/Angelmmiguel/events{/privacy}","received_events_url":"https://api.github.com/users/Angelmmiguel/received_events","type":"User","site_admin":false},"body":"With ISO8601::DateTime class you can do operations like these:\r\n\r\n```ruby\r\nhour = 60*60\r\ndt = ISO8601::DateTime.new('2014-05-28T19:53:10Z')\r\ndt + hour\r\n```\r\n\r\nWhen you use this gem with Rails, it's very useful to work with a Numeric class because ActiveSupport provides us with a lot of time helpers: `1.month`, `12.years`...\r\n\r\nI add Numeric operations feature to ISO8601::Duration class.","created_at":"2015-11-09T17:13:51Z","updated_at":"2015-11-09T17:13:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arnau/ISO8601/pulls/30/commits","review_comments_url":"https://api.github.com/repos/arnau/ISO8601/pulls/30/comments","review_comment_url":"https://api.github.com/repos/arnau/ISO8601/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arnau/ISO8601/issues/30/comments","statuses_url":"https://api.github.com/repos/arnau/ISO8601/statuses/b805459a9078f76a31829ea63f0948ddaa3de16a","head":{"label":"redBorder:feature/duration_operations","ref":"feature/duration_operations","sha":"b805459a9078f76a31829ea63f0948ddaa3de16a","user":{"login":"redBorder","id":2485743,"avatar_url":"https://avatars.githubusercontent.com/u/2485743?v=3","gravatar_id":"","url":"https://api.github.com/users/redBorder","html_url":"https://github.com/redBorder","followers_url":"https://api.github.com/users/redBorder/followers","following_url":"https://api.github.com/users/redBorder/following{/other_user}","gists_url":"https://api.github.com/users/redBorder/gists{/gist_id}","starred_url":"https://api.github.com/users/redBorder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redBorder/subscriptions","organizations_url":"https://api.github.com/users/redBorder/orgs","repos_url":"https://api.github.com/users/redBorder/repos","events_url":"https://api.github.com/users/redBorder/events{/privacy}","received_events_url":"https://api.github.com/users/redBorder/received_events","type":"Organization","site_admin":false},"repo":{"id":45849686,"name":"ISO8601","full_name":"redBorder/ISO8601","owner":{"login":"redBorder","id":2485743,"avatar_url":"https://avatars.githubusercontent.com/u/2485743?v=3","gravatar_id":"","url":"https://api.github.com/users/redBorder","html_url":"https://github.com/redBorder","followers_url":"https://api.github.com/users/redBorder/followers","following_url":"https://api.github.com/users/redBorder/following{/other_user}","gists_url":"https://api.github.com/users/redBorder/gists{/gist_id}","starred_url":"https://api.github.com/users/redBorder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redBorder/subscriptions","organizations_url":"https://api.github.com/users/redBorder/orgs","repos_url":"https://api.github.com/users/redBorder/repos","events_url":"https://api.github.com/users/redBorder/events{/privacy}","received_events_url":"https://api.github.com/users/redBorder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redBorder/ISO8601","description":"Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601","fork":true,"url":"https://api.github.com/repos/redBorder/ISO8601","forks_url":"https://api.github.com/repos/redBorder/ISO8601/forks","keys_url":"https://api.github.com/repos/redBorder/ISO8601/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redBorder/ISO8601/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redBorder/ISO8601/teams","hooks_url":"https://api.github.com/repos/redBorder/ISO8601/hooks","issue_events_url":"https://api.github.com/repos/redBorder/ISO8601/issues/events{/number}","events_url":"https://api.github.com/repos/redBorder/ISO8601/events","assignees_url":"https://api.github.com/repos/redBorder/ISO8601/assignees{/user}","branches_url":"https://api.github.com/repos/redBorder/ISO8601/branches{/branch}","tags_url":"https://api.github.com/repos/redBorder/ISO8601/tags","blobs_url":"https://api.github.com/repos/redBorder/ISO8601/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redBorder/ISO8601/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redBorder/ISO8601/git/refs{/sha}","trees_url":"https://api.github.com/repos/redBorder/ISO8601/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redBorder/ISO8601/statuses/{sha}","languages_url":"https://api.github.com/repos/redBorder/ISO8601/languages","stargazers_url":"https://api.github.com/repos/redBorder/ISO8601/stargazers","contributors_url":"https://api.github.com/repos/redBorder/ISO8601/contributors","subscribers_url":"https://api.github.com/repos/redBorder/ISO8601/subscribers","subscription_url":"https://api.github.com/repos/redBorder/ISO8601/subscription","commits_url":"https://api.github.com/repos/redBorder/ISO8601/commits{/sha}","git_commits_url":"https://api.github.com/repos/redBorder/ISO8601/git/commits{/sha}","comments_url":"https://api.github.com/repos/redBorder/ISO8601/comments{/number}","issue_comment_url":"https://api.github.com/repos/redBorder/ISO8601/issues/comments{/number}","contents_url":"https://api.github.com/repos/redBorder/ISO8601/contents/{+path}","compare_url":"https://api.github.com/repos/redBorder/ISO8601/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redBorder/ISO8601/merges","archive_url":"https://api.github.com/repos/redBorder/ISO8601/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redBorder/ISO8601/downloads","issues_url":"https://api.github.com/repos/redBorder/ISO8601/issues{/number}","pulls_url":"https://api.github.com/repos/redBorder/ISO8601/pulls{/number}","milestones_url":"https://api.github.com/repos/redBorder/ISO8601/milestones{/number}","notifications_url":"https://api.github.com/repos/redBorder/ISO8601/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redBorder/ISO8601/labels{/name}","releases_url":"https://api.github.com/repos/redBorder/ISO8601/releases{/id}","created_at":"2015-11-09T16:10:11Z","updated_at":"2015-11-09T16:10:12Z","pushed_at":"2015-11-09T17:13:43Z","git_url":"git://github.com/redBorder/ISO8601.git","ssh_url":"git@github.com:redBorder/ISO8601.git","clone_url":"https://github.com/redBorder/ISO8601.git","svn_url":"https://github.com/redBorder/ISO8601","homepage":"","size":341,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"arnau:master","ref":"master","sha":"1706a6b5aba26c934b60748313aab37bea7821b0","user":{"login":"arnau","id":33837,"avatar_url":"https://avatars.githubusercontent.com/u/33837?v=3","gravatar_id":"","url":"https://api.github.com/users/arnau","html_url":"https://github.com/arnau","followers_url":"https://api.github.com/users/arnau/followers","following_url":"https://api.github.com/users/arnau/following{/other_user}","gists_url":"https://api.github.com/users/arnau/gists{/gist_id}","starred_url":"https://api.github.com/users/arnau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnau/subscriptions","organizations_url":"https://api.github.com/users/arnau/orgs","repos_url":"https://api.github.com/users/arnau/repos","events_url":"https://api.github.com/users/arnau/events{/privacy}","received_events_url":"https://api.github.com/users/arnau/received_events","type":"User","site_admin":false},"repo":{"id":1651918,"name":"ISO8601","full_name":"arnau/ISO8601","owner":{"login":"arnau","id":33837,"avatar_url":"https://avatars.githubusercontent.com/u/33837?v=3","gravatar_id":"","url":"https://api.github.com/users/arnau","html_url":"https://github.com/arnau","followers_url":"https://api.github.com/users/arnau/followers","following_url":"https://api.github.com/users/arnau/following{/other_user}","gists_url":"https://api.github.com/users/arnau/gists{/gist_id}","starred_url":"https://api.github.com/users/arnau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnau/subscriptions","organizations_url":"https://api.github.com/users/arnau/orgs","repos_url":"https://api.github.com/users/arnau/repos","events_url":"https://api.github.com/users/arnau/events{/privacy}","received_events_url":"https://api.github.com/users/arnau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arnau/ISO8601","description":"Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601","fork":false,"url":"https://api.github.com/repos/arnau/ISO8601","forks_url":"https://api.github.com/repos/arnau/ISO8601/forks","keys_url":"https://api.github.com/repos/arnau/ISO8601/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arnau/ISO8601/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arnau/ISO8601/teams","hooks_url":"https://api.github.com/repos/arnau/ISO8601/hooks","issue_events_url":"https://api.github.com/repos/arnau/ISO8601/issues/events{/number}","events_url":"https://api.github.com/repos/arnau/ISO8601/events","assignees_url":"https://api.github.com/repos/arnau/ISO8601/assignees{/user}","branches_url":"https://api.github.com/repos/arnau/ISO8601/branches{/branch}","tags_url":"https://api.github.com/repos/arnau/ISO8601/tags","blobs_url":"https://api.github.com/repos/arnau/ISO8601/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arnau/ISO8601/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arnau/ISO8601/git/refs{/sha}","trees_url":"https://api.github.com/repos/arnau/ISO8601/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arnau/ISO8601/statuses/{sha}","languages_url":"https://api.github.com/repos/arnau/ISO8601/languages","stargazers_url":"https://api.github.com/repos/arnau/ISO8601/stargazers","contributors_url":"https://api.github.com/repos/arnau/ISO8601/contributors","subscribers_url":"https://api.github.com/repos/arnau/ISO8601/subscribers","subscription_url":"https://api.github.com/repos/arnau/ISO8601/subscription","commits_url":"https://api.github.com/repos/arnau/ISO8601/commits{/sha}","git_commits_url":"https://api.github.com/repos/arnau/ISO8601/git/commits{/sha}","comments_url":"https://api.github.com/repos/arnau/ISO8601/comments{/number}","issue_comment_url":"https://api.github.com/repos/arnau/ISO8601/issues/comments{/number}","contents_url":"https://api.github.com/repos/arnau/ISO8601/contents/{+path}","compare_url":"https://api.github.com/repos/arnau/ISO8601/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arnau/ISO8601/merges","archive_url":"https://api.github.com/repos/arnau/ISO8601/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arnau/ISO8601/downloads","issues_url":"https://api.github.com/repos/arnau/ISO8601/issues{/number}","pulls_url":"https://api.github.com/repos/arnau/ISO8601/pulls{/number}","milestones_url":"https://api.github.com/repos/arnau/ISO8601/milestones{/number}","notifications_url":"https://api.github.com/repos/arnau/ISO8601/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arnau/ISO8601/labels{/name}","releases_url":"https://api.github.com/repos/arnau/ISO8601/releases{/id}","created_at":"2011-04-22T23:34:55Z","updated_at":"2015-11-09T12:56:28Z","pushed_at":"2015-10-20T05:43:48Z","git_url":"git://github.com/arnau/ISO8601.git","ssh_url":"git@github.com:arnau/ISO8601.git","clone_url":"https://github.com/arnau/ISO8601.git","svn_url":"https://github.com/arnau/ISO8601","homepage":"","size":763,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":5,"forks":13,"open_issues":5,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arnau/ISO8601/pulls/30"},"html":{"href":"https://github.com/arnau/ISO8601/pull/30"},"issue":{"href":"https://api.github.com/repos/arnau/ISO8601/issues/30"},"comments":{"href":"https://api.github.com/repos/arnau/ISO8601/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/arnau/ISO8601/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/arnau/ISO8601/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arnau/ISO8601/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/arnau/ISO8601/statuses/b805459a9078f76a31829ea63f0948ddaa3de16a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":44,"deletions":9,"changed_files":3}}