{"action":"created","comment":{"url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/comments/27572033","id":27572033,"diff_hunk":"@@ -25,6 +25,26 @@ def url_for(uid, options = {})\n         ::Cloudinary::Utils.cloudinary_url(public_id(uid), options)\n       end\n \n+      # Store the data AND meta, and return a unique string uid\n+      def write(content, opts={})\n+        store(content, opts)\n+      end\n+\n+      # Retrieve the data and meta as a 2-item array\n+      def read(uid)\n+        data = retrieve(uid)\n+        resource_data = ::Cloudinary::Api.resource(public_id(uid), exif: true)\n+        if data\n+          [\n+              data,     # can be a String, File, Pathname, Tempfile\n+              resource_data['exif']      # the same meta Hash that was stored with write\n+          ]\n+        else\n+          nil         # return nil if not found","path":"lib/dragonfly/data_storage/cloudinary_store.rb","position":28,"original_position":28,"commit_id":"e3319b702cb5d3090bf38fc4958bb933b1976da4","original_commit_id":"e3319b702cb5d3090bf38fc4958bb933b1976da4","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":"Unnecessary spacing detected.","created_at":"2015-04-01T14:13:09Z","updated_at":"2015-04-01T14:13:09Z","html_url":"https://github.com/adie/dragonfly-cloudinary/pull/3#discussion_r27572033","pull_request_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/comments/27572033"},"html":{"href":"https://github.com/adie/dragonfly-cloudinary/pull/3#discussion_r27572033"},"pull_request":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3","id":32422554,"html_url":"https://github.com/adie/dragonfly-cloudinary/pull/3","diff_url":"https://github.com/adie/dragonfly-cloudinary/pull/3.diff","patch_url":"https://github.com/adie/dragonfly-cloudinary/pull/3.patch","issue_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/3","number":3,"state":"open","locked":false,"title":"Code was broken for new Dragonfly","user":{"login":"suvl","id":6018083,"avatar_url":"https://avatars.githubusercontent.com/u/6018083?v=3","gravatar_id":"","url":"https://api.github.com/users/suvl","html_url":"https://github.com/suvl","followers_url":"https://api.github.com/users/suvl/followers","following_url":"https://api.github.com/users/suvl/following{/other_user}","gists_url":"https://api.github.com/users/suvl/gists{/gist_id}","starred_url":"https://api.github.com/users/suvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvl/subscriptions","organizations_url":"https://api.github.com/users/suvl/orgs","repos_url":"https://api.github.com/users/suvl/repos","events_url":"https://api.github.com/users/suvl/events{/privacy}","received_events_url":"https://api.github.com/users/suvl/received_events","type":"User","site_admin":false},"body":"The code was broken for the new dragonfly version. It expected read and write methods, which were implemented. Tested and working with refinerycms.","created_at":"2015-04-01T14:13:01Z","updated_at":"2015-04-01T14:13:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"906da2df03ac136c7e67076be5aa809cc64e7881","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3/commits","review_comments_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3/comments","review_comment_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/3/comments","statuses_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/statuses/e3319b702cb5d3090bf38fc4958bb933b1976da4","head":{"label":"suvl:master","ref":"master","sha":"e3319b702cb5d3090bf38fc4958bb933b1976da4","user":{"login":"suvl","id":6018083,"avatar_url":"https://avatars.githubusercontent.com/u/6018083?v=3","gravatar_id":"","url":"https://api.github.com/users/suvl","html_url":"https://github.com/suvl","followers_url":"https://api.github.com/users/suvl/followers","following_url":"https://api.github.com/users/suvl/following{/other_user}","gists_url":"https://api.github.com/users/suvl/gists{/gist_id}","starred_url":"https://api.github.com/users/suvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvl/subscriptions","organizations_url":"https://api.github.com/users/suvl/orgs","repos_url":"https://api.github.com/users/suvl/repos","events_url":"https://api.github.com/users/suvl/events{/privacy}","received_events_url":"https://api.github.com/users/suvl/received_events","type":"User","site_admin":false},"repo":{"id":32093215,"name":"dragonfly-cloudinary","full_name":"suvl/dragonfly-cloudinary","owner":{"login":"suvl","id":6018083,"avatar_url":"https://avatars.githubusercontent.com/u/6018083?v=3","gravatar_id":"","url":"https://api.github.com/users/suvl","html_url":"https://github.com/suvl","followers_url":"https://api.github.com/users/suvl/followers","following_url":"https://api.github.com/users/suvl/following{/other_user}","gists_url":"https://api.github.com/users/suvl/gists{/gist_id}","starred_url":"https://api.github.com/users/suvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suvl/subscriptions","organizations_url":"https://api.github.com/users/suvl/orgs","repos_url":"https://api.github.com/users/suvl/repos","events_url":"https://api.github.com/users/suvl/events{/privacy}","received_events_url":"https://api.github.com/users/suvl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/suvl/dragonfly-cloudinary","description":"Simple cloudinary data store for Dragonfly","fork":true,"url":"https://api.github.com/repos/suvl/dragonfly-cloudinary","forks_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/forks","keys_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/teams","hooks_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/hooks","issue_events_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/issues/events{/number}","events_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/events","assignees_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/assignees{/user}","branches_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/branches{/branch}","tags_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/tags","blobs_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/git/refs{/sha}","trees_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/statuses/{sha}","languages_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/languages","stargazers_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/stargazers","contributors_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/contributors","subscribers_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/subscribers","subscription_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/subscription","commits_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/commits{/sha}","git_commits_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/git/commits{/sha}","comments_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/comments{/number}","issue_comment_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/issues/comments{/number}","contents_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/contents/{+path}","compare_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/merges","archive_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/downloads","issues_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/issues{/number}","pulls_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/pulls{/number}","milestones_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/milestones{/number}","notifications_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/labels{/name}","releases_url":"https://api.github.com/repos/suvl/dragonfly-cloudinary/releases{/id}","created_at":"2015-03-12T18:06:49Z","updated_at":"2015-04-01T14:11:07Z","pushed_at":"2015-04-01T14:11:07Z","git_url":"git://github.com/suvl/dragonfly-cloudinary.git","ssh_url":"git@github.com:suvl/dragonfly-cloudinary.git","clone_url":"https://github.com/suvl/dragonfly-cloudinary.git","svn_url":"https://github.com/suvl/dragonfly-cloudinary","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"adie:master","ref":"master","sha":"5f476ea4c1eb214f280a3aa31ea8ad982ffc1398","user":{"login":"adie","id":107236,"avatar_url":"https://avatars.githubusercontent.com/u/107236?v=3","gravatar_id":"","url":"https://api.github.com/users/adie","html_url":"https://github.com/adie","followers_url":"https://api.github.com/users/adie/followers","following_url":"https://api.github.com/users/adie/following{/other_user}","gists_url":"https://api.github.com/users/adie/gists{/gist_id}","starred_url":"https://api.github.com/users/adie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adie/subscriptions","organizations_url":"https://api.github.com/users/adie/orgs","repos_url":"https://api.github.com/users/adie/repos","events_url":"https://api.github.com/users/adie/events{/privacy}","received_events_url":"https://api.github.com/users/adie/received_events","type":"User","site_admin":false},"repo":{"id":5925079,"name":"dragonfly-cloudinary","full_name":"adie/dragonfly-cloudinary","owner":{"login":"adie","id":107236,"avatar_url":"https://avatars.githubusercontent.com/u/107236?v=3","gravatar_id":"","url":"https://api.github.com/users/adie","html_url":"https://github.com/adie","followers_url":"https://api.github.com/users/adie/followers","following_url":"https://api.github.com/users/adie/following{/other_user}","gists_url":"https://api.github.com/users/adie/gists{/gist_id}","starred_url":"https://api.github.com/users/adie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adie/subscriptions","organizations_url":"https://api.github.com/users/adie/orgs","repos_url":"https://api.github.com/users/adie/repos","events_url":"https://api.github.com/users/adie/events{/privacy}","received_events_url":"https://api.github.com/users/adie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adie/dragonfly-cloudinary","description":"Simple cloudinary data store for Dragonfly","fork":false,"url":"https://api.github.com/repos/adie/dragonfly-cloudinary","forks_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/forks","keys_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/teams","hooks_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/hooks","issue_events_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/events{/number}","events_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/events","assignees_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/assignees{/user}","branches_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/branches{/branch}","tags_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/tags","blobs_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/git/refs{/sha}","trees_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/statuses/{sha}","languages_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/languages","stargazers_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/stargazers","contributors_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/contributors","subscribers_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/subscribers","subscription_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/subscription","commits_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/commits{/sha}","git_commits_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/git/commits{/sha}","comments_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/comments{/number}","issue_comment_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/comments{/number}","contents_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/contents/{+path}","compare_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/merges","archive_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/downloads","issues_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues{/number}","pulls_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls{/number}","milestones_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/milestones{/number}","notifications_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/labels{/name}","releases_url":"https://api.github.com/repos/adie/dragonfly-cloudinary/releases{/id}","created_at":"2012-09-23T18:54:00Z","updated_at":"2014-07-20T15:29:44Z","pushed_at":"2015-04-01T14:13:02Z","git_url":"git://github.com/adie/dragonfly-cloudinary.git","ssh_url":"git@github.com:adie/dragonfly-cloudinary.git","clone_url":"https://github.com/adie/dragonfly-cloudinary.git","svn_url":"https://github.com/adie/dragonfly-cloudinary","homepage":null,"size":174,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3"},"html":{"href":"https://github.com/adie/dragonfly-cloudinary/pull/3"},"issue":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/3"},"comments":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/adie/dragonfly-cloudinary/statuses/e3319b702cb5d3090bf38fc4958bb933b1976da4"}}}}