{"action":"opened","number":286,"pull_request":{"url":"https://api.github.com/repos/ambethia/recaptcha/pulls/286","id":206260441,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjYwNDQx","html_url":"https://github.com/ambethia/recaptcha/pull/286","diff_url":"https://github.com/ambethia/recaptcha/pull/286.diff","patch_url":"https://github.com/ambethia/recaptcha/pull/286.patch","issue_url":"https://api.github.com/repos/ambethia/recaptcha/issues/286","number":286,"state":"open","locked":false,"title":"Prefer ENV['RAILS_ENV'] over ENV['RACK_ENV'] when determing current environment","user":{"login":"twalpole","id":16556,"node_id":"MDQ6VXNlcjE2NTU2","avatar_url":"https://avatars2.githubusercontent.com/u/16556?v=4","gravatar_id":"","url":"https://api.github.com/users/twalpole","html_url":"https://github.com/twalpole","followers_url":"https://api.github.com/users/twalpole/followers","following_url":"https://api.github.com/users/twalpole/following{/other_user}","gists_url":"https://api.github.com/users/twalpole/gists{/gist_id}","starred_url":"https://api.github.com/users/twalpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twalpole/subscriptions","organizations_url":"https://api.github.com/users/twalpole/orgs","repos_url":"https://api.github.com/users/twalpole/repos","events_url":"https://api.github.com/users/twalpole/events{/privacy}","received_events_url":"https://api.github.com/users/twalpole/received_events","type":"User","site_admin":false},"body":"When testing with Capybara it's possible to have the RAILS_ENV environment variable == 'test' and RACK_ENV not set.  In this case Puma (if used as the server) can default RACK_ENV to 'development'.  Since this gem currently prefers RACK_ENV over RAILS_ENV it leads to thinking it is in development mode when it is actually in test mode.  This PR swaps over to preferring RAILS_ENV over RACK_ENV which probably makes sense since when using Rails RAILS_ENV will more accurately reflect the current mode.","created_at":"2018-08-05T22:11:29Z","updated_at":"2018-08-05T22:11:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ambethia/recaptcha/pulls/286/commits","review_comments_url":"https://api.github.com/repos/ambethia/recaptcha/pulls/286/comments","review_comment_url":"https://api.github.com/repos/ambethia/recaptcha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ambethia/recaptcha/issues/286/comments","statuses_url":"https://api.github.com/repos/ambethia/recaptcha/statuses/522da560c1c55890de6ea8b52035366e83c21feb","head":{"label":"twalpole:rails_env","ref":"rails_env","sha":"522da560c1c55890de6ea8b52035366e83c21feb","user":{"login":"twalpole","id":16556,"node_id":"MDQ6VXNlcjE2NTU2","avatar_url":"https://avatars2.githubusercontent.com/u/16556?v=4","gravatar_id":"","url":"https://api.github.com/users/twalpole","html_url":"https://github.com/twalpole","followers_url":"https://api.github.com/users/twalpole/followers","following_url":"https://api.github.com/users/twalpole/following{/other_user}","gists_url":"https://api.github.com/users/twalpole/gists{/gist_id}","starred_url":"https://api.github.com/users/twalpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twalpole/subscriptions","organizations_url":"https://api.github.com/users/twalpole/orgs","repos_url":"https://api.github.com/users/twalpole/repos","events_url":"https://api.github.com/users/twalpole/events{/privacy}","received_events_url":"https://api.github.com/users/twalpole/received_events","type":"User","site_admin":false},"repo":{"id":143650693,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM2NTA2OTM=","name":"recaptcha","full_name":"twalpole/recaptcha","owner":{"login":"twalpole","id":16556,"node_id":"MDQ6VXNlcjE2NTU2","avatar_url":"https://avatars2.githubusercontent.com/u/16556?v=4","gravatar_id":"","url":"https://api.github.com/users/twalpole","html_url":"https://github.com/twalpole","followers_url":"https://api.github.com/users/twalpole/followers","following_url":"https://api.github.com/users/twalpole/following{/other_user}","gists_url":"https://api.github.com/users/twalpole/gists{/gist_id}","starred_url":"https://api.github.com/users/twalpole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twalpole/subscriptions","organizations_url":"https://api.github.com/users/twalpole/orgs","repos_url":"https://api.github.com/users/twalpole/repos","events_url":"https://api.github.com/users/twalpole/events{/privacy}","received_events_url":"https://api.github.com/users/twalpole/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/twalpole/recaptcha","description":"ReCaptcha helpers for ruby apps","fork":true,"url":"https://api.github.com/repos/twalpole/recaptcha","forks_url":"https://api.github.com/repos/twalpole/recaptcha/forks","keys_url":"https://api.github.com/repos/twalpole/recaptcha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twalpole/recaptcha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twalpole/recaptcha/teams","hooks_url":"https://api.github.com/repos/twalpole/recaptcha/hooks","issue_events_url":"https://api.github.com/repos/twalpole/recaptcha/issues/events{/number}","events_url":"https://api.github.com/repos/twalpole/recaptcha/events","assignees_url":"https://api.github.com/repos/twalpole/recaptcha/assignees{/user}","branches_url":"https://api.github.com/repos/twalpole/recaptcha/branches{/branch}","tags_url":"https://api.github.com/repos/twalpole/recaptcha/tags","blobs_url":"https://api.github.com/repos/twalpole/recaptcha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twalpole/recaptcha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twalpole/recaptcha/git/refs{/sha}","trees_url":"https://api.github.com/repos/twalpole/recaptcha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twalpole/recaptcha/statuses/{sha}","languages_url":"https://api.github.com/repos/twalpole/recaptcha/languages","stargazers_url":"https://api.github.com/repos/twalpole/recaptcha/stargazers","contributors_url":"https://api.github.com/repos/twalpole/recaptcha/contributors","subscribers_url":"https://api.github.com/repos/twalpole/recaptcha/subscribers","subscription_url":"https://api.github.com/repos/twalpole/recaptcha/subscription","commits_url":"https://api.github.com/repos/twalpole/recaptcha/commits{/sha}","git_commits_url":"https://api.github.com/repos/twalpole/recaptcha/git/commits{/sha}","comments_url":"https://api.github.com/repos/twalpole/recaptcha/comments{/number}","issue_comment_url":"https://api.github.com/repos/twalpole/recaptcha/issues/comments{/number}","contents_url":"https://api.github.com/repos/twalpole/recaptcha/contents/{+path}","compare_url":"https://api.github.com/repos/twalpole/recaptcha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twalpole/recaptcha/merges","archive_url":"https://api.github.com/repos/twalpole/recaptcha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twalpole/recaptcha/downloads","issues_url":"https://api.github.com/repos/twalpole/recaptcha/issues{/number}","pulls_url":"https://api.github.com/repos/twalpole/recaptcha/pulls{/number}","milestones_url":"https://api.github.com/repos/twalpole/recaptcha/milestones{/number}","notifications_url":"https://api.github.com/repos/twalpole/recaptcha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twalpole/recaptcha/labels{/name}","releases_url":"https://api.github.com/repos/twalpole/recaptcha/releases{/id}","deployments_url":"https://api.github.com/repos/twalpole/recaptcha/deployments","created_at":"2018-08-05T22:00:30Z","updated_at":"2018-08-05T22:00:32Z","pushed_at":"2018-08-05T22:07:41Z","git_url":"git://github.com/twalpole/recaptcha.git","ssh_url":"git@github.com:twalpole/recaptcha.git","clone_url":"https://github.com/twalpole/recaptcha.git","svn_url":"https://github.com/twalpole/recaptcha","homepage":"http://github.com/ambethia/recaptcha","size":534,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ambethia:master","ref":"master","sha":"56b135ad03cca7914ba3766005fc42a6c02114a8","user":{"login":"ambethia","id":298,"node_id":"MDQ6VXNlcjI5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/298?v=4","gravatar_id":"","url":"https://api.github.com/users/ambethia","html_url":"https://github.com/ambethia","followers_url":"https://api.github.com/users/ambethia/followers","following_url":"https://api.github.com/users/ambethia/following{/other_user}","gists_url":"https://api.github.com/users/ambethia/gists{/gist_id}","starred_url":"https://api.github.com/users/ambethia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambethia/subscriptions","organizations_url":"https://api.github.com/users/ambethia/orgs","repos_url":"https://api.github.com/users/ambethia/repos","events_url":"https://api.github.com/users/ambethia/events{/privacy}","received_events_url":"https://api.github.com/users/ambethia/received_events","type":"User","site_admin":false},"repo":{"id":8970,"node_id":"MDEwOlJlcG9zaXRvcnk4OTcw","name":"recaptcha","full_name":"ambethia/recaptcha","owner":{"login":"ambethia","id":298,"node_id":"MDQ6VXNlcjI5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/298?v=4","gravatar_id":"","url":"https://api.github.com/users/ambethia","html_url":"https://github.com/ambethia","followers_url":"https://api.github.com/users/ambethia/followers","following_url":"https://api.github.com/users/ambethia/following{/other_user}","gists_url":"https://api.github.com/users/ambethia/gists{/gist_id}","starred_url":"https://api.github.com/users/ambethia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambethia/subscriptions","organizations_url":"https://api.github.com/users/ambethia/orgs","repos_url":"https://api.github.com/users/ambethia/repos","events_url":"https://api.github.com/users/ambethia/events{/privacy}","received_events_url":"https://api.github.com/users/ambethia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ambethia/recaptcha","description":"ReCaptcha helpers for ruby apps","fork":false,"url":"https://api.github.com/repos/ambethia/recaptcha","forks_url":"https://api.github.com/repos/ambethia/recaptcha/forks","keys_url":"https://api.github.com/repos/ambethia/recaptcha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ambethia/recaptcha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ambethia/recaptcha/teams","hooks_url":"https://api.github.com/repos/ambethia/recaptcha/hooks","issue_events_url":"https://api.github.com/repos/ambethia/recaptcha/issues/events{/number}","events_url":"https://api.github.com/repos/ambethia/recaptcha/events","assignees_url":"https://api.github.com/repos/ambethia/recaptcha/assignees{/user}","branches_url":"https://api.github.com/repos/ambethia/recaptcha/branches{/branch}","tags_url":"https://api.github.com/repos/ambethia/recaptcha/tags","blobs_url":"https://api.github.com/repos/ambethia/recaptcha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ambethia/recaptcha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ambethia/recaptcha/git/refs{/sha}","trees_url":"https://api.github.com/repos/ambethia/recaptcha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ambethia/recaptcha/statuses/{sha}","languages_url":"https://api.github.com/repos/ambethia/recaptcha/languages","stargazers_url":"https://api.github.com/repos/ambethia/recaptcha/stargazers","contributors_url":"https://api.github.com/repos/ambethia/recaptcha/contributors","subscribers_url":"https://api.github.com/repos/ambethia/recaptcha/subscribers","subscription_url":"https://api.github.com/repos/ambethia/recaptcha/subscription","commits_url":"https://api.github.com/repos/ambethia/recaptcha/commits{/sha}","git_commits_url":"https://api.github.com/repos/ambethia/recaptcha/git/commits{/sha}","comments_url":"https://api.github.com/repos/ambethia/recaptcha/comments{/number}","issue_comment_url":"https://api.github.com/repos/ambethia/recaptcha/issues/comments{/number}","contents_url":"https://api.github.com/repos/ambethia/recaptcha/contents/{+path}","compare_url":"https://api.github.com/repos/ambethia/recaptcha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ambethia/recaptcha/merges","archive_url":"https://api.github.com/repos/ambethia/recaptcha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ambethia/recaptcha/downloads","issues_url":"https://api.github.com/repos/ambethia/recaptcha/issues{/number}","pulls_url":"https://api.github.com/repos/ambethia/recaptcha/pulls{/number}","milestones_url":"https://api.github.com/repos/ambethia/recaptcha/milestones{/number}","notifications_url":"https://api.github.com/repos/ambethia/recaptcha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ambethia/recaptcha/labels{/name}","releases_url":"https://api.github.com/repos/ambethia/recaptcha/releases{/id}","deployments_url":"https://api.github.com/repos/ambethia/recaptcha/deployments","created_at":"2008-04-11T23:01:45Z","updated_at":"2018-08-05T13:56:16Z","pushed_at":"2018-07-07T15:27:11Z","git_url":"git://github.com/ambethia/recaptcha.git","ssh_url":"git@github.com:ambethia/recaptcha.git","clone_url":"https://github.com/ambethia/recaptcha.git","svn_url":"https://github.com/ambethia/recaptcha","homepage":"http://github.com/ambethia/recaptcha","size":534,"stargazers_count":1441,"watchers_count":1441,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":318,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":318,"open_issues":21,"watchers":1441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ambethia/recaptcha/pulls/286"},"html":{"href":"https://github.com/ambethia/recaptcha/pull/286"},"issue":{"href":"https://api.github.com/repos/ambethia/recaptcha/issues/286"},"comments":{"href":"https://api.github.com/repos/ambethia/recaptcha/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/ambethia/recaptcha/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/ambethia/recaptcha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ambethia/recaptcha/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/ambethia/recaptcha/statuses/522da560c1c55890de6ea8b52035366e83c21feb"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"twalpole"}}