{"action":"opened","number":93,"pull_request":{"url":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93","id":31422401,"html_url":"https://github.com/mattbeedle/capsule_crm/pull/93","diff_url":"https://github.com/mattbeedle/capsule_crm/pull/93.diff","patch_url":"https://github.com/mattbeedle/capsule_crm/pull/93.patch","issue_url":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/93","number":93,"state":"open","locked":false,"title":"Fix taggable tags","user":{"login":"yannvery","id":702506,"avatar_url":"https://avatars.githubusercontent.com/u/702506?v=3","gravatar_id":"","url":"https://api.github.com/users/yannvery","html_url":"https://github.com/yannvery","followers_url":"https://api.github.com/users/yannvery/followers","following_url":"https://api.github.com/users/yannvery/following{/other_user}","gists_url":"https://api.github.com/users/yannvery/gists{/gist_id}","starred_url":"https://api.github.com/users/yannvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannvery/subscriptions","organizations_url":"https://api.github.com/users/yannvery/orgs","repos_url":"https://api.github.com/users/yannvery/repos","events_url":"https://api.github.com/users/yannvery/events{/privacy}","received_events_url":"https://api.github.com/users/yannvery/received_events","type":"User","site_admin":false},"body":"I get the following when I send tags method to an object that has only one tag\r\n\r\nNoMethodError: Expected [\"id\", \"1248281\"] to respond to #to_hash\r\nfrom /Users/yvery/.rvm/gems/ruby-2.1.3/gems/virtus-1.0.4/lib/virtus/attribute_set.rb:196:in `coerce'\r\n\r\nCapsule's API does not return an Array when there is only one tag. I've use @size param returns by the API to transform the collection tags","created_at":"2015-03-18T12:03:22Z","updated_at":"2015-03-18T12:03:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93/commits","review_comments_url":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93/comments","review_comment_url":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/93/comments","statuses_url":"https://api.github.com/repos/mattbeedle/capsule_crm/statuses/7faf0c31dff61e0fde051ecadbdcaf16749d2e8f","head":{"label":"yannvery:fix-taggable-tags","ref":"fix-taggable-tags","sha":"7faf0c31dff61e0fde051ecadbdcaf16749d2e8f","user":{"login":"yannvery","id":702506,"avatar_url":"https://avatars.githubusercontent.com/u/702506?v=3","gravatar_id":"","url":"https://api.github.com/users/yannvery","html_url":"https://github.com/yannvery","followers_url":"https://api.github.com/users/yannvery/followers","following_url":"https://api.github.com/users/yannvery/following{/other_user}","gists_url":"https://api.github.com/users/yannvery/gists{/gist_id}","starred_url":"https://api.github.com/users/yannvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannvery/subscriptions","organizations_url":"https://api.github.com/users/yannvery/orgs","repos_url":"https://api.github.com/users/yannvery/repos","events_url":"https://api.github.com/users/yannvery/events{/privacy}","received_events_url":"https://api.github.com/users/yannvery/received_events","type":"User","site_admin":false},"repo":{"id":32453799,"name":"capsule_crm","full_name":"yannvery/capsule_crm","owner":{"login":"yannvery","id":702506,"avatar_url":"https://avatars.githubusercontent.com/u/702506?v=3","gravatar_id":"","url":"https://api.github.com/users/yannvery","html_url":"https://github.com/yannvery","followers_url":"https://api.github.com/users/yannvery/followers","following_url":"https://api.github.com/users/yannvery/following{/other_user}","gists_url":"https://api.github.com/users/yannvery/gists{/gist_id}","starred_url":"https://api.github.com/users/yannvery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannvery/subscriptions","organizations_url":"https://api.github.com/users/yannvery/orgs","repos_url":"https://api.github.com/users/yannvery/repos","events_url":"https://api.github.com/users/yannvery/events{/privacy}","received_events_url":"https://api.github.com/users/yannvery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yannvery/capsule_crm","description":"Ruby CapsuleCRM API consumer","fork":true,"url":"https://api.github.com/repos/yannvery/capsule_crm","forks_url":"https://api.github.com/repos/yannvery/capsule_crm/forks","keys_url":"https://api.github.com/repos/yannvery/capsule_crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yannvery/capsule_crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yannvery/capsule_crm/teams","hooks_url":"https://api.github.com/repos/yannvery/capsule_crm/hooks","issue_events_url":"https://api.github.com/repos/yannvery/capsule_crm/issues/events{/number}","events_url":"https://api.github.com/repos/yannvery/capsule_crm/events","assignees_url":"https://api.github.com/repos/yannvery/capsule_crm/assignees{/user}","branches_url":"https://api.github.com/repos/yannvery/capsule_crm/branches{/branch}","tags_url":"https://api.github.com/repos/yannvery/capsule_crm/tags","blobs_url":"https://api.github.com/repos/yannvery/capsule_crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yannvery/capsule_crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yannvery/capsule_crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/yannvery/capsule_crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yannvery/capsule_crm/statuses/{sha}","languages_url":"https://api.github.com/repos/yannvery/capsule_crm/languages","stargazers_url":"https://api.github.com/repos/yannvery/capsule_crm/stargazers","contributors_url":"https://api.github.com/repos/yannvery/capsule_crm/contributors","subscribers_url":"https://api.github.com/repos/yannvery/capsule_crm/subscribers","subscription_url":"https://api.github.com/repos/yannvery/capsule_crm/subscription","commits_url":"https://api.github.com/repos/yannvery/capsule_crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/yannvery/capsule_crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/yannvery/capsule_crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/yannvery/capsule_crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/yannvery/capsule_crm/contents/{+path}","compare_url":"https://api.github.com/repos/yannvery/capsule_crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yannvery/capsule_crm/merges","archive_url":"https://api.github.com/repos/yannvery/capsule_crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yannvery/capsule_crm/downloads","issues_url":"https://api.github.com/repos/yannvery/capsule_crm/issues{/number}","pulls_url":"https://api.github.com/repos/yannvery/capsule_crm/pulls{/number}","milestones_url":"https://api.github.com/repos/yannvery/capsule_crm/milestones{/number}","notifications_url":"https://api.github.com/repos/yannvery/capsule_crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yannvery/capsule_crm/labels{/name}","releases_url":"https://api.github.com/repos/yannvery/capsule_crm/releases{/id}","created_at":"2015-03-18T11:01:39Z","updated_at":"2015-03-18T11:01:40Z","pushed_at":"2015-03-18T11:55:41Z","git_url":"git://github.com/yannvery/capsule_crm.git","ssh_url":"git@github.com:yannvery/capsule_crm.git","clone_url":"https://github.com/yannvery/capsule_crm.git","svn_url":"https://github.com/yannvery/capsule_crm","homepage":null,"size":1391,"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":"mattbeedle:master","ref":"master","sha":"ee876a4ac1dc3ec717cd3d0c8c9418783694ec81","user":{"login":"mattbeedle","id":2170,"avatar_url":"https://avatars.githubusercontent.com/u/2170?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbeedle","html_url":"https://github.com/mattbeedle","followers_url":"https://api.github.com/users/mattbeedle/followers","following_url":"https://api.github.com/users/mattbeedle/following{/other_user}","gists_url":"https://api.github.com/users/mattbeedle/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbeedle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbeedle/subscriptions","organizations_url":"https://api.github.com/users/mattbeedle/orgs","repos_url":"https://api.github.com/users/mattbeedle/repos","events_url":"https://api.github.com/users/mattbeedle/events{/privacy}","received_events_url":"https://api.github.com/users/mattbeedle/received_events","type":"User","site_admin":false},"repo":{"id":9586456,"name":"capsule_crm","full_name":"mattbeedle/capsule_crm","owner":{"login":"mattbeedle","id":2170,"avatar_url":"https://avatars.githubusercontent.com/u/2170?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbeedle","html_url":"https://github.com/mattbeedle","followers_url":"https://api.github.com/users/mattbeedle/followers","following_url":"https://api.github.com/users/mattbeedle/following{/other_user}","gists_url":"https://api.github.com/users/mattbeedle/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbeedle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbeedle/subscriptions","organizations_url":"https://api.github.com/users/mattbeedle/orgs","repos_url":"https://api.github.com/users/mattbeedle/repos","events_url":"https://api.github.com/users/mattbeedle/events{/privacy}","received_events_url":"https://api.github.com/users/mattbeedle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattbeedle/capsule_crm","description":"Ruby CapsuleCRM API consumer","fork":false,"url":"https://api.github.com/repos/mattbeedle/capsule_crm","forks_url":"https://api.github.com/repos/mattbeedle/capsule_crm/forks","keys_url":"https://api.github.com/repos/mattbeedle/capsule_crm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattbeedle/capsule_crm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattbeedle/capsule_crm/teams","hooks_url":"https://api.github.com/repos/mattbeedle/capsule_crm/hooks","issue_events_url":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/events{/number}","events_url":"https://api.github.com/repos/mattbeedle/capsule_crm/events","assignees_url":"https://api.github.com/repos/mattbeedle/capsule_crm/assignees{/user}","branches_url":"https://api.github.com/repos/mattbeedle/capsule_crm/branches{/branch}","tags_url":"https://api.github.com/repos/mattbeedle/capsule_crm/tags","blobs_url":"https://api.github.com/repos/mattbeedle/capsule_crm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattbeedle/capsule_crm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattbeedle/capsule_crm/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattbeedle/capsule_crm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattbeedle/capsule_crm/statuses/{sha}","languages_url":"https://api.github.com/repos/mattbeedle/capsule_crm/languages","stargazers_url":"https://api.github.com/repos/mattbeedle/capsule_crm/stargazers","contributors_url":"https://api.github.com/repos/mattbeedle/capsule_crm/contributors","subscribers_url":"https://api.github.com/repos/mattbeedle/capsule_crm/subscribers","subscription_url":"https://api.github.com/repos/mattbeedle/capsule_crm/subscription","commits_url":"https://api.github.com/repos/mattbeedle/capsule_crm/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattbeedle/capsule_crm/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattbeedle/capsule_crm/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattbeedle/capsule_crm/contents/{+path}","compare_url":"https://api.github.com/repos/mattbeedle/capsule_crm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattbeedle/capsule_crm/merges","archive_url":"https://api.github.com/repos/mattbeedle/capsule_crm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattbeedle/capsule_crm/downloads","issues_url":"https://api.github.com/repos/mattbeedle/capsule_crm/issues{/number}","pulls_url":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls{/number}","milestones_url":"https://api.github.com/repos/mattbeedle/capsule_crm/milestones{/number}","notifications_url":"https://api.github.com/repos/mattbeedle/capsule_crm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattbeedle/capsule_crm/labels{/name}","releases_url":"https://api.github.com/repos/mattbeedle/capsule_crm/releases{/id}","created_at":"2013-04-21T22:02:58Z","updated_at":"2015-01-24T11:48:42Z","pushed_at":"2015-01-27T10:43:19Z","git_url":"git://github.com/mattbeedle/capsule_crm.git","ssh_url":"git@github.com:mattbeedle/capsule_crm.git","clone_url":"https://github.com/mattbeedle/capsule_crm.git","svn_url":"https://github.com/mattbeedle/capsule_crm","homepage":null,"size":1391,"stargazers_count":18,"watchers_count":18,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":11,"forks":14,"open_issues":11,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93"},"html":{"href":"https://github.com/mattbeedle/capsule_crm/pull/93"},"issue":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/93"},"comments":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/mattbeedle/capsule_crm/statuses/7faf0c31dff61e0fde051ecadbdcaf16749d2e8f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":26,"deletions":2,"changed_files":4}}