{"action":"created","comment":{"url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/comments/30978896","id":30978896,"diff_hunk":"@@ -0,0 +1,85 @@\n+module Jsonapi\n+  module Generators\n+    class SetupGenerator < Rails::Generators::Base\n+      desc 'Setup base gems and configuration'\n+      source_root File.expand_path('../../templates', __FILE__)\n+\n+      def add_gems\n+        insert_into_file 'Gemfile', global_gems, before: first_gem\n+        insert_into_file 'Gemfile', test_gems, after: \"group :test do\\n\"","path":"lib/generators/jsonapi/setup/setup_generator.rb","position":9,"original_position":9,"commit_id":"49bada5ac13f63c1865015b73d3d6cba3fb5a9d4","original_commit_id":"49bada5ac13f63c1865015b73d3d6cba3fb5a9d4","user":{"login":"dthyresson","id":1051633,"avatar_url":"https://avatars.githubusercontent.com/u/1051633?v=3","gravatar_id":"","url":"https://api.github.com/users/dthyresson","html_url":"https://github.com/dthyresson","followers_url":"https://api.github.com/users/dthyresson/followers","following_url":"https://api.github.com/users/dthyresson/following{/other_user}","gists_url":"https://api.github.com/users/dthyresson/gists{/gist_id}","starred_url":"https://api.github.com/users/dthyresson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dthyresson/subscriptions","organizations_url":"https://api.github.com/users/dthyresson/orgs","repos_url":"https://api.github.com/users/dthyresson/repos","events_url":"https://api.github.com/users/dthyresson/events{/privacy}","received_events_url":"https://api.github.com/users/dthyresson/received_events","type":"User","site_admin":false},"body":"Is \r\n\r\n```\r\ngem_group :test do\r\n  gem \"rspec-rails\"\r\nend\r\n```\r\n\r\nsmart enough to find the group if it exists and add the line?\r\n\r\nhttp://guides.rubyonrails.org/generators.html#gem-group","created_at":"2015-05-25T13:09:24Z","updated_at":"2015-05-25T13:09:24Z","html_url":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1#discussion_r30978896","pull_request_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/comments/30978896"},"html":{"href":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1#discussion_r30978896"},"pull_request":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1","id":36064040,"html_url":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1","diff_url":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1.diff","patch_url":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1.patch","issue_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/1","number":1,"state":"open","locked":false,"title":"Generator for base gems and configuration","user":{"login":"edwardloveall","id":49549,"avatar_url":"https://avatars.githubusercontent.com/u/49549?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardloveall","html_url":"https://github.com/edwardloveall","followers_url":"https://api.github.com/users/edwardloveall/followers","following_url":"https://api.github.com/users/edwardloveall/following{/other_user}","gists_url":"https://api.github.com/users/edwardloveall/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardloveall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardloveall/subscriptions","organizations_url":"https://api.github.com/users/edwardloveall/orgs","repos_url":"https://api.github.com/users/edwardloveall/repos","events_url":"https://api.github.com/users/edwardloveall/events{/privacy}","received_events_url":"https://api.github.com/users/edwardloveall/received_events","type":"User","site_admin":false},"body":"This adds the following gems:\r\n\r\n* active_model_serializers v0.8.3\r\n* foreman\r\n* puma\r\n* versionist\r\n* json-schema\r\n* json_spec\r\n\r\nconfigures:\r\n  * puma\r\n  * json_spec\r\n  * versionist\r\n\r\n and adds the json-schema rspec matcher.\r\n\r\n This more or less assumes you set your app up with suspenders, and the only problem I can see if you don't have a test group in your Gemfile. There are probably more issues though.","created_at":"2015-05-22T19:59:55Z","updated_at":"2015-05-25T13:09:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05748101d3bc74c3857695b540ca0e0e3a406167","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1/commits","review_comments_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1/comments","review_comment_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/1/comments","statuses_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/statuses/49bada5ac13f63c1865015b73d3d6cba3fb5a9d4","head":{"label":"IntrepidPursuits:el-setup","ref":"el-setup","sha":"49bada5ac13f63c1865015b73d3d6cba3fb5a9d4","user":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"repo":{"id":35296949,"name":"jsonapi-generators","full_name":"IntrepidPursuits/jsonapi-generators","owner":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IntrepidPursuits/jsonapi-generators","description":"","fork":false,"url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators","forks_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/forks","keys_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/teams","hooks_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/hooks","issue_events_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/events{/number}","events_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/events","assignees_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/assignees{/user}","branches_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/branches{/branch}","tags_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/tags","blobs_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/statuses/{sha}","languages_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/languages","stargazers_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/stargazers","contributors_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/contributors","subscribers_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/subscribers","subscription_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/subscription","commits_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/contents/{+path}","compare_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/merges","archive_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/downloads","issues_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues{/number}","pulls_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls{/number}","milestones_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/milestones{/number}","notifications_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/labels{/name}","releases_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/releases{/id}","created_at":"2015-05-08T19:08:08Z","updated_at":"2015-05-22T14:58:26Z","pushed_at":"2015-05-22T20:30:43Z","git_url":"git://github.com/IntrepidPursuits/jsonapi-generators.git","ssh_url":"git@github.com:IntrepidPursuits/jsonapi-generators.git","clone_url":"https://github.com/IntrepidPursuits/jsonapi-generators.git","svn_url":"https://github.com/IntrepidPursuits/jsonapi-generators","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"IntrepidPursuits:master","ref":"master","sha":"f8a251ae8a9db14b98d0bda0d6d40570aecece44","user":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"repo":{"id":35296949,"name":"jsonapi-generators","full_name":"IntrepidPursuits/jsonapi-generators","owner":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IntrepidPursuits/jsonapi-generators","description":"","fork":false,"url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators","forks_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/forks","keys_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/teams","hooks_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/hooks","issue_events_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/events{/number}","events_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/events","assignees_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/assignees{/user}","branches_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/branches{/branch}","tags_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/tags","blobs_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/statuses/{sha}","languages_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/languages","stargazers_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/stargazers","contributors_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/contributors","subscribers_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/subscribers","subscription_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/subscription","commits_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/contents/{+path}","compare_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/merges","archive_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/downloads","issues_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues{/number}","pulls_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls{/number}","milestones_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/milestones{/number}","notifications_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/labels{/name}","releases_url":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/releases{/id}","created_at":"2015-05-08T19:08:08Z","updated_at":"2015-05-22T14:58:26Z","pushed_at":"2015-05-22T20:30:43Z","git_url":"git://github.com/IntrepidPursuits/jsonapi-generators.git","ssh_url":"git@github.com:IntrepidPursuits/jsonapi-generators.git","clone_url":"https://github.com/IntrepidPursuits/jsonapi-generators.git","svn_url":"https://github.com/IntrepidPursuits/jsonapi-generators","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1"},"html":{"href":"https://github.com/IntrepidPursuits/jsonapi-generators/pull/1"},"issue":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/1"},"comments":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/IntrepidPursuits/jsonapi-generators/statuses/49bada5ac13f63c1865015b73d3d6cba3fb5a9d4"}}}}