{"action":"created","issue":{"url":"https://api.github.com/repos/discourse/discourse_api/issues/80","labels_url":"https://api.github.com/repos/discourse/discourse_api/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/discourse/discourse_api/issues/80/comments","events_url":"https://api.github.com/repos/discourse/discourse_api/issues/80/events","html_url":"https://github.com/discourse/discourse_api/issues/80","id":75057213,"number":80,"title":"Can't load dotenv","user":{"login":"fate-lovely","id":4210829,"avatar_url":"https://avatars.githubusercontent.com/u/4210829?v=3","gravatar_id":"","url":"https://api.github.com/users/fate-lovely","html_url":"https://github.com/fate-lovely","followers_url":"https://api.github.com/users/fate-lovely/followers","following_url":"https://api.github.com/users/fate-lovely/following{/other_user}","gists_url":"https://api.github.com/users/fate-lovely/gists{/gist_id}","starred_url":"https://api.github.com/users/fate-lovely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fate-lovely/subscriptions","organizations_url":"https://api.github.com/users/fate-lovely/orgs","repos_url":"https://api.github.com/users/fate-lovely/repos","events_url":"https://api.github.com/users/fate-lovely/events{/privacy}","received_events_url":"https://api.github.com/users/fate-lovely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-11T02:23:42Z","updated_at":"2015-05-27T16:55:26Z","closed_at":null,"body":"**cannot load such file -- dotenv (LoadError)**\r\n```\r\nCJ-MBP:sike/ git:(master) ✗gem list | grep dotenv\r\ndotenv (2.0.1, 1.0.2)\r\n```\r\n\r\nI use figaro rather than dotenv in my project. \r\nBut even though I installed dotenv, I still can't start rails.\r\nMaybe dependent on dotenv is not a good idea?\r\nWe should init client explicitly?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/discourse/discourse_api/issues/comments/105992598","html_url":"https://github.com/discourse/discourse_api/issues/80#issuecomment-105992598","issue_url":"https://api.github.com/repos/discourse/discourse_api/issues/80","id":105992598,"user":{"login":"oblakeerickson","id":1490496,"avatar_url":"https://avatars.githubusercontent.com/u/1490496?v=3","gravatar_id":"","url":"https://api.github.com/users/oblakeerickson","html_url":"https://github.com/oblakeerickson","followers_url":"https://api.github.com/users/oblakeerickson/followers","following_url":"https://api.github.com/users/oblakeerickson/following{/other_user}","gists_url":"https://api.github.com/users/oblakeerickson/gists{/gist_id}","starred_url":"https://api.github.com/users/oblakeerickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oblakeerickson/subscriptions","organizations_url":"https://api.github.com/users/oblakeerickson/orgs","repos_url":"https://api.github.com/users/oblakeerickson/repos","events_url":"https://api.github.com/users/oblakeerickson/events{/privacy}","received_events_url":"https://api.github.com/users/oblakeerickson/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T16:55:26Z","updated_at":"2015-05-27T16:55:26Z","body":"dotenv is a [development dependency](http://guides.rubygems.org/patterns/) [inside of discourse_api](https://github.com/discourse/discourse_api/commit/859655aafb1e65495394089c577df16a4311ae65) so now that you are on the new version you just need to remove all existing dotenv gems on your system:\r\n\r\n    gem uninstall dotenv\r\n\r\nIt will ask you which versions you want to remove, I would remove them all.\r\n\r\nYou then might need to run bundle install again on your rails app so that it can install the right version of dotenv.\r\n\r\nYou should be good to go after that.\r\n\r\nOn a clean linux box, I just installed ruby and discourse_api and dotenv isn't even installed:\r\n\r\n    root@dave:~# gem install discourse_api\r\n    Fetching: rack-1.6.1.gem (100%)\r\n    Successfully installed rack-1.6.1\r\n    Fetching: multipart-post-2.0.0.gem (100%)\r\n    Successfully installed multipart-post-2.0.0\r\n    Fetching: faraday-0.9.1.gem (100%)\r\n    Successfully installed faraday-0.9.1\r\n    Fetching: faraday_middleware-0.9.1.gem (100%)\r\n    Successfully installed faraday_middleware-0.9.1\r\n    Fetching: discourse_api-0.4.2.gem (100%)\r\n    Successfully installed discourse_api-0.4.2\r\n    Parsing documentation for rack-1.6.1\r\n    Installing ri documentation for rack-1.6.1\r\n    invalid options: -SHN\r\n    (invalid options are ignored)\r\n    Parsing documentation for multipart-post-2.0.0\r\n    Installing ri documentation for multipart-post-2.0.0\r\n    Parsing documentation for faraday-0.9.1\r\n    Installing ri documentation for faraday-0.9.1\r\n    Parsing documentation for faraday_middleware-0.9.1\r\n    Installing ri documentation for faraday_middleware-0.9.1\r\n    Parsing documentation for discourse_api-0.4.2\r\n    Installing ri documentation for discourse_api-0.4.2\r\n    Done installing documentation for rack, multipart-post, faraday, faraday_middleware,     discourse_api after 5 seconds\r\n    5 gems installed\r\n    \r\n    root@dave:~# gem list\r\n    \r\n    *** LOCAL GEMS ***\r\n    \r\n    bigdecimal (1.2.6)\r\n    bundler (1.8.4)\r\n    bundler-unload (1.0.2)\r\n    discourse_api (0.4.2)\r\n    executable-hooks (1.3.2)\r\n    faraday (0.9.1)\r\n    faraday_middleware (0.9.1)\r\n    gem-wrappers (1.2.7)\r\n    io-console (0.4.3)\r\n    json (1.8.1)\r\n    minitest (5.4.3)\r\n    multipart-post (2.0.0)\r\n    power_assert (0.2.2)\r\n    psych (2.0.8)\r\n    rack (1.6.1)\r\n    rake (10.4.2)\r\n    rdoc (4.2.0)\r\n    rubygems-bundler (1.4.4)\r\n    rvm (1.11.3.9)\r\n    test-unit (3.0.8)"}}