{"action":"created","comment":{"url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/comments/71790768","id":71790768,"diff_hunk":"@@ -1,16 +1,15 @@\n-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'api'))\n-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'app'))\n+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'web'))\n $LOAD_PATH.unshift(File.dirname(__FILE__))\n \n require 'boot'\n \n Bundler.require :default, ENV['RACK_ENV']\n \n-Dir[File.expand_path('../../api/**/*.rb', __FILE__)].each do |f|\n-  require f\n-end\n+Dir[File.expand_path('../../lib/**/*.rb', __FILE__)].each { |f| require f }\n+Dir[File.expand_path('../../web/params/**/*.rb', __FILE__)].each { |f| require f }\n+Dir[File.expand_path('../../web/**/*_api.rb', __FILE__)].each { |f| require f }","path":"config/application.rb","position":16,"original_position":16,"commit_id":"2e4b11c6da9320a17694ccbc4c0360f03a4d30f1","original_commit_id":"2e4b11c6da9320a17694ccbc4c0360f03a4d30f1","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-07-21T21:29:53Z","updated_at":"2016-07-21T21:29:53Z","html_url":"https://github.com/wilsonsilva/grape-embryo/pull/6#discussion_r71790768","pull_request_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/comments/71790768"},"html":{"href":"https://github.com/wilsonsilva/grape-embryo/pull/6#discussion_r71790768"},"pull_request":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6","id":78390915,"html_url":"https://github.com/wilsonsilva/grape-embryo/pull/6","diff_url":"https://github.com/wilsonsilva/grape-embryo/pull/6.diff","patch_url":"https://github.com/wilsonsilva/grape-embryo/pull/6.patch","issue_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/6","number":6,"state":"open","locked":false,"title":"Redefine architecture","user":{"login":"wilsonsilva","id":645203,"avatar_url":"https://avatars.githubusercontent.com/u/645203?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonsilva","html_url":"https://github.com/wilsonsilva","followers_url":"https://api.github.com/users/wilsonsilva/followers","following_url":"https://api.github.com/users/wilsonsilva/following{/other_user}","gists_url":"https://api.github.com/users/wilsonsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonsilva/subscriptions","organizations_url":"https://api.github.com/users/wilsonsilva/orgs","repos_url":"https://api.github.com/users/wilsonsilva/repos","events_url":"https://api.github.com/users/wilsonsilva/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonsilva/received_events","type":"User","site_admin":false},"body":"I'm slowly implementing [The Clean Architecture](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html), by [Robert C. Martin (Uncle Bob)](https://en.wikipedia.org/wiki/Robert_Cecil_Martin). In that multi layered architecture, the business logic is independent of the delivery mechanism and the database. In this example app, our delivery mechanism is the web and Grape.\r\n\r\nAll the business logic should live within `lib/your_namespace`. In this example app, which is named `Embryo`, the business logic lives within `lib/embryo`. This makes it easy to extract your business logic into its own gem.\r\n\r\nAll the logic related to the delivery mechanism should live within `web/your_namespace`.  In this example all, it is `web/embryo`. The code in `web/embryo` can reference anything in `lib/embryo`, but the opposite should never happen.","created_at":"2016-07-21T21:29:42Z","updated_at":"2016-07-21T21:29:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00aba510df0d34150c6eceac41b29594e13150fc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6/commits","review_comments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6/comments","review_comment_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/6/comments","statuses_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/statuses/2e4b11c6da9320a17694ccbc4c0360f03a4d30f1","head":{"label":"wilsonsilva:redefine-architecture","ref":"redefine-architecture","sha":"2e4b11c6da9320a17694ccbc4c0360f03a4d30f1","user":{"login":"wilsonsilva","id":645203,"avatar_url":"https://avatars.githubusercontent.com/u/645203?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonsilva","html_url":"https://github.com/wilsonsilva","followers_url":"https://api.github.com/users/wilsonsilva/followers","following_url":"https://api.github.com/users/wilsonsilva/following{/other_user}","gists_url":"https://api.github.com/users/wilsonsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonsilva/subscriptions","organizations_url":"https://api.github.com/users/wilsonsilva/orgs","repos_url":"https://api.github.com/users/wilsonsilva/repos","events_url":"https://api.github.com/users/wilsonsilva/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonsilva/received_events","type":"User","site_admin":false},"repo":{"id":46315932,"name":"grape-embryo","full_name":"wilsonsilva/grape-embryo","owner":{"login":"wilsonsilva","id":645203,"avatar_url":"https://avatars.githubusercontent.com/u/645203?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonsilva","html_url":"https://github.com/wilsonsilva","followers_url":"https://api.github.com/users/wilsonsilva/followers","following_url":"https://api.github.com/users/wilsonsilva/following{/other_user}","gists_url":"https://api.github.com/users/wilsonsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonsilva/subscriptions","organizations_url":"https://api.github.com/users/wilsonsilva/orgs","repos_url":"https://api.github.com/users/wilsonsilva/repos","events_url":"https://api.github.com/users/wilsonsilva/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonsilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wilsonsilva/grape-embryo","description":"A Grape app mounted on Rack that helps you put together a RESTful API.","fork":false,"url":"https://api.github.com/repos/wilsonsilva/grape-embryo","forks_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/forks","keys_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/teams","hooks_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/hooks","issue_events_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/events{/number}","events_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/events","assignees_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/assignees{/user}","branches_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/branches{/branch}","tags_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/tags","blobs_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/refs{/sha}","trees_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/statuses/{sha}","languages_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/languages","stargazers_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/stargazers","contributors_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/contributors","subscribers_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/subscribers","subscription_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/subscription","commits_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/commits{/sha}","git_commits_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/commits{/sha}","comments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/comments{/number}","issue_comment_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/comments{/number}","contents_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/contents/{+path}","compare_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/merges","archive_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/downloads","issues_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues{/number}","pulls_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls{/number}","milestones_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/milestones{/number}","notifications_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/labels{/name}","releases_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/releases{/id}","deployments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/deployments","created_at":"2015-11-17T01:48:24Z","updated_at":"2016-07-15T16:01:07Z","pushed_at":"2016-07-21T21:29:43Z","git_url":"git://github.com/wilsonsilva/grape-embryo.git","ssh_url":"git@github.com:wilsonsilva/grape-embryo.git","clone_url":"https://github.com/wilsonsilva/grape-embryo.git","svn_url":"https://github.com/wilsonsilva/grape-embryo","homepage":null,"size":52,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"wilsonsilva:master","ref":"master","sha":"67fb156ab924a943b8d80b63b6e3d8dcee291e8e","user":{"login":"wilsonsilva","id":645203,"avatar_url":"https://avatars.githubusercontent.com/u/645203?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonsilva","html_url":"https://github.com/wilsonsilva","followers_url":"https://api.github.com/users/wilsonsilva/followers","following_url":"https://api.github.com/users/wilsonsilva/following{/other_user}","gists_url":"https://api.github.com/users/wilsonsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonsilva/subscriptions","organizations_url":"https://api.github.com/users/wilsonsilva/orgs","repos_url":"https://api.github.com/users/wilsonsilva/repos","events_url":"https://api.github.com/users/wilsonsilva/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonsilva/received_events","type":"User","site_admin":false},"repo":{"id":46315932,"name":"grape-embryo","full_name":"wilsonsilva/grape-embryo","owner":{"login":"wilsonsilva","id":645203,"avatar_url":"https://avatars.githubusercontent.com/u/645203?v=3","gravatar_id":"","url":"https://api.github.com/users/wilsonsilva","html_url":"https://github.com/wilsonsilva","followers_url":"https://api.github.com/users/wilsonsilva/followers","following_url":"https://api.github.com/users/wilsonsilva/following{/other_user}","gists_url":"https://api.github.com/users/wilsonsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/wilsonsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilsonsilva/subscriptions","organizations_url":"https://api.github.com/users/wilsonsilva/orgs","repos_url":"https://api.github.com/users/wilsonsilva/repos","events_url":"https://api.github.com/users/wilsonsilva/events{/privacy}","received_events_url":"https://api.github.com/users/wilsonsilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wilsonsilva/grape-embryo","description":"A Grape app mounted on Rack that helps you put together a RESTful API.","fork":false,"url":"https://api.github.com/repos/wilsonsilva/grape-embryo","forks_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/forks","keys_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/teams","hooks_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/hooks","issue_events_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/events{/number}","events_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/events","assignees_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/assignees{/user}","branches_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/branches{/branch}","tags_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/tags","blobs_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/refs{/sha}","trees_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/statuses/{sha}","languages_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/languages","stargazers_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/stargazers","contributors_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/contributors","subscribers_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/subscribers","subscription_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/subscription","commits_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/commits{/sha}","git_commits_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/git/commits{/sha}","comments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/comments{/number}","issue_comment_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/comments{/number}","contents_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/contents/{+path}","compare_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/merges","archive_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/downloads","issues_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues{/number}","pulls_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls{/number}","milestones_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/milestones{/number}","notifications_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/labels{/name}","releases_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/releases{/id}","deployments_url":"https://api.github.com/repos/wilsonsilva/grape-embryo/deployments","created_at":"2015-11-17T01:48:24Z","updated_at":"2016-07-15T16:01:07Z","pushed_at":"2016-07-21T21:29:43Z","git_url":"git://github.com/wilsonsilva/grape-embryo.git","ssh_url":"git@github.com:wilsonsilva/grape-embryo.git","clone_url":"https://github.com/wilsonsilva/grape-embryo.git","svn_url":"https://github.com/wilsonsilva/grape-embryo","homepage":null,"size":52,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6"},"html":{"href":"https://github.com/wilsonsilva/grape-embryo/pull/6"},"issue":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/6"},"comments":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/wilsonsilva/grape-embryo/statuses/2e4b11c6da9320a17694ccbc4c0360f03a4d30f1"}}}}
{"actor":{"display_login":"houndci-bot"}}