{"action":"created","comment":{"url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/comments/23481713","id":23481713,"diff_hunk":"@@ -0,0 +1,80 @@\n+require 'json'\n+require 'text/hyphen'\n+\n+\n+class Reprocess\n+  VALID_CATEGORIES = %w(earth air water fire youth other)\n+\n+  def initialize source, destination\n+    @source      = source\n+    @destination = destination\n+    @json        = nil\n+  end\n+\n+  def reprocess\n+    load_file\n+    reverse\n+    remove_descriptions\n+    hyphenate\n+    filter_categories\n+    print_to_file\n+  end\n+\n+  def load_file\n+    raw   = File.read(@source)\n+    @json = JSON.load(raw)\n+  end\n+\n+  def reverse\n+    @json = @json.reverse\n+  end\n+\n+  def remove_descriptions\n+    @json.map! { |item|\n+      item.delete('description')\n+      item\n+    }\n+  end\n+\n+  def hyphenate\n+    hh = Text::Hyphen.new(:language => 'de', :left => 2, :right => 2)","path":"lib/energy_globe_awards/reprocess.rb","position":40,"original_position":40,"commit_id":"dff2186dda1ab3212908e0f3452f28185a4b6d29","original_commit_id":"dff2186dda1ab3212908e0f3452f28185a4b6d29","user":{"login":"clemenshelm","id":141632,"avatar_url":"https://avatars.githubusercontent.com/u/141632?v=3","gravatar_id":"","url":"https://api.github.com/users/clemenshelm","html_url":"https://github.com/clemenshelm","followers_url":"https://api.github.com/users/clemenshelm/followers","following_url":"https://api.github.com/users/clemenshelm/following{/other_user}","gists_url":"https://api.github.com/users/clemenshelm/gists{/gist_id}","starred_url":"https://api.github.com/users/clemenshelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clemenshelm/subscriptions","organizations_url":"https://api.github.com/users/clemenshelm/orgs","repos_url":"https://api.github.com/users/clemenshelm/repos","events_url":"https://api.github.com/users/clemenshelm/events{/privacy}","received_events_url":"https://api.github.com/users/clemenshelm/received_events","type":"User","site_admin":false},"body":"Please use new hash syntax.","created_at":"2015-01-23T21:28:46Z","updated_at":"2015-01-23T21:28:46Z","html_url":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28#discussion_r23481713","pull_request_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/comments/23481713"},"html":{"href":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28#discussion_r23481713"},"pull_request":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28","id":27952143,"html_url":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28","diff_url":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28.diff","patch_url":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28.patch","issue_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/28","number":28,"state":"open","locked":false,"title":"Feature/reprocess data","user":{"login":"pferdefleisch","id":175984,"avatar_url":"https://avatars.githubusercontent.com/u/175984?v=3","gravatar_id":"","url":"https://api.github.com/users/pferdefleisch","html_url":"https://github.com/pferdefleisch","followers_url":"https://api.github.com/users/pferdefleisch/followers","following_url":"https://api.github.com/users/pferdefleisch/following{/other_user}","gists_url":"https://api.github.com/users/pferdefleisch/gists{/gist_id}","starred_url":"https://api.github.com/users/pferdefleisch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pferdefleisch/subscriptions","organizations_url":"https://api.github.com/users/pferdefleisch/orgs","repos_url":"https://api.github.com/users/pferdefleisch/repos","events_url":"https://api.github.com/users/pferdefleisch/events{/privacy}","received_events_url":"https://api.github.com/users/pferdefleisch/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-23T20:19:31Z","updated_at":"2015-01-23T21:28:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b99c689940be265d8c78ad719243de6bc0b4c51d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28/commits","review_comments_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28/comments","review_comment_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/28/comments","statuses_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/statuses/dff2186dda1ab3212908e0f3452f28185a4b6d29","head":{"label":"wirsingio:feature/reprocess-data","ref":"feature/reprocess-data","sha":"dff2186dda1ab3212908e0f3452f28185a4b6d29","user":{"login":"wirsingio","id":8479178,"avatar_url":"https://avatars.githubusercontent.com/u/8479178?v=3","gravatar_id":"","url":"https://api.github.com/users/wirsingio","html_url":"https://github.com/wirsingio","followers_url":"https://api.github.com/users/wirsingio/followers","following_url":"https://api.github.com/users/wirsingio/following{/other_user}","gists_url":"https://api.github.com/users/wirsingio/gists{/gist_id}","starred_url":"https://api.github.com/users/wirsingio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirsingio/subscriptions","organizations_url":"https://api.github.com/users/wirsingio/orgs","repos_url":"https://api.github.com/users/wirsingio/repos","events_url":"https://api.github.com/users/wirsingio/events{/privacy}","received_events_url":"https://api.github.com/users/wirsingio/received_events","type":"Organization","site_admin":false},"repo":{"id":28225132,"name":"Energy-Globe-Awards","full_name":"wirsingio/Energy-Globe-Awards","owner":{"login":"wirsingio","id":8479178,"avatar_url":"https://avatars.githubusercontent.com/u/8479178?v=3","gravatar_id":"","url":"https://api.github.com/users/wirsingio","html_url":"https://github.com/wirsingio","followers_url":"https://api.github.com/users/wirsingio/followers","following_url":"https://api.github.com/users/wirsingio/following{/other_user}","gists_url":"https://api.github.com/users/wirsingio/gists{/gist_id}","starred_url":"https://api.github.com/users/wirsingio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirsingio/subscriptions","organizations_url":"https://api.github.com/users/wirsingio/orgs","repos_url":"https://api.github.com/users/wirsingio/repos","events_url":"https://api.github.com/users/wirsingio/events{/privacy}","received_events_url":"https://api.github.com/users/wirsingio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wirsingio/Energy-Globe-Awards","description":"","fork":false,"url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards","forks_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/forks","keys_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/teams","hooks_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/hooks","issue_events_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/events{/number}","events_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/events","assignees_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/assignees{/user}","branches_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/branches{/branch}","tags_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/tags","blobs_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/refs{/sha}","trees_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/statuses/{sha}","languages_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/languages","stargazers_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/stargazers","contributors_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/contributors","subscribers_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/subscribers","subscription_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/subscription","commits_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/commits{/sha}","git_commits_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/commits{/sha}","comments_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/comments{/number}","issue_comment_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/comments/{number}","contents_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/contents/{+path}","compare_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/merges","archive_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/downloads","issues_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues{/number}","pulls_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls{/number}","milestones_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/milestones{/number}","notifications_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/labels{/name}","releases_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/releases{/id}","created_at":"2014-12-19T10:30:56Z","updated_at":"2015-01-23T16:09:01Z","pushed_at":"2015-01-23T20:18:54Z","git_url":"git://github.com/wirsingio/Energy-Globe-Awards.git","ssh_url":"git@github.com:wirsingio/Energy-Globe-Awards.git","clone_url":"https://github.com/wirsingio/Energy-Globe-Awards.git","svn_url":"https://github.com/wirsingio/Energy-Globe-Awards","homepage":null,"size":4472,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"wirsingio:master","ref":"master","sha":"7982cf1394c6e01db42ad50d06e435010414dc96","user":{"login":"wirsingio","id":8479178,"avatar_url":"https://avatars.githubusercontent.com/u/8479178?v=3","gravatar_id":"","url":"https://api.github.com/users/wirsingio","html_url":"https://github.com/wirsingio","followers_url":"https://api.github.com/users/wirsingio/followers","following_url":"https://api.github.com/users/wirsingio/following{/other_user}","gists_url":"https://api.github.com/users/wirsingio/gists{/gist_id}","starred_url":"https://api.github.com/users/wirsingio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirsingio/subscriptions","organizations_url":"https://api.github.com/users/wirsingio/orgs","repos_url":"https://api.github.com/users/wirsingio/repos","events_url":"https://api.github.com/users/wirsingio/events{/privacy}","received_events_url":"https://api.github.com/users/wirsingio/received_events","type":"Organization","site_admin":false},"repo":{"id":28225132,"name":"Energy-Globe-Awards","full_name":"wirsingio/Energy-Globe-Awards","owner":{"login":"wirsingio","id":8479178,"avatar_url":"https://avatars.githubusercontent.com/u/8479178?v=3","gravatar_id":"","url":"https://api.github.com/users/wirsingio","html_url":"https://github.com/wirsingio","followers_url":"https://api.github.com/users/wirsingio/followers","following_url":"https://api.github.com/users/wirsingio/following{/other_user}","gists_url":"https://api.github.com/users/wirsingio/gists{/gist_id}","starred_url":"https://api.github.com/users/wirsingio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wirsingio/subscriptions","organizations_url":"https://api.github.com/users/wirsingio/orgs","repos_url":"https://api.github.com/users/wirsingio/repos","events_url":"https://api.github.com/users/wirsingio/events{/privacy}","received_events_url":"https://api.github.com/users/wirsingio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wirsingio/Energy-Globe-Awards","description":"","fork":false,"url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards","forks_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/forks","keys_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/teams","hooks_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/hooks","issue_events_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/events{/number}","events_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/events","assignees_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/assignees{/user}","branches_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/branches{/branch}","tags_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/tags","blobs_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/refs{/sha}","trees_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/statuses/{sha}","languages_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/languages","stargazers_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/stargazers","contributors_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/contributors","subscribers_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/subscribers","subscription_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/subscription","commits_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/commits{/sha}","git_commits_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/git/commits{/sha}","comments_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/comments{/number}","issue_comment_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/comments/{number}","contents_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/contents/{+path}","compare_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/merges","archive_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/downloads","issues_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues{/number}","pulls_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls{/number}","milestones_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/milestones{/number}","notifications_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/labels{/name}","releases_url":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/releases{/id}","created_at":"2014-12-19T10:30:56Z","updated_at":"2015-01-23T16:09:01Z","pushed_at":"2015-01-23T20:18:54Z","git_url":"git://github.com/wirsingio/Energy-Globe-Awards.git","ssh_url":"git@github.com:wirsingio/Energy-Globe-Awards.git","clone_url":"https://github.com/wirsingio/Energy-Globe-Awards.git","svn_url":"https://github.com/wirsingio/Energy-Globe-Awards","homepage":null,"size":4472,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28"},"html":{"href":"https://github.com/wirsingio/Energy-Globe-Awards/pull/28"},"issue":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/28"},"comments":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/wirsingio/Energy-Globe-Awards/statuses/dff2186dda1ab3212908e0f3452f28185a4b6d29"}}}}