{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/arkency/rails_event_store/pulls/19","id":60385777,"html_url":"https://github.com/arkency/rails_event_store/pull/19","diff_url":"https://github.com/arkency/rails_event_store/pull/19.diff","patch_url":"https://github.com/arkency/rails_event_store/pull/19.patch","issue_url":"https://api.github.com/repos/arkency/rails_event_store/issues/19","number":19,"state":"open","locked":false,"title":"Decouple data storage from RailsEventStore","user":{"login":"gottfrois","id":943784,"avatar_url":"https://avatars.githubusercontent.com/u/943784?v=3","gravatar_id":"","url":"https://api.github.com/users/gottfrois","html_url":"https://github.com/gottfrois","followers_url":"https://api.github.com/users/gottfrois/followers","following_url":"https://api.github.com/users/gottfrois/following{/other_user}","gists_url":"https://api.github.com/users/gottfrois/gists{/gist_id}","starred_url":"https://api.github.com/users/gottfrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottfrois/subscriptions","organizations_url":"https://api.github.com/users/gottfrois/orgs","repos_url":"https://api.github.com/users/gottfrois/repos","events_url":"https://api.github.com/users/gottfrois/events{/privacy}","received_events_url":"https://api.github.com/users/gottfrois/received_events","type":"User","site_admin":false},"body":"ActiveRecord repository and data storage logic as a new gem. See details here https://github.com/gottfrois/rails_event_store_active_record/pull/1/files\r\n\r\nWe would need to update https://github.com/mpraglowski/cqrs-es-sample-with-res with the following:\r\n\r\n```ruby\r\ngem 'rails_event_store_active_record'\r\n```\r\n\r\n```ruby\r\nRailsEventStore::Client.new(RailsEventStore::Repositories::ActiveRecord::EventRepository.new)\r\n```\r\n\r\nWe could take one step further and actually move `RailsEventStore:: EventInMemoryRepository` from spec to lib and default to it as backend strategy.\r\n\r\n@mpraglowski let me know what you think ;)","created_at":"2016-02-23T18:26:00Z","updated_at":"2016-02-23T18:26:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arkency/rails_event_store/pulls/19/commits","review_comments_url":"https://api.github.com/repos/arkency/rails_event_store/pulls/19/comments","review_comment_url":"https://api.github.com/repos/arkency/rails_event_store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arkency/rails_event_store/issues/19/comments","statuses_url":"https://api.github.com/repos/arkency/rails_event_store/statuses/42d0bea7ee02a912887aad9c81513d4fbe99f412","head":{"label":"gottfrois:backend","ref":"backend","sha":"42d0bea7ee02a912887aad9c81513d4fbe99f412","user":{"login":"gottfrois","id":943784,"avatar_url":"https://avatars.githubusercontent.com/u/943784?v=3","gravatar_id":"","url":"https://api.github.com/users/gottfrois","html_url":"https://github.com/gottfrois","followers_url":"https://api.github.com/users/gottfrois/followers","following_url":"https://api.github.com/users/gottfrois/following{/other_user}","gists_url":"https://api.github.com/users/gottfrois/gists{/gist_id}","starred_url":"https://api.github.com/users/gottfrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottfrois/subscriptions","organizations_url":"https://api.github.com/users/gottfrois/orgs","repos_url":"https://api.github.com/users/gottfrois/repos","events_url":"https://api.github.com/users/gottfrois/events{/privacy}","received_events_url":"https://api.github.com/users/gottfrois/received_events","type":"User","site_admin":false},"repo":{"id":52381309,"name":"rails_event_store","full_name":"gottfrois/rails_event_store","owner":{"login":"gottfrois","id":943784,"avatar_url":"https://avatars.githubusercontent.com/u/943784?v=3","gravatar_id":"","url":"https://api.github.com/users/gottfrois","html_url":"https://github.com/gottfrois","followers_url":"https://api.github.com/users/gottfrois/followers","following_url":"https://api.github.com/users/gottfrois/following{/other_user}","gists_url":"https://api.github.com/users/gottfrois/gists{/gist_id}","starred_url":"https://api.github.com/users/gottfrois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gottfrois/subscriptions","organizations_url":"https://api.github.com/users/gottfrois/orgs","repos_url":"https://api.github.com/users/gottfrois/repos","events_url":"https://api.github.com/users/gottfrois/events{/privacy}","received_events_url":"https://api.github.com/users/gottfrois/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gottfrois/rails_event_store","description":"A Ruby implementation of an EventStore based on Active Record.","fork":true,"url":"https://api.github.com/repos/gottfrois/rails_event_store","forks_url":"https://api.github.com/repos/gottfrois/rails_event_store/forks","keys_url":"https://api.github.com/repos/gottfrois/rails_event_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gottfrois/rails_event_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gottfrois/rails_event_store/teams","hooks_url":"https://api.github.com/repos/gottfrois/rails_event_store/hooks","issue_events_url":"https://api.github.com/repos/gottfrois/rails_event_store/issues/events{/number}","events_url":"https://api.github.com/repos/gottfrois/rails_event_store/events","assignees_url":"https://api.github.com/repos/gottfrois/rails_event_store/assignees{/user}","branches_url":"https://api.github.com/repos/gottfrois/rails_event_store/branches{/branch}","tags_url":"https://api.github.com/repos/gottfrois/rails_event_store/tags","blobs_url":"https://api.github.com/repos/gottfrois/rails_event_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gottfrois/rails_event_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gottfrois/rails_event_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/gottfrois/rails_event_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gottfrois/rails_event_store/statuses/{sha}","languages_url":"https://api.github.com/repos/gottfrois/rails_event_store/languages","stargazers_url":"https://api.github.com/repos/gottfrois/rails_event_store/stargazers","contributors_url":"https://api.github.com/repos/gottfrois/rails_event_store/contributors","subscribers_url":"https://api.github.com/repos/gottfrois/rails_event_store/subscribers","subscription_url":"https://api.github.com/repos/gottfrois/rails_event_store/subscription","commits_url":"https://api.github.com/repos/gottfrois/rails_event_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/gottfrois/rails_event_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/gottfrois/rails_event_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/gottfrois/rails_event_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/gottfrois/rails_event_store/contents/{+path}","compare_url":"https://api.github.com/repos/gottfrois/rails_event_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gottfrois/rails_event_store/merges","archive_url":"https://api.github.com/repos/gottfrois/rails_event_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gottfrois/rails_event_store/downloads","issues_url":"https://api.github.com/repos/gottfrois/rails_event_store/issues{/number}","pulls_url":"https://api.github.com/repos/gottfrois/rails_event_store/pulls{/number}","milestones_url":"https://api.github.com/repos/gottfrois/rails_event_store/milestones{/number}","notifications_url":"https://api.github.com/repos/gottfrois/rails_event_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gottfrois/rails_event_store/labels{/name}","releases_url":"https://api.github.com/repos/gottfrois/rails_event_store/releases{/id}","deployments_url":"https://api.github.com/repos/gottfrois/rails_event_store/deployments","created_at":"2016-02-23T18:19:19Z","updated_at":"2016-02-23T18:19:20Z","pushed_at":"2016-02-23T18:19:57Z","git_url":"git://github.com/gottfrois/rails_event_store.git","ssh_url":"git@github.com:gottfrois/rails_event_store.git","clone_url":"https://github.com/gottfrois/rails_event_store.git","svn_url":"https://github.com/gottfrois/rails_event_store","homepage":"","size":126,"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":"arkency:master","ref":"master","sha":"e656b92a4f3384dfd0dff3e7d5307f4e85284d55","user":{"login":"arkency","id":94726,"avatar_url":"https://avatars.githubusercontent.com/u/94726?v=3","gravatar_id":"","url":"https://api.github.com/users/arkency","html_url":"https://github.com/arkency","followers_url":"https://api.github.com/users/arkency/followers","following_url":"https://api.github.com/users/arkency/following{/other_user}","gists_url":"https://api.github.com/users/arkency/gists{/gist_id}","starred_url":"https://api.github.com/users/arkency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkency/subscriptions","organizations_url":"https://api.github.com/users/arkency/orgs","repos_url":"https://api.github.com/users/arkency/repos","events_url":"https://api.github.com/users/arkency/events{/privacy}","received_events_url":"https://api.github.com/users/arkency/received_events","type":"Organization","site_admin":false},"repo":{"id":33212527,"name":"rails_event_store","full_name":"arkency/rails_event_store","owner":{"login":"arkency","id":94726,"avatar_url":"https://avatars.githubusercontent.com/u/94726?v=3","gravatar_id":"","url":"https://api.github.com/users/arkency","html_url":"https://github.com/arkency","followers_url":"https://api.github.com/users/arkency/followers","following_url":"https://api.github.com/users/arkency/following{/other_user}","gists_url":"https://api.github.com/users/arkency/gists{/gist_id}","starred_url":"https://api.github.com/users/arkency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkency/subscriptions","organizations_url":"https://api.github.com/users/arkency/orgs","repos_url":"https://api.github.com/users/arkency/repos","events_url":"https://api.github.com/users/arkency/events{/privacy}","received_events_url":"https://api.github.com/users/arkency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arkency/rails_event_store","description":"A Ruby implementation of an EventStore based on Active Record.","fork":false,"url":"https://api.github.com/repos/arkency/rails_event_store","forks_url":"https://api.github.com/repos/arkency/rails_event_store/forks","keys_url":"https://api.github.com/repos/arkency/rails_event_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arkency/rails_event_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arkency/rails_event_store/teams","hooks_url":"https://api.github.com/repos/arkency/rails_event_store/hooks","issue_events_url":"https://api.github.com/repos/arkency/rails_event_store/issues/events{/number}","events_url":"https://api.github.com/repos/arkency/rails_event_store/events","assignees_url":"https://api.github.com/repos/arkency/rails_event_store/assignees{/user}","branches_url":"https://api.github.com/repos/arkency/rails_event_store/branches{/branch}","tags_url":"https://api.github.com/repos/arkency/rails_event_store/tags","blobs_url":"https://api.github.com/repos/arkency/rails_event_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arkency/rails_event_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arkency/rails_event_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/arkency/rails_event_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arkency/rails_event_store/statuses/{sha}","languages_url":"https://api.github.com/repos/arkency/rails_event_store/languages","stargazers_url":"https://api.github.com/repos/arkency/rails_event_store/stargazers","contributors_url":"https://api.github.com/repos/arkency/rails_event_store/contributors","subscribers_url":"https://api.github.com/repos/arkency/rails_event_store/subscribers","subscription_url":"https://api.github.com/repos/arkency/rails_event_store/subscription","commits_url":"https://api.github.com/repos/arkency/rails_event_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/arkency/rails_event_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/arkency/rails_event_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/arkency/rails_event_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/arkency/rails_event_store/contents/{+path}","compare_url":"https://api.github.com/repos/arkency/rails_event_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arkency/rails_event_store/merges","archive_url":"https://api.github.com/repos/arkency/rails_event_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arkency/rails_event_store/downloads","issues_url":"https://api.github.com/repos/arkency/rails_event_store/issues{/number}","pulls_url":"https://api.github.com/repos/arkency/rails_event_store/pulls{/number}","milestones_url":"https://api.github.com/repos/arkency/rails_event_store/milestones{/number}","notifications_url":"https://api.github.com/repos/arkency/rails_event_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arkency/rails_event_store/labels{/name}","releases_url":"https://api.github.com/repos/arkency/rails_event_store/releases{/id}","deployments_url":"https://api.github.com/repos/arkency/rails_event_store/deployments","created_at":"2015-03-31T22:02:32Z","updated_at":"2016-02-23T12:57:16Z","pushed_at":"2016-02-04T14:42:11Z","git_url":"git://github.com/arkency/rails_event_store.git","ssh_url":"git@github.com:arkency/rails_event_store.git","clone_url":"https://github.com/arkency/rails_event_store.git","svn_url":"https://github.com/arkency/rails_event_store","homepage":"","size":136,"stargazers_count":151,"watchers_count":151,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":151,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arkency/rails_event_store/pulls/19"},"html":{"href":"https://github.com/arkency/rails_event_store/pull/19"},"issue":{"href":"https://api.github.com/repos/arkency/rails_event_store/issues/19"},"comments":{"href":"https://api.github.com/repos/arkency/rails_event_store/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/arkency/rails_event_store/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/arkency/rails_event_store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arkency/rails_event_store/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/arkency/rails_event_store/statuses/42d0bea7ee02a912887aad9c81513d4fbe99f412"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":120,"changed_files":11}}