{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/Humus/issues/11","labels_url":"https://api.github.com/repos/CocoaPods/Humus/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/Humus/issues/11/comments","events_url":"https://api.github.com/repos/CocoaPods/Humus/issues/11/events","html_url":"https://github.com/CocoaPods/Humus/issues/11","id":109447232,"number":11,"title":"Prepare Humus for use in CI","user":{"login":"floere","id":3022,"avatar_url":"https://avatars.githubusercontent.com/u/3022?v=3","gravatar_id":"","url":"https://api.github.com/users/floere","html_url":"https://github.com/floere","followers_url":"https://api.github.com/users/floere/followers","following_url":"https://api.github.com/users/floere/following{/other_user}","gists_url":"https://api.github.com/users/floere/gists{/gist_id}","starred_url":"https://api.github.com/users/floere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floere/subscriptions","organizations_url":"https://api.github.com/users/floere/orgs","repos_url":"https://api.github.com/users/floere/repos","events_url":"https://api.github.com/users/floere/events{/privacy}","received_events_url":"https://api.github.com/users/floere/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/Humus/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-02T08:06:38Z","updated_at":"2015-10-03T16:21:30Z","closed_at":null,"body":"* [x] Upload sanitized/size-reduced DB dump to e.g. S3. (Using `pg_dump -Fc`)\r\n* [x] Store the dump's location in Humus.\r\n* [x] Enable the snapshot (dump) to be downloaded and loaded into the DB.\r\n* [x] Add s3 as dependency on the Humus gem.\r\n* [x] Gemify Humus.\r\n* [x] Re-enable working snapshots to be used in search.\r\n* [x] Polishing.\r\n* [x] Release gem.\r\n* [ ] Add s3 credentials to … Admin?\r\n* [ ] Set up CI for search on Travis or Circle (@kylef).\r\n\r\n### Example on gem `cocoapods-humus` usage\r\n\r\nFor the following example to work, both `ENV['DUMP_ACCESS_KEY_ID']` and `ENV['DUMP_SECRET_ACCESS_KEY']` need to be set.\r\n\r\nIn Gemfile:\r\n\r\n```\r\ngem 'cocoapods-humus', :require => false\r\n```\r\n\r\nIn your e.g. spec_helper.rb / integration test:\r\n\r\n```ruby\r\nrequire 'cocoapods-humus'\r\n\r\n# Non-block version.\r\nHumus.with_snapshot('201510021730-b154')\r\n\r\n# Block version.\r\nHumus.with_snapshot('201510021730-b154') do\r\n  # …\r\nend\r\n```\r\n\r\nThe gem is currently using the file system, and writing to a fixed DB with name `trunk_cocoapods_org_test`.\r\n@kylef Let me know if that is an issue and we'll improve.\r\n\r\n### Real world example \r\n\r\n1. Clone https://github.com/CocoaPods/search.cocoapods.org.\r\n2. `bundle install`\r\n3. `bundle exec rake`\r\n\r\nCode is here: https://github.com/CocoaPods/search.cocoapods.org/blob/5d1781722e58cbb42d9dd0723f4852680aaf5070/spec/db_seed.rb#L3-L6"},"comment":{"url":"https://api.github.com/repos/CocoaPods/Humus/issues/comments/145262050","html_url":"https://github.com/CocoaPods/Humus/issues/11#issuecomment-145262050","issue_url":"https://api.github.com/repos/CocoaPods/Humus/issues/11","id":145262050,"user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T16:21:30Z","updated_at":"2015-10-03T16:21:30Z","body":"Great work @floere.\r\n\r\nDoes anyone have any preferences on Circle CI or Travis CI?"}}