{"action":"created","comment":{"url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/comments/70117380","id":70117380,"diff_hunk":"@@ -3,119 +3,201 @@\n describe Mongoid::History::Attributes::Update do\n   describe '#attributes' do\n     describe '#insert_embeds_one_changes' do\n-      before(:all) do\n-        class ModelOne\n-          include Mongoid::Document\n-          include Mongoid::History::Trackable\n-          store_in collection: :model_ones\n-          embeds_one :emb_one\n-          track_history on: :fields\n+      context 'Case: relation without alias' do\n+        before(:all) do\n+          class ModelOne\n+            include Mongoid::Document\n+            include Mongoid::History::Trackable\n+            store_in collection: :model_ones\n+            embeds_one :emb_one\n+            track_history on: :fields\n+          end\n+\n+          class EmbOne\n+            include Mongoid::Document\n+            field :em_foo\n+            field :em_bar\n+            embedded_in :model_one\n+          end\n         end\n \n-        class EmbOne\n-          include Mongoid::Document\n-          field :em_foo\n-          field :em_bar\n-          embedded_in :model_one\n+        before(:each) do\n+          ModelOne.clear_trackable_memoization\n+          allow(base).to receive(:changes) { changes }\n         end\n-      end\n \n-      before(:each) do\n-        ModelOne.clear_trackable_memoization\n-        allow(base).to receive(:changes) { changes }\n-      end\n+        let(:obj_one) { ModelOne.new }\n+        let(:base) { described_class.new(obj_one) }\n+        let(:changes) do\n+          { 'emb_one' => [{ 'em_foo' => 'Em-Foo', 'em_bar' => 'Em-Bar' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+        end\n+        subject { base.attributes }\n \n-      let(:obj_one) { ModelOne.new }\n-      let(:base) { described_class.new(obj_one) }\n-      let(:changes) do\n-        { 'emb_one' => [{ 'em_foo' => 'Em-Foo', 'em_bar' => 'Em-Bar' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n-      end\n-      subject { base.attributes }\n+        context 'with permitted attributes' do\n+          before(:each) { ModelOne.track_history on: { emb_one: :em_foo } }\n+          it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new' }] }\n+        end\n \n-      context 'with permitted attributes' do\n-        before(:each) { ModelOne.track_history on: { emb_one: :em_foo } }\n-        it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new' }] }\n-      end\n+        context 'without permitted attributes' do\n+          before(:each) { ModelOne.track_history on: :emb_one }\n+          it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo', 'em_bar' => 'Em-Bar' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+        end\n \n-      context 'without permitted attributes' do\n-        before(:each) { ModelOne.track_history on: :emb_one }\n-        it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo', 'em_bar' => 'Em-Bar' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n-      end\n+        context 'when old value soft-deleted' do\n+          before(:each) { ModelOne.track_history on: :emb_one }\n+          let(:changes) do\n+            { 'emb_one' => [{ 'em_foo' => 'Em-Foo', 'deleted_at' => Time.now }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+          end\n+          it { expect(subject['emb_one']).to eq [{}, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+        end\n \n-      context 'when old value soft-deleted' do\n-        before(:each) { ModelOne.track_history on: :emb_one }\n-        let(:changes) do\n-          { 'emb_one' => [{ 'em_foo' => 'Em-Foo', 'deleted_at' => Time.now }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+        context 'when new value soft-deleted' do\n+          before(:each) { ModelOne.track_history on: :emb_one }\n+          let(:changes) do\n+            { 'emb_one' => [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new', 'deleted_at' => Time.now }] }\n+          end\n+          it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo' }, {}] }\n         end\n-        it { expect(subject['emb_one']).to eq [{}, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n-      end\n \n-      context 'when new value soft-deleted' do\n-        before(:each) { ModelOne.track_history on: :emb_one }\n-        let(:changes) do\n-          { 'emb_one' => [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new', 'deleted_at' => Time.now }] }\n+        context 'when not tracked' do\n+          before(:each) do\n+            ModelOne.track_history on: :fields\n+            allow(ModelOne).to receive(:dynamic_enabled?) { false }\n+          end\n+          it { expect(subject['emb_one']).to be_nil }\n+        end\n+\n+        after(:all) do\n+          Object.send(:remove_const, :ModelOne)\n+          Object.send(:remove_const, :EmbOne)\n         end\n-        it { expect(subject['emb_one']).to eq [{ 'em_foo' => 'Em-Foo' }, {}] }\n       end\n \n-      context 'when not tracked' do\n+      context 'Case: relation with alias' do\n+        before(:all) do\n+          class ModelOne\n+            include Mongoid::Document\n+            include Mongoid::History::Trackable\n+            store_in collection: :model_ones\n+            embeds_one :emb_one, store_as: :eon\n+            track_history on: :fields\n+          end\n+\n+          class EmbOne\n+            include Mongoid::Document\n+            field :em_foo\n+            field :em_bar\n+            embedded_in :model_one\n+          end\n+        end\n+\n         before(:each) do\n-          ModelOne.track_history on: :fields\n-          allow(ModelOne).to receive(:dynamic_enabled?) { false }\n+          ModelOne.clear_trackable_memoization\n+          ModelOne.track_history on: :emb_one\n+          allow(base).to receive(:changes) { changes }\n         end\n-        it { expect(subject['emb_one']).to be_nil }\n-      end\n \n-      after(:all) do\n-        Object.send(:remove_const, :ModelOne)\n-        Object.send(:remove_const, :EmbOne)\n+        let(:obj_one) { ModelOne.new }\n+        let(:base) { described_class.new(obj_one) }\n+        let(:changes) do\n+          { 'emb_one' => [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+        end\n+        subject { base.attributes }\n+        it { expect(subject['eon']).to eq [{ 'em_foo' => 'Em-Foo' }, { 'em_foo' => 'Em-Foo-new', 'em_bar' => 'Em-Bar-new' }] }\n+\n+        after(:all) do\n+          Object.send(:remove_const, :ModelOne)\n+          Object.send(:remove_const, :EmbOne)\n+        end\n       end\n     end\n \n     describe '#insert_embeds_many_changes' do\n-      before(:all) do\n-        class ModelOne\n-          include Mongoid::Document\n-          include Mongoid::History::Trackable\n-          store_in collection: :model_ones\n-          embeds_many :emb_ones\n-          track_history on: :fields\n+      context 'Case: relation without alias' do\n+        before(:all) do\n+          class ModelOne","path":"spec/unit/attributes/update_spec.rb","position":173,"original_position":173,"commit_id":"5e8fd283e8f658ce6bf179156a2b4a0503e94196","original_commit_id":"5e8fd283e8f658ce6bf179156a2b4a0503e94196","user":{"login":"dblock","id":542335,"avatar_url":"https://avatars.githubusercontent.com/u/542335?v=3","gravatar_id":"","url":"https://api.github.com/users/dblock","html_url":"https://github.com/dblock","followers_url":"https://api.github.com/users/dblock/followers","following_url":"https://api.github.com/users/dblock/following{/other_user}","gists_url":"https://api.github.com/users/dblock/gists{/gist_id}","starred_url":"https://api.github.com/users/dblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dblock/subscriptions","organizations_url":"https://api.github.com/users/dblock/orgs","repos_url":"https://api.github.com/users/dblock/repos","events_url":"https://api.github.com/users/dblock/events{/privacy}","received_events_url":"https://api.github.com/users/dblock/received_events","type":"User","site_admin":false},"body":"Ah yeah, you have to `const_set` the name. I suppose if you generate a random one for the class name that works, but does seem like a lot of work.","created_at":"2016-07-08T18:16:35Z","updated_at":"2016-07-08T18:16:35Z","html_url":"https://github.com/aq1018/mongoid-history/pull/157#discussion_r70117380","pull_request_url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157","_links":{"self":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/comments/70117380"},"html":{"href":"https://github.com/aq1018/mongoid-history/pull/157#discussion_r70117380"},"pull_request":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157"}}},"pull_request":{"url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157","id":76714674,"html_url":"https://github.com/aq1018/mongoid-history/pull/157","diff_url":"https://github.com/aq1018/mongoid-history/pull/157.diff","patch_url":"https://github.com/aq1018/mongoid-history/pull/157.patch","issue_url":"https://api.github.com/repos/aq1018/mongoid-history/issues/157","number":157,"state":"closed","locked":false,"title":"Fix Bug: when embedded attributes passed under relation name instead of its alias","user":{"login":"JagdeepSingh","id":1057835,"avatar_url":"https://avatars.githubusercontent.com/u/1057835?v=3","gravatar_id":"","url":"https://api.github.com/users/JagdeepSingh","html_url":"https://github.com/JagdeepSingh","followers_url":"https://api.github.com/users/JagdeepSingh/followers","following_url":"https://api.github.com/users/JagdeepSingh/following{/other_user}","gists_url":"https://api.github.com/users/JagdeepSingh/gists{/gist_id}","starred_url":"https://api.github.com/users/JagdeepSingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagdeepSingh/subscriptions","organizations_url":"https://api.github.com/users/JagdeepSingh/orgs","repos_url":"https://api.github.com/users/JagdeepSingh/repos","events_url":"https://api.github.com/users/JagdeepSingh/events{/privacy}","received_events_url":"https://api.github.com/users/JagdeepSingh/received_events","type":"User","site_admin":false},"body":"@dblock please merge this one too.","created_at":"2016-07-08T07:57:14Z","updated_at":"2016-07-08T18:16:35Z","closed_at":"2016-07-08T14:03:57Z","merged_at":"2016-07-08T14:03:57Z","merge_commit_sha":"215de1668d1e9562a0d965cc7732780fa90d8a90","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157/commits","review_comments_url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157/comments","review_comment_url":"https://api.github.com/repos/aq1018/mongoid-history/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aq1018/mongoid-history/issues/157/comments","statuses_url":"https://api.github.com/repos/aq1018/mongoid-history/statuses/5e8fd283e8f658ce6bf179156a2b4a0503e94196","head":{"label":"JagdeepSingh:fix-bug","ref":"fix-bug","sha":"5e8fd283e8f658ce6bf179156a2b4a0503e94196","user":{"login":"JagdeepSingh","id":1057835,"avatar_url":"https://avatars.githubusercontent.com/u/1057835?v=3","gravatar_id":"","url":"https://api.github.com/users/JagdeepSingh","html_url":"https://github.com/JagdeepSingh","followers_url":"https://api.github.com/users/JagdeepSingh/followers","following_url":"https://api.github.com/users/JagdeepSingh/following{/other_user}","gists_url":"https://api.github.com/users/JagdeepSingh/gists{/gist_id}","starred_url":"https://api.github.com/users/JagdeepSingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagdeepSingh/subscriptions","organizations_url":"https://api.github.com/users/JagdeepSingh/orgs","repos_url":"https://api.github.com/users/JagdeepSingh/repos","events_url":"https://api.github.com/users/JagdeepSingh/events{/privacy}","received_events_url":"https://api.github.com/users/JagdeepSingh/received_events","type":"User","site_admin":false},"repo":{"id":60522665,"name":"mongoid-history","full_name":"JagdeepSingh/mongoid-history","owner":{"login":"JagdeepSingh","id":1057835,"avatar_url":"https://avatars.githubusercontent.com/u/1057835?v=3","gravatar_id":"","url":"https://api.github.com/users/JagdeepSingh","html_url":"https://github.com/JagdeepSingh","followers_url":"https://api.github.com/users/JagdeepSingh/followers","following_url":"https://api.github.com/users/JagdeepSingh/following{/other_user}","gists_url":"https://api.github.com/users/JagdeepSingh/gists{/gist_id}","starred_url":"https://api.github.com/users/JagdeepSingh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JagdeepSingh/subscriptions","organizations_url":"https://api.github.com/users/JagdeepSingh/orgs","repos_url":"https://api.github.com/users/JagdeepSingh/repos","events_url":"https://api.github.com/users/JagdeepSingh/events{/privacy}","received_events_url":"https://api.github.com/users/JagdeepSingh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JagdeepSingh/mongoid-history","description":"multi-user non-linear history tracking, auditing, undo, redo for mongoid","fork":true,"url":"https://api.github.com/repos/JagdeepSingh/mongoid-history","forks_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/forks","keys_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/teams","hooks_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/hooks","issue_events_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/issues/events{/number}","events_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/events","assignees_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/assignees{/user}","branches_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/branches{/branch}","tags_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/tags","blobs_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/git/refs{/sha}","trees_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/statuses/{sha}","languages_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/languages","stargazers_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/stargazers","contributors_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/contributors","subscribers_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/subscribers","subscription_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/subscription","commits_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/commits{/sha}","git_commits_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/git/commits{/sha}","comments_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/comments{/number}","issue_comment_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/issues/comments{/number}","contents_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/contents/{+path}","compare_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/merges","archive_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/downloads","issues_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/issues{/number}","pulls_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/pulls{/number}","milestones_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/milestones{/number}","notifications_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/labels{/name}","releases_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/releases{/id}","deployments_url":"https://api.github.com/repos/JagdeepSingh/mongoid-history/deployments","created_at":"2016-06-06T11:26:56Z","updated_at":"2016-06-06T11:26:56Z","pushed_at":"2016-07-08T07:55:00Z","git_url":"git://github.com/JagdeepSingh/mongoid-history.git","ssh_url":"git@github.com:JagdeepSingh/mongoid-history.git","clone_url":"https://github.com/JagdeepSingh/mongoid-history.git","svn_url":"https://github.com/JagdeepSingh/mongoid-history","homepage":"https://rubygems.org/gems/mongoid-history","size":438,"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":"aq1018:master","ref":"master","sha":"8c3281ee76192540678a9f5c90f7b3b450d0dbb9","user":{"login":"aq1018","id":18140,"avatar_url":"https://avatars.githubusercontent.com/u/18140?v=3","gravatar_id":"","url":"https://api.github.com/users/aq1018","html_url":"https://github.com/aq1018","followers_url":"https://api.github.com/users/aq1018/followers","following_url":"https://api.github.com/users/aq1018/following{/other_user}","gists_url":"https://api.github.com/users/aq1018/gists{/gist_id}","starred_url":"https://api.github.com/users/aq1018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aq1018/subscriptions","organizations_url":"https://api.github.com/users/aq1018/orgs","repos_url":"https://api.github.com/users/aq1018/repos","events_url":"https://api.github.com/users/aq1018/events{/privacy}","received_events_url":"https://api.github.com/users/aq1018/received_events","type":"User","site_admin":false},"repo":{"id":1429138,"name":"mongoid-history","full_name":"aq1018/mongoid-history","owner":{"login":"aq1018","id":18140,"avatar_url":"https://avatars.githubusercontent.com/u/18140?v=3","gravatar_id":"","url":"https://api.github.com/users/aq1018","html_url":"https://github.com/aq1018","followers_url":"https://api.github.com/users/aq1018/followers","following_url":"https://api.github.com/users/aq1018/following{/other_user}","gists_url":"https://api.github.com/users/aq1018/gists{/gist_id}","starred_url":"https://api.github.com/users/aq1018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aq1018/subscriptions","organizations_url":"https://api.github.com/users/aq1018/orgs","repos_url":"https://api.github.com/users/aq1018/repos","events_url":"https://api.github.com/users/aq1018/events{/privacy}","received_events_url":"https://api.github.com/users/aq1018/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aq1018/mongoid-history","description":"multi-user non-linear history tracking, auditing, undo, redo for mongoid","fork":false,"url":"https://api.github.com/repos/aq1018/mongoid-history","forks_url":"https://api.github.com/repos/aq1018/mongoid-history/forks","keys_url":"https://api.github.com/repos/aq1018/mongoid-history/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aq1018/mongoid-history/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aq1018/mongoid-history/teams","hooks_url":"https://api.github.com/repos/aq1018/mongoid-history/hooks","issue_events_url":"https://api.github.com/repos/aq1018/mongoid-history/issues/events{/number}","events_url":"https://api.github.com/repos/aq1018/mongoid-history/events","assignees_url":"https://api.github.com/repos/aq1018/mongoid-history/assignees{/user}","branches_url":"https://api.github.com/repos/aq1018/mongoid-history/branches{/branch}","tags_url":"https://api.github.com/repos/aq1018/mongoid-history/tags","blobs_url":"https://api.github.com/repos/aq1018/mongoid-history/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aq1018/mongoid-history/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aq1018/mongoid-history/git/refs{/sha}","trees_url":"https://api.github.com/repos/aq1018/mongoid-history/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aq1018/mongoid-history/statuses/{sha}","languages_url":"https://api.github.com/repos/aq1018/mongoid-history/languages","stargazers_url":"https://api.github.com/repos/aq1018/mongoid-history/stargazers","contributors_url":"https://api.github.com/repos/aq1018/mongoid-history/contributors","subscribers_url":"https://api.github.com/repos/aq1018/mongoid-history/subscribers","subscription_url":"https://api.github.com/repos/aq1018/mongoid-history/subscription","commits_url":"https://api.github.com/repos/aq1018/mongoid-history/commits{/sha}","git_commits_url":"https://api.github.com/repos/aq1018/mongoid-history/git/commits{/sha}","comments_url":"https://api.github.com/repos/aq1018/mongoid-history/comments{/number}","issue_comment_url":"https://api.github.com/repos/aq1018/mongoid-history/issues/comments{/number}","contents_url":"https://api.github.com/repos/aq1018/mongoid-history/contents/{+path}","compare_url":"https://api.github.com/repos/aq1018/mongoid-history/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aq1018/mongoid-history/merges","archive_url":"https://api.github.com/repos/aq1018/mongoid-history/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aq1018/mongoid-history/downloads","issues_url":"https://api.github.com/repos/aq1018/mongoid-history/issues{/number}","pulls_url":"https://api.github.com/repos/aq1018/mongoid-history/pulls{/number}","milestones_url":"https://api.github.com/repos/aq1018/mongoid-history/milestones{/number}","notifications_url":"https://api.github.com/repos/aq1018/mongoid-history/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aq1018/mongoid-history/labels{/name}","releases_url":"https://api.github.com/repos/aq1018/mongoid-history/releases{/id}","deployments_url":"https://api.github.com/repos/aq1018/mongoid-history/deployments","created_at":"2011-03-02T03:35:17Z","updated_at":"2016-07-07T02:53:01Z","pushed_at":"2016-07-08T14:03:57Z","git_url":"git://github.com/aq1018/mongoid-history.git","ssh_url":"git@github.com:aq1018/mongoid-history.git","clone_url":"https://github.com/aq1018/mongoid-history.git","svn_url":"https://github.com/aq1018/mongoid-history","homepage":"https://rubygems.org/gems/mongoid-history","size":636,"stargazers_count":297,"watchers_count":297,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":35,"forks":101,"open_issues":35,"watchers":297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157"},"html":{"href":"https://github.com/aq1018/mongoid-history/pull/157"},"issue":{"href":"https://api.github.com/repos/aq1018/mongoid-history/issues/157"},"comments":{"href":"https://api.github.com/repos/aq1018/mongoid-history/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aq1018/mongoid-history/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/aq1018/mongoid-history/statuses/5e8fd283e8f658ce6bf179156a2b4a0503e94196"}}}}
{"actor":{"display_login":"dblock"}}