{"action":"created","comment":{"url":"https://api.github.com/repos/devnacho/mountain_view/pulls/comments/61279011","id":61279011,"diff_hunk":"@@ -0,0 +1,22 @@\n+# encoding: UTF-8\n+# This file is auto-generated from the current state of the database. Instead\n+# of editing this file, please use the migrations feature of Active Record to\n+# incrementally modify your database, and then regenerate this schema definition.\n+#\n+# Note that this schema.rb definition is the authoritative source for your\n+# database schema. If you need to create the application database on another\n+# system, you should be using db:schema:load, not running all the migrations\n+# from scratch. The latter is a flawed and unsustainable approach (the more migrations\n+# you'll amass, the slower it'll run and the greater likelihood for issues).\n+#\n+# It's strongly recommended that you check this file into your version control system.","path":"test/dummy/db/schema.rb","position":12,"original_position":12,"commit_id":"9c5a23be59ef82e628b3fd0fac3bac3b42719bcc","original_commit_id":"9c5a23be59ef82e628b3fd0fac3bac3b42719bcc","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long. [86/80]","created_at":"2016-04-27T15:25:02Z","updated_at":"2016-04-27T15:25:02Z","html_url":"https://github.com/devnacho/mountain_view/pull/40#discussion_r61279011","pull_request_url":"https://api.github.com/repos/devnacho/mountain_view/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/comments/61279011"},"html":{"href":"https://github.com/devnacho/mountain_view/pull/40#discussion_r61279011"},"pull_request":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/devnacho/mountain_view/pulls/40","id":68073042,"html_url":"https://github.com/devnacho/mountain_view/pull/40","diff_url":"https://github.com/devnacho/mountain_view/pull/40.diff","patch_url":"https://github.com/devnacho/mountain_view/pull/40.patch","issue_url":"https://api.github.com/repos/devnacho/mountain_view/issues/40","number":40,"state":"open","locked":false,"title":"Add support for mocking a form builder objects","user":{"login":"drakmail","id":869453,"avatar_url":"https://avatars.githubusercontent.com/u/869453?v=3","gravatar_id":"","url":"https://api.github.com/users/drakmail","html_url":"https://github.com/drakmail","followers_url":"https://api.github.com/users/drakmail/followers","following_url":"https://api.github.com/users/drakmail/following{/other_user}","gists_url":"https://api.github.com/users/drakmail/gists{/gist_id}","starred_url":"https://api.github.com/users/drakmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drakmail/subscriptions","organizations_url":"https://api.github.com/users/drakmail/orgs","repos_url":"https://api.github.com/users/drakmail/repos","events_url":"https://api.github.com/users/drakmail/events{/privacy}","received_events_url":"https://api.github.com/users/drakmail/received_events","type":"User","site_admin":false},"body":"As a @tombeynon commented in a #26 it's not possible to generate Styleguides for components that need a form builder instance. In this PR I try to implement a possible solution for that issue. Now it's possible to pass in stubs config an ActiveRecord based class which will be used for mocking a form_builder need for component.\r\n\r\nFor example: if a component need a `form` parameter (which is must be an instance of Form Builder for, for example, `Something` model), now it's possible to mock it in stubs file like this:\r\n\r\n```yml\r\n:meta: 'information about the component button'\r\n:stubs:\r\n  -\r\n    :text: \"Hello\"\r\n    :form:\r\n      !ruby/object:Something\r\n        attributes:\r\n          item: \"test\" # also you could pass a model attributes\r\n```","created_at":"2016-04-27T15:24:55Z","updated_at":"2016-04-27T15:25:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"870b63f67366bb7695abbf0c8b30749d52b32a16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/devnacho/mountain_view/pulls/40/commits","review_comments_url":"https://api.github.com/repos/devnacho/mountain_view/pulls/40/comments","review_comment_url":"https://api.github.com/repos/devnacho/mountain_view/pulls/comments{/number}","comments_url":"https://api.github.com/repos/devnacho/mountain_view/issues/40/comments","statuses_url":"https://api.github.com/repos/devnacho/mountain_view/statuses/9c5a23be59ef82e628b3fd0fac3bac3b42719bcc","head":{"label":"drakmail:master","ref":"master","sha":"9c5a23be59ef82e628b3fd0fac3bac3b42719bcc","user":{"login":"drakmail","id":869453,"avatar_url":"https://avatars.githubusercontent.com/u/869453?v=3","gravatar_id":"","url":"https://api.github.com/users/drakmail","html_url":"https://github.com/drakmail","followers_url":"https://api.github.com/users/drakmail/followers","following_url":"https://api.github.com/users/drakmail/following{/other_user}","gists_url":"https://api.github.com/users/drakmail/gists{/gist_id}","starred_url":"https://api.github.com/users/drakmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drakmail/subscriptions","organizations_url":"https://api.github.com/users/drakmail/orgs","repos_url":"https://api.github.com/users/drakmail/repos","events_url":"https://api.github.com/users/drakmail/events{/privacy}","received_events_url":"https://api.github.com/users/drakmail/received_events","type":"User","site_admin":false},"repo":{"id":57205816,"name":"mountain_view","full_name":"drakmail/mountain_view","owner":{"login":"drakmail","id":869453,"avatar_url":"https://avatars.githubusercontent.com/u/869453?v=3","gravatar_id":"","url":"https://api.github.com/users/drakmail","html_url":"https://github.com/drakmail","followers_url":"https://api.github.com/users/drakmail/followers","following_url":"https://api.github.com/users/drakmail/following{/other_user}","gists_url":"https://api.github.com/users/drakmail/gists{/gist_id}","starred_url":"https://api.github.com/users/drakmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drakmail/subscriptions","organizations_url":"https://api.github.com/users/drakmail/orgs","repos_url":"https://api.github.com/users/drakmail/repos","events_url":"https://api.github.com/users/drakmail/events{/privacy}","received_events_url":"https://api.github.com/users/drakmail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drakmail/mountain_view","description":"Living styleguide for Rails","fork":true,"url":"https://api.github.com/repos/drakmail/mountain_view","forks_url":"https://api.github.com/repos/drakmail/mountain_view/forks","keys_url":"https://api.github.com/repos/drakmail/mountain_view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drakmail/mountain_view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drakmail/mountain_view/teams","hooks_url":"https://api.github.com/repos/drakmail/mountain_view/hooks","issue_events_url":"https://api.github.com/repos/drakmail/mountain_view/issues/events{/number}","events_url":"https://api.github.com/repos/drakmail/mountain_view/events","assignees_url":"https://api.github.com/repos/drakmail/mountain_view/assignees{/user}","branches_url":"https://api.github.com/repos/drakmail/mountain_view/branches{/branch}","tags_url":"https://api.github.com/repos/drakmail/mountain_view/tags","blobs_url":"https://api.github.com/repos/drakmail/mountain_view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drakmail/mountain_view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drakmail/mountain_view/git/refs{/sha}","trees_url":"https://api.github.com/repos/drakmail/mountain_view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drakmail/mountain_view/statuses/{sha}","languages_url":"https://api.github.com/repos/drakmail/mountain_view/languages","stargazers_url":"https://api.github.com/repos/drakmail/mountain_view/stargazers","contributors_url":"https://api.github.com/repos/drakmail/mountain_view/contributors","subscribers_url":"https://api.github.com/repos/drakmail/mountain_view/subscribers","subscription_url":"https://api.github.com/repos/drakmail/mountain_view/subscription","commits_url":"https://api.github.com/repos/drakmail/mountain_view/commits{/sha}","git_commits_url":"https://api.github.com/repos/drakmail/mountain_view/git/commits{/sha}","comments_url":"https://api.github.com/repos/drakmail/mountain_view/comments{/number}","issue_comment_url":"https://api.github.com/repos/drakmail/mountain_view/issues/comments{/number}","contents_url":"https://api.github.com/repos/drakmail/mountain_view/contents/{+path}","compare_url":"https://api.github.com/repos/drakmail/mountain_view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drakmail/mountain_view/merges","archive_url":"https://api.github.com/repos/drakmail/mountain_view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drakmail/mountain_view/downloads","issues_url":"https://api.github.com/repos/drakmail/mountain_view/issues{/number}","pulls_url":"https://api.github.com/repos/drakmail/mountain_view/pulls{/number}","milestones_url":"https://api.github.com/repos/drakmail/mountain_view/milestones{/number}","notifications_url":"https://api.github.com/repos/drakmail/mountain_view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drakmail/mountain_view/labels{/name}","releases_url":"https://api.github.com/repos/drakmail/mountain_view/releases{/id}","deployments_url":"https://api.github.com/repos/drakmail/mountain_view/deployments","created_at":"2016-04-27T10:44:14Z","updated_at":"2016-04-27T10:44:15Z","pushed_at":"2016-04-27T15:16:13Z","git_url":"git://github.com/drakmail/mountain_view.git","ssh_url":"git@github.com:drakmail/mountain_view.git","clone_url":"https://github.com/drakmail/mountain_view.git","svn_url":"https://github.com/drakmail/mountain_view","homepage":"","size":161,"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":"devnacho:master","ref":"master","sha":"3038adea60ebf58e2390885075425fb8a09b4d1d","user":{"login":"devnacho","id":623766,"avatar_url":"https://avatars.githubusercontent.com/u/623766?v=3","gravatar_id":"","url":"https://api.github.com/users/devnacho","html_url":"https://github.com/devnacho","followers_url":"https://api.github.com/users/devnacho/followers","following_url":"https://api.github.com/users/devnacho/following{/other_user}","gists_url":"https://api.github.com/users/devnacho/gists{/gist_id}","starred_url":"https://api.github.com/users/devnacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnacho/subscriptions","organizations_url":"https://api.github.com/users/devnacho/orgs","repos_url":"https://api.github.com/users/devnacho/repos","events_url":"https://api.github.com/users/devnacho/events{/privacy}","received_events_url":"https://api.github.com/users/devnacho/received_events","type":"User","site_admin":false},"repo":{"id":32496094,"name":"mountain_view","full_name":"devnacho/mountain_view","owner":{"login":"devnacho","id":623766,"avatar_url":"https://avatars.githubusercontent.com/u/623766?v=3","gravatar_id":"","url":"https://api.github.com/users/devnacho","html_url":"https://github.com/devnacho","followers_url":"https://api.github.com/users/devnacho/followers","following_url":"https://api.github.com/users/devnacho/following{/other_user}","gists_url":"https://api.github.com/users/devnacho/gists{/gist_id}","starred_url":"https://api.github.com/users/devnacho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devnacho/subscriptions","organizations_url":"https://api.github.com/users/devnacho/orgs","repos_url":"https://api.github.com/users/devnacho/repos","events_url":"https://api.github.com/users/devnacho/events{/privacy}","received_events_url":"https://api.github.com/users/devnacho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devnacho/mountain_view","description":"Living styleguide for Rails","fork":false,"url":"https://api.github.com/repos/devnacho/mountain_view","forks_url":"https://api.github.com/repos/devnacho/mountain_view/forks","keys_url":"https://api.github.com/repos/devnacho/mountain_view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devnacho/mountain_view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devnacho/mountain_view/teams","hooks_url":"https://api.github.com/repos/devnacho/mountain_view/hooks","issue_events_url":"https://api.github.com/repos/devnacho/mountain_view/issues/events{/number}","events_url":"https://api.github.com/repos/devnacho/mountain_view/events","assignees_url":"https://api.github.com/repos/devnacho/mountain_view/assignees{/user}","branches_url":"https://api.github.com/repos/devnacho/mountain_view/branches{/branch}","tags_url":"https://api.github.com/repos/devnacho/mountain_view/tags","blobs_url":"https://api.github.com/repos/devnacho/mountain_view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devnacho/mountain_view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devnacho/mountain_view/git/refs{/sha}","trees_url":"https://api.github.com/repos/devnacho/mountain_view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devnacho/mountain_view/statuses/{sha}","languages_url":"https://api.github.com/repos/devnacho/mountain_view/languages","stargazers_url":"https://api.github.com/repos/devnacho/mountain_view/stargazers","contributors_url":"https://api.github.com/repos/devnacho/mountain_view/contributors","subscribers_url":"https://api.github.com/repos/devnacho/mountain_view/subscribers","subscription_url":"https://api.github.com/repos/devnacho/mountain_view/subscription","commits_url":"https://api.github.com/repos/devnacho/mountain_view/commits{/sha}","git_commits_url":"https://api.github.com/repos/devnacho/mountain_view/git/commits{/sha}","comments_url":"https://api.github.com/repos/devnacho/mountain_view/comments{/number}","issue_comment_url":"https://api.github.com/repos/devnacho/mountain_view/issues/comments{/number}","contents_url":"https://api.github.com/repos/devnacho/mountain_view/contents/{+path}","compare_url":"https://api.github.com/repos/devnacho/mountain_view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devnacho/mountain_view/merges","archive_url":"https://api.github.com/repos/devnacho/mountain_view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devnacho/mountain_view/downloads","issues_url":"https://api.github.com/repos/devnacho/mountain_view/issues{/number}","pulls_url":"https://api.github.com/repos/devnacho/mountain_view/pulls{/number}","milestones_url":"https://api.github.com/repos/devnacho/mountain_view/milestones{/number}","notifications_url":"https://api.github.com/repos/devnacho/mountain_view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devnacho/mountain_view/labels{/name}","releases_url":"https://api.github.com/repos/devnacho/mountain_view/releases{/id}","deployments_url":"https://api.github.com/repos/devnacho/mountain_view/deployments","created_at":"2015-03-19T02:24:54Z","updated_at":"2016-04-27T10:44:11Z","pushed_at":"2016-04-27T15:24:56Z","git_url":"git://github.com/devnacho/mountain_view.git","ssh_url":"git@github.com:devnacho/mountain_view.git","clone_url":"https://github.com/devnacho/mountain_view.git","svn_url":"https://github.com/devnacho/mountain_view","homepage":"","size":244,"stargazers_count":145,"watchers_count":145,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":9,"forks":17,"open_issues":9,"watchers":145,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/40"},"html":{"href":"https://github.com/devnacho/mountain_view/pull/40"},"issue":{"href":"https://api.github.com/repos/devnacho/mountain_view/issues/40"},"comments":{"href":"https://api.github.com/repos/devnacho/mountain_view/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/devnacho/mountain_view/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/devnacho/mountain_view/statuses/9c5a23be59ef82e628b3fd0fac3bac3b42719bcc"}}}}