{"action":"created","comment":{"url":"https://api.github.com/repos/ufacode/wenternet/pulls/comments/25840612","id":25840612,"diff_hunk":"@@ -1,31 +1,32 @@\n-# This file should contain all the record creation needed to seed the database with its default values.\n-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).\n-#\n-# Examples:\n-#\n-#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])\n-#   Mayor.create(name: 'Emanuel', city: cities.first)\n \n+def translite(str)\n+  Russian::translit(str).downcase.gsub(/\\W+/, '-')\n+end\n+\n+cities = [[\"Уфа\",\"ufa\"], [\"Стерлитамак\",\"sterlitamak\"], [\"Казань\",\"kazan\"], [\"Москва\",\"moscow\"]]\n City.delete_all\n-2.times { City.create(name: Faker::Address.city, uri: Faker::Lorem.word) }\n+cities.each { |city| City.create(name: city[0], uri: city[1]) }\n cities = City.all\n \n+categories = [\n+    [\"Авто и мото\", [\"Продажа\", \"Покупка\", \"Сервис\", \"Услуги\", \"Другое\"]],\n+    [\"Недвижимость\", [\"Продажа\", \"Покупка\", \"Ипотека\", \"Сервис\", \"Услуги\", \"Другое\"]],\n+    [\"Компьютерная техника\", [\"Продажа\", \"Покупка\", \"Сервис\", \"Услуги\", \"Другое\"]],","path":"db/seeds.rb","position":22,"original_position":22,"commit_id":"8429f4c0e04dfc121722a3bbd4678760ac9360fd","original_commit_id":"8429f4c0e04dfc121722a3bbd4678760ac9360fd","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [83/80]","created_at":"2015-03-05T05:34:31Z","updated_at":"2015-03-05T05:34:31Z","html_url":"https://github.com/ufacode/wenternet/pull/15#discussion_r25840612","pull_request_url":"https://api.github.com/repos/ufacode/wenternet/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/comments/25840612"},"html":{"href":"https://github.com/ufacode/wenternet/pull/15#discussion_r25840612"},"pull_request":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/ufacode/wenternet/pulls/15","id":30531522,"html_url":"https://github.com/ufacode/wenternet/pull/15","diff_url":"https://github.com/ufacode/wenternet/pull/15.diff","patch_url":"https://github.com/ufacode/wenternet/pull/15.patch","issue_url":"https://api.github.com/repos/ufacode/wenternet/issues/15","number":15,"state":"open","locked":false,"title":"seeds looks more for human now","user":{"login":"mpakus","id":312477,"avatar_url":"https://avatars.githubusercontent.com/u/312477?v=3","gravatar_id":"","url":"https://api.github.com/users/mpakus","html_url":"https://github.com/mpakus","followers_url":"https://api.github.com/users/mpakus/followers","following_url":"https://api.github.com/users/mpakus/following{/other_user}","gists_url":"https://api.github.com/users/mpakus/gists{/gist_id}","starred_url":"https://api.github.com/users/mpakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpakus/subscriptions","organizations_url":"https://api.github.com/users/mpakus/orgs","repos_url":"https://api.github.com/users/mpakus/repos","events_url":"https://api.github.com/users/mpakus/events{/privacy}","received_events_url":"https://api.github.com/users/mpakus/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-05T05:34:26Z","updated_at":"2015-03-05T05:34:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b7405a58d105c21ea95f031b7bdce7137ab0949","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ufacode/wenternet/pulls/15/commits","review_comments_url":"https://api.github.com/repos/ufacode/wenternet/pulls/15/comments","review_comment_url":"https://api.github.com/repos/ufacode/wenternet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ufacode/wenternet/issues/15/comments","statuses_url":"https://api.github.com/repos/ufacode/wenternet/statuses/8429f4c0e04dfc121722a3bbd4678760ac9360fd","head":{"label":"ufacode:refactoring_seeds","ref":"refactoring_seeds","sha":"8429f4c0e04dfc121722a3bbd4678760ac9360fd","user":{"login":"ufacode","id":6215508,"avatar_url":"https://avatars.githubusercontent.com/u/6215508?v=3","gravatar_id":"","url":"https://api.github.com/users/ufacode","html_url":"https://github.com/ufacode","followers_url":"https://api.github.com/users/ufacode/followers","following_url":"https://api.github.com/users/ufacode/following{/other_user}","gists_url":"https://api.github.com/users/ufacode/gists{/gist_id}","starred_url":"https://api.github.com/users/ufacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufacode/subscriptions","organizations_url":"https://api.github.com/users/ufacode/orgs","repos_url":"https://api.github.com/users/ufacode/repos","events_url":"https://api.github.com/users/ufacode/events{/privacy}","received_events_url":"https://api.github.com/users/ufacode/received_events","type":"Organization","site_admin":false},"repo":{"id":30639770,"name":"wenternet","full_name":"ufacode/wenternet","owner":{"login":"ufacode","id":6215508,"avatar_url":"https://avatars.githubusercontent.com/u/6215508?v=3","gravatar_id":"","url":"https://api.github.com/users/ufacode","html_url":"https://github.com/ufacode","followers_url":"https://api.github.com/users/ufacode/followers","following_url":"https://api.github.com/users/ufacode/following{/other_user}","gists_url":"https://api.github.com/users/ufacode/gists{/gist_id}","starred_url":"https://api.github.com/users/ufacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufacode/subscriptions","organizations_url":"https://api.github.com/users/ufacode/orgs","repos_url":"https://api.github.com/users/ufacode/repos","events_url":"https://api.github.com/users/ufacode/events{/privacy}","received_events_url":"https://api.github.com/users/ufacode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ufacode/wenternet","description":"wenternet - открытая социальная доска объявлений","fork":false,"url":"https://api.github.com/repos/ufacode/wenternet","forks_url":"https://api.github.com/repos/ufacode/wenternet/forks","keys_url":"https://api.github.com/repos/ufacode/wenternet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ufacode/wenternet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ufacode/wenternet/teams","hooks_url":"https://api.github.com/repos/ufacode/wenternet/hooks","issue_events_url":"https://api.github.com/repos/ufacode/wenternet/issues/events{/number}","events_url":"https://api.github.com/repos/ufacode/wenternet/events","assignees_url":"https://api.github.com/repos/ufacode/wenternet/assignees{/user}","branches_url":"https://api.github.com/repos/ufacode/wenternet/branches{/branch}","tags_url":"https://api.github.com/repos/ufacode/wenternet/tags","blobs_url":"https://api.github.com/repos/ufacode/wenternet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ufacode/wenternet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ufacode/wenternet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ufacode/wenternet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ufacode/wenternet/statuses/{sha}","languages_url":"https://api.github.com/repos/ufacode/wenternet/languages","stargazers_url":"https://api.github.com/repos/ufacode/wenternet/stargazers","contributors_url":"https://api.github.com/repos/ufacode/wenternet/contributors","subscribers_url":"https://api.github.com/repos/ufacode/wenternet/subscribers","subscription_url":"https://api.github.com/repos/ufacode/wenternet/subscription","commits_url":"https://api.github.com/repos/ufacode/wenternet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ufacode/wenternet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ufacode/wenternet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ufacode/wenternet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ufacode/wenternet/contents/{+path}","compare_url":"https://api.github.com/repos/ufacode/wenternet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ufacode/wenternet/merges","archive_url":"https://api.github.com/repos/ufacode/wenternet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ufacode/wenternet/downloads","issues_url":"https://api.github.com/repos/ufacode/wenternet/issues{/number}","pulls_url":"https://api.github.com/repos/ufacode/wenternet/pulls{/number}","milestones_url":"https://api.github.com/repos/ufacode/wenternet/milestones{/number}","notifications_url":"https://api.github.com/repos/ufacode/wenternet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ufacode/wenternet/labels{/name}","releases_url":"https://api.github.com/repos/ufacode/wenternet/releases{/id}","created_at":"2015-02-11T09:13:17Z","updated_at":"2015-03-04T15:57:30Z","pushed_at":"2015-03-05T05:34:06Z","git_url":"git://github.com/ufacode/wenternet.git","ssh_url":"git@github.com:ufacode/wenternet.git","clone_url":"https://github.com/ufacode/wenternet.git","svn_url":"https://github.com/ufacode/wenternet","homepage":null,"size":600,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ufacode:master","ref":"master","sha":"b79fc3eb8cb8ef14828ba0cbf0141d897b90945f","user":{"login":"ufacode","id":6215508,"avatar_url":"https://avatars.githubusercontent.com/u/6215508?v=3","gravatar_id":"","url":"https://api.github.com/users/ufacode","html_url":"https://github.com/ufacode","followers_url":"https://api.github.com/users/ufacode/followers","following_url":"https://api.github.com/users/ufacode/following{/other_user}","gists_url":"https://api.github.com/users/ufacode/gists{/gist_id}","starred_url":"https://api.github.com/users/ufacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufacode/subscriptions","organizations_url":"https://api.github.com/users/ufacode/orgs","repos_url":"https://api.github.com/users/ufacode/repos","events_url":"https://api.github.com/users/ufacode/events{/privacy}","received_events_url":"https://api.github.com/users/ufacode/received_events","type":"Organization","site_admin":false},"repo":{"id":30639770,"name":"wenternet","full_name":"ufacode/wenternet","owner":{"login":"ufacode","id":6215508,"avatar_url":"https://avatars.githubusercontent.com/u/6215508?v=3","gravatar_id":"","url":"https://api.github.com/users/ufacode","html_url":"https://github.com/ufacode","followers_url":"https://api.github.com/users/ufacode/followers","following_url":"https://api.github.com/users/ufacode/following{/other_user}","gists_url":"https://api.github.com/users/ufacode/gists{/gist_id}","starred_url":"https://api.github.com/users/ufacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufacode/subscriptions","organizations_url":"https://api.github.com/users/ufacode/orgs","repos_url":"https://api.github.com/users/ufacode/repos","events_url":"https://api.github.com/users/ufacode/events{/privacy}","received_events_url":"https://api.github.com/users/ufacode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ufacode/wenternet","description":"wenternet - открытая социальная доска объявлений","fork":false,"url":"https://api.github.com/repos/ufacode/wenternet","forks_url":"https://api.github.com/repos/ufacode/wenternet/forks","keys_url":"https://api.github.com/repos/ufacode/wenternet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ufacode/wenternet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ufacode/wenternet/teams","hooks_url":"https://api.github.com/repos/ufacode/wenternet/hooks","issue_events_url":"https://api.github.com/repos/ufacode/wenternet/issues/events{/number}","events_url":"https://api.github.com/repos/ufacode/wenternet/events","assignees_url":"https://api.github.com/repos/ufacode/wenternet/assignees{/user}","branches_url":"https://api.github.com/repos/ufacode/wenternet/branches{/branch}","tags_url":"https://api.github.com/repos/ufacode/wenternet/tags","blobs_url":"https://api.github.com/repos/ufacode/wenternet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ufacode/wenternet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ufacode/wenternet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ufacode/wenternet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ufacode/wenternet/statuses/{sha}","languages_url":"https://api.github.com/repos/ufacode/wenternet/languages","stargazers_url":"https://api.github.com/repos/ufacode/wenternet/stargazers","contributors_url":"https://api.github.com/repos/ufacode/wenternet/contributors","subscribers_url":"https://api.github.com/repos/ufacode/wenternet/subscribers","subscription_url":"https://api.github.com/repos/ufacode/wenternet/subscription","commits_url":"https://api.github.com/repos/ufacode/wenternet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ufacode/wenternet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ufacode/wenternet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ufacode/wenternet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ufacode/wenternet/contents/{+path}","compare_url":"https://api.github.com/repos/ufacode/wenternet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ufacode/wenternet/merges","archive_url":"https://api.github.com/repos/ufacode/wenternet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ufacode/wenternet/downloads","issues_url":"https://api.github.com/repos/ufacode/wenternet/issues{/number}","pulls_url":"https://api.github.com/repos/ufacode/wenternet/pulls{/number}","milestones_url":"https://api.github.com/repos/ufacode/wenternet/milestones{/number}","notifications_url":"https://api.github.com/repos/ufacode/wenternet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ufacode/wenternet/labels{/name}","releases_url":"https://api.github.com/repos/ufacode/wenternet/releases{/id}","created_at":"2015-02-11T09:13:17Z","updated_at":"2015-03-04T15:57:30Z","pushed_at":"2015-03-05T05:34:06Z","git_url":"git://github.com/ufacode/wenternet.git","ssh_url":"git@github.com:ufacode/wenternet.git","clone_url":"https://github.com/ufacode/wenternet.git","svn_url":"https://github.com/ufacode/wenternet","homepage":null,"size":600,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/15"},"html":{"href":"https://github.com/ufacode/wenternet/pull/15"},"issue":{"href":"https://api.github.com/repos/ufacode/wenternet/issues/15"},"comments":{"href":"https://api.github.com/repos/ufacode/wenternet/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ufacode/wenternet/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/ufacode/wenternet/statuses/8429f4c0e04dfc121722a3bbd4678760ac9360fd"}}}}