{"action":"created","comment":{"url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/comments/29181901","id":29181901,"diff_hunk":"@@ -143,12 +150,12 @@\n metric_configuration = MetricConfiguration.create(metric_snapshot_id: metric_snapshot.id, weight: 3.0, aggregation_form: \"AVERAGE\", reading_group_id: reading_group.id, kalibro_configuration_id: ruby_configuration.id)\n \n KalibroRange.create([\n-  { beginning: 0, end: 10, comments: \"\", reading_id: readings.last.id, metric_configuration_id: metric_configuration.id },\n-  { beginning: 10, end: 20, comments: \"\", reading_id: readings[-3].id, metric_configuration_id: metric_configuration.id },\n-  { beginning: 20, end: 40, comments: \"\", reading_id: readings[-4].id, metric_configuration_id: metric_configuration.id },\n-  { beginning: 40, end: 60, comments: \"\", reading_id: readings[-5].id, metric_configuration_id: metric_configuration.id },\n-  { beginning: 60, end: 100, comments: \"\", reading_id: readings[-7].id, metric_configuration_id: metric_configuration.id },\n-  { beginning: 100, end: Float::INFINITY, comments: \"\", reading_id: readings[-9].id, metric_configuration_id: metric_configuration.id }\n+  { beginning: 0, end: 10, comments: \"\", reading_id: excellent, metric_configuration_id: metric_configuration.id },\n+  { beginning: 10, end: 20, comments: \"\", reading_id: good, metric_configuration_id: metric_configuration.id },\n+  { beginning: 20, end: 40, comments: \"\", reading_id: satisfactory, metric_configuration_id: metric_configuration.id },\n+  { beginning: 40, end: 60, comments: \"\", reading_id: regular, metric_configuration_id: metric_configuration.id },\n+  { beginning: 60, end: 100, comments: \"\", reading_id: worrying, metric_configuration_id: metric_configuration.id },\n+  { beginning: 100, end: Float::INFINITY, comments: \"\", reading_id: terrible, metric_configuration_id: metric_configuration.id }\n ])\n ","path":"db/seeds.rb","position":151,"original_position":151,"commit_id":"146fee14b8e37334f191c53987843295bf99467d","original_commit_id":"146fee14b8e37334f191c53987843295bf99467d","user":{"login":"diegoamc","id":1068750,"avatar_url":"https://avatars.githubusercontent.com/u/1068750?v=3","gravatar_id":"","url":"https://api.github.com/users/diegoamc","html_url":"https://github.com/diegoamc","followers_url":"https://api.github.com/users/diegoamc/followers","following_url":"https://api.github.com/users/diegoamc/following{/other_user}","gists_url":"https://api.github.com/users/diegoamc/gists{/gist_id}","starred_url":"https://api.github.com/users/diegoamc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegoamc/subscriptions","organizations_url":"https://api.github.com/users/diegoamc/orgs","repos_url":"https://api.github.com/users/diegoamc/repos","events_url":"https://api.github.com/users/diegoamc/events{/privacy}","received_events_url":"https://api.github.com/users/diegoamc/received_events","type":"User","site_admin":false},"body":"Can't we extract all those lines for creating instances to new methods?","created_at":"2015-04-27T19:31:17Z","updated_at":"2015-04-27T19:31:17Z","html_url":"https://github.com/mezuro/kalibro_configurations/pull/37#discussion_r29181901","pull_request_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/comments/29181901"},"html":{"href":"https://github.com/mezuro/kalibro_configurations/pull/37#discussion_r29181901"},"pull_request":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37","id":34199520,"html_url":"https://github.com/mezuro/kalibro_configurations/pull/37","diff_url":"https://github.com/mezuro/kalibro_configurations/pull/37.diff","patch_url":"https://github.com/mezuro/kalibro_configurations/pull/37.patch","issue_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/37","number":37,"state":"open","locked":false,"title":"Seed refactoring","user":{"login":"marcheing","id":3809970,"avatar_url":"https://avatars.githubusercontent.com/u/3809970?v=3","gravatar_id":"","url":"https://api.github.com/users/marcheing","html_url":"https://github.com/marcheing","followers_url":"https://api.github.com/users/marcheing/followers","following_url":"https://api.github.com/users/marcheing/following{/other_user}","gists_url":"https://api.github.com/users/marcheing/gists{/gist_id}","starred_url":"https://api.github.com/users/marcheing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcheing/subscriptions","organizations_url":"https://api.github.com/users/marcheing/orgs","repos_url":"https://api.github.com/users/marcheing/repos","events_url":"https://api.github.com/users/marcheing/events{/privacy}","received_events_url":"https://api.github.com/users/marcheing/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-27T19:05:00Z","updated_at":"2015-04-27T19:31:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e51fa68f42976bf885df9c71a368046076e60c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37/commits","review_comments_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37/comments","review_comment_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/37/comments","statuses_url":"https://api.github.com/repos/mezuro/kalibro_configurations/statuses/146fee14b8e37334f191c53987843295bf99467d","head":{"label":"mezuro:seed_refactoring","ref":"seed_refactoring","sha":"146fee14b8e37334f191c53987843295bf99467d","user":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"repo":{"id":25267447,"name":"kalibro_configurations","full_name":"mezuro/kalibro_configurations","owner":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mezuro/kalibro_configurations","description":"Web service for managing code analysis configurations","fork":false,"url":"https://api.github.com/repos/mezuro/kalibro_configurations","forks_url":"https://api.github.com/repos/mezuro/kalibro_configurations/forks","keys_url":"https://api.github.com/repos/mezuro/kalibro_configurations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mezuro/kalibro_configurations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mezuro/kalibro_configurations/teams","hooks_url":"https://api.github.com/repos/mezuro/kalibro_configurations/hooks","issue_events_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/events{/number}","events_url":"https://api.github.com/repos/mezuro/kalibro_configurations/events","assignees_url":"https://api.github.com/repos/mezuro/kalibro_configurations/assignees{/user}","branches_url":"https://api.github.com/repos/mezuro/kalibro_configurations/branches{/branch}","tags_url":"https://api.github.com/repos/mezuro/kalibro_configurations/tags","blobs_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/refs{/sha}","trees_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mezuro/kalibro_configurations/statuses/{sha}","languages_url":"https://api.github.com/repos/mezuro/kalibro_configurations/languages","stargazers_url":"https://api.github.com/repos/mezuro/kalibro_configurations/stargazers","contributors_url":"https://api.github.com/repos/mezuro/kalibro_configurations/contributors","subscribers_url":"https://api.github.com/repos/mezuro/kalibro_configurations/subscribers","subscription_url":"https://api.github.com/repos/mezuro/kalibro_configurations/subscription","commits_url":"https://api.github.com/repos/mezuro/kalibro_configurations/commits{/sha}","git_commits_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/commits{/sha}","comments_url":"https://api.github.com/repos/mezuro/kalibro_configurations/comments{/number}","issue_comment_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/comments{/number}","contents_url":"https://api.github.com/repos/mezuro/kalibro_configurations/contents/{+path}","compare_url":"https://api.github.com/repos/mezuro/kalibro_configurations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mezuro/kalibro_configurations/merges","archive_url":"https://api.github.com/repos/mezuro/kalibro_configurations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mezuro/kalibro_configurations/downloads","issues_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues{/number}","pulls_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls{/number}","milestones_url":"https://api.github.com/repos/mezuro/kalibro_configurations/milestones{/number}","notifications_url":"https://api.github.com/repos/mezuro/kalibro_configurations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mezuro/kalibro_configurations/labels{/name}","releases_url":"https://api.github.com/repos/mezuro/kalibro_configurations/releases{/id}","created_at":"2014-10-15T18:20:22Z","updated_at":"2015-04-24T12:46:52Z","pushed_at":"2015-04-27T19:10:44Z","git_url":"git://github.com/mezuro/kalibro_configurations.git","ssh_url":"git@github.com:mezuro/kalibro_configurations.git","clone_url":"https://github.com/mezuro/kalibro_configurations.git","svn_url":"https://github.com/mezuro/kalibro_configurations","homepage":null,"size":1134,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"mezuro:master","ref":"master","sha":"82e5ff29ca4fd74bba611b7675d23b92094ddfab","user":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"repo":{"id":25267447,"name":"kalibro_configurations","full_name":"mezuro/kalibro_configurations","owner":{"login":"mezuro","id":4100201,"avatar_url":"https://avatars.githubusercontent.com/u/4100201?v=3","gravatar_id":"","url":"https://api.github.com/users/mezuro","html_url":"https://github.com/mezuro","followers_url":"https://api.github.com/users/mezuro/followers","following_url":"https://api.github.com/users/mezuro/following{/other_user}","gists_url":"https://api.github.com/users/mezuro/gists{/gist_id}","starred_url":"https://api.github.com/users/mezuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezuro/subscriptions","organizations_url":"https://api.github.com/users/mezuro/orgs","repos_url":"https://api.github.com/users/mezuro/repos","events_url":"https://api.github.com/users/mezuro/events{/privacy}","received_events_url":"https://api.github.com/users/mezuro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mezuro/kalibro_configurations","description":"Web service for managing code analysis configurations","fork":false,"url":"https://api.github.com/repos/mezuro/kalibro_configurations","forks_url":"https://api.github.com/repos/mezuro/kalibro_configurations/forks","keys_url":"https://api.github.com/repos/mezuro/kalibro_configurations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mezuro/kalibro_configurations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mezuro/kalibro_configurations/teams","hooks_url":"https://api.github.com/repos/mezuro/kalibro_configurations/hooks","issue_events_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/events{/number}","events_url":"https://api.github.com/repos/mezuro/kalibro_configurations/events","assignees_url":"https://api.github.com/repos/mezuro/kalibro_configurations/assignees{/user}","branches_url":"https://api.github.com/repos/mezuro/kalibro_configurations/branches{/branch}","tags_url":"https://api.github.com/repos/mezuro/kalibro_configurations/tags","blobs_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/refs{/sha}","trees_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mezuro/kalibro_configurations/statuses/{sha}","languages_url":"https://api.github.com/repos/mezuro/kalibro_configurations/languages","stargazers_url":"https://api.github.com/repos/mezuro/kalibro_configurations/stargazers","contributors_url":"https://api.github.com/repos/mezuro/kalibro_configurations/contributors","subscribers_url":"https://api.github.com/repos/mezuro/kalibro_configurations/subscribers","subscription_url":"https://api.github.com/repos/mezuro/kalibro_configurations/subscription","commits_url":"https://api.github.com/repos/mezuro/kalibro_configurations/commits{/sha}","git_commits_url":"https://api.github.com/repos/mezuro/kalibro_configurations/git/commits{/sha}","comments_url":"https://api.github.com/repos/mezuro/kalibro_configurations/comments{/number}","issue_comment_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/comments{/number}","contents_url":"https://api.github.com/repos/mezuro/kalibro_configurations/contents/{+path}","compare_url":"https://api.github.com/repos/mezuro/kalibro_configurations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mezuro/kalibro_configurations/merges","archive_url":"https://api.github.com/repos/mezuro/kalibro_configurations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mezuro/kalibro_configurations/downloads","issues_url":"https://api.github.com/repos/mezuro/kalibro_configurations/issues{/number}","pulls_url":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls{/number}","milestones_url":"https://api.github.com/repos/mezuro/kalibro_configurations/milestones{/number}","notifications_url":"https://api.github.com/repos/mezuro/kalibro_configurations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mezuro/kalibro_configurations/labels{/name}","releases_url":"https://api.github.com/repos/mezuro/kalibro_configurations/releases{/id}","created_at":"2014-10-15T18:20:22Z","updated_at":"2015-04-24T12:46:52Z","pushed_at":"2015-04-27T19:10:44Z","git_url":"git://github.com/mezuro/kalibro_configurations.git","ssh_url":"git@github.com:mezuro/kalibro_configurations.git","clone_url":"https://github.com/mezuro/kalibro_configurations.git","svn_url":"https://github.com/mezuro/kalibro_configurations","homepage":null,"size":1134,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37"},"html":{"href":"https://github.com/mezuro/kalibro_configurations/pull/37"},"issue":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/37"},"comments":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/mezuro/kalibro_configurations/statuses/146fee14b8e37334f191c53987843295bf99467d"}}}}