{"action":"created","comment":{"url":"https://api.github.com/repos/fog/fog-google/pulls/comments/49484529","id":49484529,"diff_hunk":"@@ -0,0 +1,134 @@\n+require \"helpers/integration_test_helper\"\n+\n+class TestFiles < FogIntegrationTest\n+  begin\n+    client_email = Fog.credentials[:google_client_email]\n+    @@connection = Fog::Storage::Google.new\n+    @@connection.put_bucket(\"fog-smoke-test\", options = { \"acl\" => [{ :entity => \"user-\" + client_email, :role => \"OWNER\" }] })\n+    @@connection.put_bucket_acl(\"fog-smoke-test\", :entity => \"allUsers\", :role => \"READER\")\n+  rescue Exception => e\n+    puts e\n+    puts e.backtrace\n+  end\n+\n+  begin\n+    @@directory = @@connection.directories.get(\"fog-smoke-test\")\n+    @@connection.put_object(\"fog-smoke-test\", \"fog-testfile\", \"THISISATESTFILE\")\n+    @@file = @@directory.files.get(\"fog-testfile\")\n+  rescue Exception => e\n+    puts e\n+    puts e.backtrace\n+  end\n+\n+  Minitest.after_run do\n+    begin\n+      @connection = Fog::Storage::Google.new\n+      @connection.delete_object(\"fog-smoke-test\", \"fog-testfile\")\n+      @connection.delete_bucket(\"fog-smoke-test\")\n+    rescue Exception => e\n+      puts e\n+    end\n+  end\n+\n+  def setup\n+    @connection = @@connection\n+    @directory = @@directory\n+    @file = @@file\n+  end\n+\n+  def test_all_files\n+    skip\n+  end\n+\n+  def test_each_files\n+    skip\n+  end\n+\n+  def test_get\n+    get_file = @directory.files.get(\"fog-testfile\")\n+    assert_instance_of Fog::Storage::Google::File, get_file\n+    assert_equal \"THISISATESTFILE\", get_file.body\n+  end\n+\n+  def test_get_https_url\n+    https_url = @directory.files.get_https_url(\"fog-testfile\", 1000)\n+    assert_match /https/, https_url","path":"test/integration/storage/test_files.rb","position":55,"original_position":55,"commit_id":"144da68ecf8eff461ceaca18f195bdf7c8eec600","original_commit_id":"144da68ecf8eff461ceaca18f195bdf7c8eec600","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":"Ambiguous regexp literal. Parenthesize the method arguments if it's surely a regexp literal, or add a whitespace to the right of the `/` if it should be a division.","created_at":"2016-01-12T17:22:29Z","updated_at":"2016-01-12T17:22:29Z","html_url":"https://github.com/fog/fog-google/pull/96#discussion_r49484529","pull_request_url":"https://api.github.com/repos/fog/fog-google/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/fog/fog-google/pulls/comments/49484529"},"html":{"href":"https://github.com/fog/fog-google/pull/96#discussion_r49484529"},"pull_request":{"href":"https://api.github.com/repos/fog/fog-google/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/fog/fog-google/pulls/96","id":52794599,"html_url":"https://github.com/fog/fog-google/pull/96","diff_url":"https://github.com/fog/fog-google/pull/96.diff","patch_url":"https://github.com/fog/fog-google/pull/96.patch","issue_url":"https://api.github.com/repos/fog/fog-google/issues/96","number":96,"state":"open","locked":false,"title":"New JSON Storage API","user":{"login":"icco","id":20201,"avatar_url":"https://avatars.githubusercontent.com/u/20201?v=3","gravatar_id":"","url":"https://api.github.com/users/icco","html_url":"https://github.com/icco","followers_url":"https://api.github.com/users/icco/followers","following_url":"https://api.github.com/users/icco/following{/other_user}","gists_url":"https://api.github.com/users/icco/gists{/gist_id}","starred_url":"https://api.github.com/users/icco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icco/subscriptions","organizations_url":"https://api.github.com/users/icco/orgs","repos_url":"https://api.github.com/users/icco/repos","events_url":"https://api.github.com/users/icco/events{/privacy}","received_events_url":"https://api.github.com/users/icco/received_events","type":"User","site_admin":false},"body":"This pull request is not ready at all, but creating it so we can finally make progress on #38.\r\n\r\nGoal for this before it's merged: Auth and get files with tests.\r\n\r\n/cc @deanputney, @Temikus and @plribeiro3000 for FYI. Feel free to leave comments and what not.","created_at":"2015-12-06T23:44:45Z","updated_at":"2016-01-12T17:22:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac2c57e81aa7f97260c8533c20cc42be5d00d3d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fog/fog-google/pulls/96/commits","review_comments_url":"https://api.github.com/repos/fog/fog-google/pulls/96/comments","review_comment_url":"https://api.github.com/repos/fog/fog-google/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fog/fog-google/issues/96/comments","statuses_url":"https://api.github.com/repos/fog/fog-google/statuses/144da68ecf8eff461ceaca18f195bdf7c8eec600","head":{"label":"icco:new_storage_api","ref":"new_storage_api","sha":"144da68ecf8eff461ceaca18f195bdf7c8eec600","user":{"login":"icco","id":20201,"avatar_url":"https://avatars.githubusercontent.com/u/20201?v=3","gravatar_id":"","url":"https://api.github.com/users/icco","html_url":"https://github.com/icco","followers_url":"https://api.github.com/users/icco/followers","following_url":"https://api.github.com/users/icco/following{/other_user}","gists_url":"https://api.github.com/users/icco/gists{/gist_id}","starred_url":"https://api.github.com/users/icco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icco/subscriptions","organizations_url":"https://api.github.com/users/icco/orgs","repos_url":"https://api.github.com/users/icco/repos","events_url":"https://api.github.com/users/icco/events{/privacy}","received_events_url":"https://api.github.com/users/icco/received_events","type":"User","site_admin":false},"repo":{"id":44850347,"name":"fog-google","full_name":"icco/fog-google","owner":{"login":"icco","id":20201,"avatar_url":"https://avatars.githubusercontent.com/u/20201?v=3","gravatar_id":"","url":"https://api.github.com/users/icco","html_url":"https://github.com/icco","followers_url":"https://api.github.com/users/icco/followers","following_url":"https://api.github.com/users/icco/following{/other_user}","gists_url":"https://api.github.com/users/icco/gists{/gist_id}","starred_url":"https://api.github.com/users/icco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icco/subscriptions","organizations_url":"https://api.github.com/users/icco/orgs","repos_url":"https://api.github.com/users/icco/repos","events_url":"https://api.github.com/users/icco/events{/privacy}","received_events_url":"https://api.github.com/users/icco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/icco/fog-google","description":"Fog for Google Cloud Platform","fork":true,"url":"https://api.github.com/repos/icco/fog-google","forks_url":"https://api.github.com/repos/icco/fog-google/forks","keys_url":"https://api.github.com/repos/icco/fog-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/icco/fog-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/icco/fog-google/teams","hooks_url":"https://api.github.com/repos/icco/fog-google/hooks","issue_events_url":"https://api.github.com/repos/icco/fog-google/issues/events{/number}","events_url":"https://api.github.com/repos/icco/fog-google/events","assignees_url":"https://api.github.com/repos/icco/fog-google/assignees{/user}","branches_url":"https://api.github.com/repos/icco/fog-google/branches{/branch}","tags_url":"https://api.github.com/repos/icco/fog-google/tags","blobs_url":"https://api.github.com/repos/icco/fog-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/icco/fog-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/icco/fog-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/icco/fog-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/icco/fog-google/statuses/{sha}","languages_url":"https://api.github.com/repos/icco/fog-google/languages","stargazers_url":"https://api.github.com/repos/icco/fog-google/stargazers","contributors_url":"https://api.github.com/repos/icco/fog-google/contributors","subscribers_url":"https://api.github.com/repos/icco/fog-google/subscribers","subscription_url":"https://api.github.com/repos/icco/fog-google/subscription","commits_url":"https://api.github.com/repos/icco/fog-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/icco/fog-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/icco/fog-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/icco/fog-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/icco/fog-google/contents/{+path}","compare_url":"https://api.github.com/repos/icco/fog-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/icco/fog-google/merges","archive_url":"https://api.github.com/repos/icco/fog-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/icco/fog-google/downloads","issues_url":"https://api.github.com/repos/icco/fog-google/issues{/number}","pulls_url":"https://api.github.com/repos/icco/fog-google/pulls{/number}","milestones_url":"https://api.github.com/repos/icco/fog-google/milestones{/number}","notifications_url":"https://api.github.com/repos/icco/fog-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/icco/fog-google/labels{/name}","releases_url":"https://api.github.com/repos/icco/fog-google/releases{/id}","created_at":"2015-10-24T03:18:41Z","updated_at":"2015-10-24T03:18:42Z","pushed_at":"2016-01-12T17:22:17Z","git_url":"git://github.com/icco/fog-google.git","ssh_url":"git@github.com:icco/fog-google.git","clone_url":"https://github.com/icco/fog-google.git","svn_url":"https://github.com/icco/fog-google","homepage":"","size":507,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fog:master","ref":"master","sha":"951846a126caa231fda8baa633c0eb5d4ced07fd","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":29195078,"name":"fog-google","full_name":"fog/fog-google","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-google","description":"Fog for Google Cloud Platform","fork":false,"url":"https://api.github.com/repos/fog/fog-google","forks_url":"https://api.github.com/repos/fog/fog-google/forks","keys_url":"https://api.github.com/repos/fog/fog-google/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-google/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-google/teams","hooks_url":"https://api.github.com/repos/fog/fog-google/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-google/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-google/events","assignees_url":"https://api.github.com/repos/fog/fog-google/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-google/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-google/tags","blobs_url":"https://api.github.com/repos/fog/fog-google/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-google/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-google/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-google/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-google/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-google/languages","stargazers_url":"https://api.github.com/repos/fog/fog-google/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-google/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-google/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-google/subscription","commits_url":"https://api.github.com/repos/fog/fog-google/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-google/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-google/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-google/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-google/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-google/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-google/merges","archive_url":"https://api.github.com/repos/fog/fog-google/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-google/downloads","issues_url":"https://api.github.com/repos/fog/fog-google/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-google/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-google/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-google/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-google/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-google/releases{/id}","created_at":"2015-01-13T15:02:24Z","updated_at":"2016-01-07T05:34:08Z","pushed_at":"2016-01-12T17:22:17Z","git_url":"git://github.com/fog/fog-google.git","ssh_url":"git@github.com:fog/fog-google.git","clone_url":"https://github.com/fog/fog-google.git","svn_url":"https://github.com/fog/fog-google","homepage":"","size":520,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":26,"forks":22,"open_issues":26,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fog/fog-google/pulls/96"},"html":{"href":"https://github.com/fog/fog-google/pull/96"},"issue":{"href":"https://api.github.com/repos/fog/fog-google/issues/96"},"comments":{"href":"https://api.github.com/repos/fog/fog-google/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/fog/fog-google/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/fog/fog-google/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fog/fog-google/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/fog/fog-google/statuses/144da68ecf8eff461ceaca18f195bdf7c8eec600"}}}}