{"action":"created","comment":{"url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/comments/35406617","id":35406617,"diff_hunk":"@@ -0,0 +1,164 @@\n+Spree::Sample.load_sample(\"option_values\")\n+Spree::Sample.load_sample(\"products\")\n+\n+ror_baseball_jersey = Spree::Product.find_by_name!(\"Ruby on Rails Baseball Jersey\")\n+ror_tote = Spree::Product.find_by_name!(\"Ruby on Rails Tote\")\n+ror_bag = Spree::Product.find_by_name!(\"Ruby on Rails Bag\")\n+ror_jr_spaghetti = Spree::Product.find_by_name!(\"Ruby on Rails Jr. Spaghetti\")\n+ror_mug = Spree::Product.find_by_name!(\"Ruby on Rails Mug\")\n+ror_ringer = Spree::Product.find_by_name!(\"Ruby on Rails Ringer T-Shirt\")\n+ror_stein = Spree::Product.find_by_name!(\"Ruby on Rails Stein\")\n+spree_baseball_jersey = Spree::Product.find_by_name!(\"Spree Baseball Jersey\")\n+spree_stein = Spree::Product.find_by_name!(\"Spree Stein\")\n+spree_jr_spaghetti = Spree::Product.find_by_name!(\"Spree Jr. Spaghetti\")\n+spree_mug = Spree::Product.find_by_name!(\"Spree Mug\")\n+spree_ringer = Spree::Product.find_by_name!(\"Spree Ringer T-Shirt\")\n+spree_tote = Spree::Product.find_by_name!(\"Spree Tote\")\n+spree_bag = Spree::Product.find_by_name!(\"Spree Bag\")\n+ruby_baseball_jersey = Spree::Product.find_by_name!(\"Ruby Baseball Jersey\")\n+apache_baseball_jersey = Spree::Product.find_by_name!(\"Apache Baseball Jersey\")\n+\n+small = Spree::OptionValue.where(name: \"Small\").first\n+medium = Spree::OptionValue.where(name: \"Medium\").first\n+large = Spree::OptionValue.where(name: \"Large\").first\n+extra_large = Spree::OptionValue.where(name: \"Extra Large\").first\n+\n+red = Spree::OptionValue.where(name: \"Red\").first\n+blue = Spree::OptionValue.where(name: \"Blue\").first\n+green = Spree::OptionValue.where(name: \"Green\").first\n+\n+variants = [\n+  {\n+    :product => ror_baseball_jersey,\n+    :option_values => [small, red],\n+    :sku => \"ROR-00001\",\n+    :cost_price => 17","path":"db/samples/variants.rb","position":35,"original_position":35,"commit_id":"d8a5612ef70e21ae6407a9b78b07cfde112c8ced","original_commit_id":"d8a5612ef70e21ae6407a9b78b07cfde112c8ced","user":{"login":"odk211","id":1321120,"avatar_url":"https://avatars.githubusercontent.com/u/1321120?v=3","gravatar_id":"","url":"https://api.github.com/users/odk211","html_url":"https://github.com/odk211","followers_url":"https://api.github.com/users/odk211/followers","following_url":"https://api.github.com/users/odk211/following{/other_user}","gists_url":"https://api.github.com/users/odk211/gists{/gist_id}","starred_url":"https://api.github.com/users/odk211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odk211/subscriptions","organizations_url":"https://api.github.com/users/odk211/orgs","repos_url":"https://api.github.com/users/odk211/repos","events_url":"https://api.github.com/users/odk211/events{/privacy}","received_events_url":"https://api.github.com/users/odk211/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Use the new Ruby 1.9 hash syntax.","created_at":"2015-07-24T09:06:17Z","updated_at":"2015-07-24T09:06:17Z","html_url":"https://github.com/otakemaru/spree-tutorial/pull/7#discussion_r35406617","pull_request_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/comments/35406617"},"html":{"href":"https://github.com/otakemaru/spree-tutorial/pull/7#discussion_r35406617"},"pull_request":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7","id":40755547,"html_url":"https://github.com/otakemaru/spree-tutorial/pull/7","diff_url":"https://github.com/otakemaru/spree-tutorial/pull/7.diff","patch_url":"https://github.com/otakemaru/spree-tutorial/pull/7.patch","issue_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/7","number":7,"state":"open","locked":false,"title":"Localize data","user":{"login":"odk211","id":1321120,"avatar_url":"https://avatars.githubusercontent.com/u/1321120?v=3","gravatar_id":"","url":"https://api.github.com/users/odk211","html_url":"https://github.com/odk211","followers_url":"https://api.github.com/users/odk211/followers","following_url":"https://api.github.com/users/odk211/following{/other_user}","gists_url":"https://api.github.com/users/odk211/gists{/gist_id}","starred_url":"https://api.github.com/users/odk211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odk211/subscriptions","organizations_url":"https://api.github.com/users/odk211/orgs","repos_url":"https://api.github.com/users/odk211/repos","events_url":"https://api.github.com/users/odk211/events{/privacy}","received_events_url":"https://api.github.com/users/odk211/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-24T09:05:37Z","updated_at":"2015-07-24T09:06:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b381f902458691b1454ef2a87941f81b14a025a0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7/commits","review_comments_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7/comments","review_comment_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/7/comments","statuses_url":"https://api.github.com/repos/otakemaru/spree-tutorial/statuses/d8a5612ef70e21ae6407a9b78b07cfde112c8ced","head":{"label":"otakemaru:localize-data","ref":"localize-data","sha":"d8a5612ef70e21ae6407a9b78b07cfde112c8ced","user":{"login":"otakemaru","id":13375327,"avatar_url":"https://avatars.githubusercontent.com/u/13375327?v=3","gravatar_id":"","url":"https://api.github.com/users/otakemaru","html_url":"https://github.com/otakemaru","followers_url":"https://api.github.com/users/otakemaru/followers","following_url":"https://api.github.com/users/otakemaru/following{/other_user}","gists_url":"https://api.github.com/users/otakemaru/gists{/gist_id}","starred_url":"https://api.github.com/users/otakemaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakemaru/subscriptions","organizations_url":"https://api.github.com/users/otakemaru/orgs","repos_url":"https://api.github.com/users/otakemaru/repos","events_url":"https://api.github.com/users/otakemaru/events{/privacy}","received_events_url":"https://api.github.com/users/otakemaru/received_events","type":"Organization","site_admin":false},"repo":{"id":38983565,"name":"spree-tutorial","full_name":"otakemaru/spree-tutorial","owner":{"login":"otakemaru","id":13375327,"avatar_url":"https://avatars.githubusercontent.com/u/13375327?v=3","gravatar_id":"","url":"https://api.github.com/users/otakemaru","html_url":"https://github.com/otakemaru","followers_url":"https://api.github.com/users/otakemaru/followers","following_url":"https://api.github.com/users/otakemaru/following{/other_user}","gists_url":"https://api.github.com/users/otakemaru/gists{/gist_id}","starred_url":"https://api.github.com/users/otakemaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakemaru/subscriptions","organizations_url":"https://api.github.com/users/otakemaru/orgs","repos_url":"https://api.github.com/users/otakemaru/repos","events_url":"https://api.github.com/users/otakemaru/events{/privacy}","received_events_url":"https://api.github.com/users/otakemaru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otakemaru/spree-tutorial","description":"Application just using the spree","fork":false,"url":"https://api.github.com/repos/otakemaru/spree-tutorial","forks_url":"https://api.github.com/repos/otakemaru/spree-tutorial/forks","keys_url":"https://api.github.com/repos/otakemaru/spree-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otakemaru/spree-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otakemaru/spree-tutorial/teams","hooks_url":"https://api.github.com/repos/otakemaru/spree-tutorial/hooks","issue_events_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/otakemaru/spree-tutorial/events","assignees_url":"https://api.github.com/repos/otakemaru/spree-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/otakemaru/spree-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/otakemaru/spree-tutorial/tags","blobs_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otakemaru/spree-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/otakemaru/spree-tutorial/languages","stargazers_url":"https://api.github.com/repos/otakemaru/spree-tutorial/stargazers","contributors_url":"https://api.github.com/repos/otakemaru/spree-tutorial/contributors","subscribers_url":"https://api.github.com/repos/otakemaru/spree-tutorial/subscribers","subscription_url":"https://api.github.com/repos/otakemaru/spree-tutorial/subscription","commits_url":"https://api.github.com/repos/otakemaru/spree-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/otakemaru/spree-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/otakemaru/spree-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/otakemaru/spree-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otakemaru/spree-tutorial/merges","archive_url":"https://api.github.com/repos/otakemaru/spree-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otakemaru/spree-tutorial/downloads","issues_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/otakemaru/spree-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/otakemaru/spree-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otakemaru/spree-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/otakemaru/spree-tutorial/releases{/id}","created_at":"2015-07-13T00:32:55Z","updated_at":"2015-07-23T09:40:07Z","pushed_at":"2015-07-24T09:05:37Z","git_url":"git://github.com/otakemaru/spree-tutorial.git","ssh_url":"git@github.com:otakemaru/spree-tutorial.git","clone_url":"https://github.com/otakemaru/spree-tutorial.git","svn_url":"https://github.com/otakemaru/spree-tutorial","homepage":"http://master.otakemaru-spree-tutorial-ac22bb05d40451d59868.ttrcloud.com/","size":320,"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":"otakemaru:master","ref":"master","sha":"7b791c6ec6d9ab7fea307fee0cd87af14206cba4","user":{"login":"otakemaru","id":13375327,"avatar_url":"https://avatars.githubusercontent.com/u/13375327?v=3","gravatar_id":"","url":"https://api.github.com/users/otakemaru","html_url":"https://github.com/otakemaru","followers_url":"https://api.github.com/users/otakemaru/followers","following_url":"https://api.github.com/users/otakemaru/following{/other_user}","gists_url":"https://api.github.com/users/otakemaru/gists{/gist_id}","starred_url":"https://api.github.com/users/otakemaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakemaru/subscriptions","organizations_url":"https://api.github.com/users/otakemaru/orgs","repos_url":"https://api.github.com/users/otakemaru/repos","events_url":"https://api.github.com/users/otakemaru/events{/privacy}","received_events_url":"https://api.github.com/users/otakemaru/received_events","type":"Organization","site_admin":false},"repo":{"id":38983565,"name":"spree-tutorial","full_name":"otakemaru/spree-tutorial","owner":{"login":"otakemaru","id":13375327,"avatar_url":"https://avatars.githubusercontent.com/u/13375327?v=3","gravatar_id":"","url":"https://api.github.com/users/otakemaru","html_url":"https://github.com/otakemaru","followers_url":"https://api.github.com/users/otakemaru/followers","following_url":"https://api.github.com/users/otakemaru/following{/other_user}","gists_url":"https://api.github.com/users/otakemaru/gists{/gist_id}","starred_url":"https://api.github.com/users/otakemaru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakemaru/subscriptions","organizations_url":"https://api.github.com/users/otakemaru/orgs","repos_url":"https://api.github.com/users/otakemaru/repos","events_url":"https://api.github.com/users/otakemaru/events{/privacy}","received_events_url":"https://api.github.com/users/otakemaru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otakemaru/spree-tutorial","description":"Application just using the spree","fork":false,"url":"https://api.github.com/repos/otakemaru/spree-tutorial","forks_url":"https://api.github.com/repos/otakemaru/spree-tutorial/forks","keys_url":"https://api.github.com/repos/otakemaru/spree-tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otakemaru/spree-tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otakemaru/spree-tutorial/teams","hooks_url":"https://api.github.com/repos/otakemaru/spree-tutorial/hooks","issue_events_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/otakemaru/spree-tutorial/events","assignees_url":"https://api.github.com/repos/otakemaru/spree-tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/otakemaru/spree-tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/otakemaru/spree-tutorial/tags","blobs_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otakemaru/spree-tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/otakemaru/spree-tutorial/languages","stargazers_url":"https://api.github.com/repos/otakemaru/spree-tutorial/stargazers","contributors_url":"https://api.github.com/repos/otakemaru/spree-tutorial/contributors","subscribers_url":"https://api.github.com/repos/otakemaru/spree-tutorial/subscribers","subscription_url":"https://api.github.com/repos/otakemaru/spree-tutorial/subscription","commits_url":"https://api.github.com/repos/otakemaru/spree-tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/otakemaru/spree-tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/otakemaru/spree-tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/otakemaru/spree-tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/otakemaru/spree-tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otakemaru/spree-tutorial/merges","archive_url":"https://api.github.com/repos/otakemaru/spree-tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otakemaru/spree-tutorial/downloads","issues_url":"https://api.github.com/repos/otakemaru/spree-tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/otakemaru/spree-tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/otakemaru/spree-tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otakemaru/spree-tutorial/labels{/name}","releases_url":"https://api.github.com/repos/otakemaru/spree-tutorial/releases{/id}","created_at":"2015-07-13T00:32:55Z","updated_at":"2015-07-23T09:40:07Z","pushed_at":"2015-07-24T09:05:37Z","git_url":"git://github.com/otakemaru/spree-tutorial.git","ssh_url":"git@github.com:otakemaru/spree-tutorial.git","clone_url":"https://github.com/otakemaru/spree-tutorial.git","svn_url":"https://github.com/otakemaru/spree-tutorial","homepage":"http://master.otakemaru-spree-tutorial-ac22bb05d40451d59868.ttrcloud.com/","size":320,"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/otakemaru/spree-tutorial/pulls/7"},"html":{"href":"https://github.com/otakemaru/spree-tutorial/pull/7"},"issue":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/7"},"comments":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/otakemaru/spree-tutorial/statuses/d8a5612ef70e21ae6407a9b78b07cfde112c8ced"}}}}