{"id":13990597,"url":"https://github.com/hashrocket/hr-til","last_synced_at":"2025-12-15T01:18:15.812Z","repository":{"id":28831098,"uuid":"32354664","full_name":"hashrocket/hr-til","owner":"hashrocket","description":"Today I Learned in Ruby","archived":true,"fork":false,"pushed_at":"2018-04-09T16:49:54.000Z","size":4140,"stargazers_count":341,"open_issues_count":0,"forks_count":71,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-07-18T20:41:32.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hashrocket.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-16T21:39:52.000Z","updated_at":"2024-07-07T21:02:18.000Z","dependencies_parsed_at":"2022-09-05T18:40:22.509Z","dependency_job_id":null,"html_url":"https://github.com/hashrocket/hr-til","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fhr-til","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fhr-til/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fhr-til/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hashrocket%2Fhr-til/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hashrocket","download_url":"https://codeload.github.com/hashrocket/hr-til/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214668598,"owners_count":15767199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T13:02:58.590Z","updated_at":"2025-12-15T01:18:15.726Z","avatar_url":"https://github.com/hashrocket.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# HR-TIL\n\n![til](https://raw.githubusercontent.com/hashrocket/hr-til/master/app/assets/images/banner.png)\n\n\u003e TIL is an open-source project by the team at\n\u003e [Hashrocket](https://hashrocket.com/) that catalogues the sharing \u0026\n\u003e accumulation of knowledge as it happens day-to-day. Posts have a 200-word\n\u003e limit, and posting is open to any Rocketeer as well as select friends of the\n\u003e team. We hope you enjoy learning along with us.\n\nThis site was open-sourced as a window into our development process, as well as\nto allow people to experiment with the site on their own and contribute to the\nproject.\n\nToday I Learned was ported to Elixir/Phoenix in 2017 ([source\ncode](https://github.com/hashrocket/tilex)), and the Rails application is no\nlonger in production or actively maintained by Hashrocket. Thanks to all of our\n[contributors](https://github.com/hashrocket/hr-til/graphs/contributors)!\n\n### Install\n\nIf you are creating your own version of the site,\n[fork](https://help.github.com/articles/fork-a-repo/) the repository.\n\nThen, follow these setup steps:\n\n```sh\n$ git clone https://github.com/hashrocket/hr-til\n$ cd hr-til\n$ gem install bundler\n$ bundle install\n$ cp config/application.yml{.example,}\n$ rake db:create db:migrate db:seed\n$ rails s\n```\n\nIn development, `db:seed` will load sample data for channels, developers, and\nposts. Omit this command to opt-out of this step, or create your own sample\ndata in `db/seeds/development.rb`.\n\nAuthentication is managed by Omniauth and Google. See the\n[omniauth-google-oauth2\nREADME](https://github.com/zquestz/omniauth-google-oauth2/blob/master/README.md)\nand [Google Oauth 2\ndocs](https://developers.google.com/identity/protocols/OAuth2WebServer) for\nsetup instructions. To allow users from a domain, multiple domains, or a\nspecific email to log in, set those configurations in your environmental\nvariables:\n\n```yml\n# config/application.yml\n\npermitted_domains: 'hashrocket.com|hshrckt.com'\npermitted_emails: 'friend@whitelist.com'\n```\nEnsure you have set the google client id and google client secret via Oauth instructions.\n\nOnce set, visit '/admin' and log in with a permitted email address or domain.\n\n### Testing\n\nRun all tests with:\n\n```\n$ rake\n```\n\nOr, run all the test in parallel with [flatware](https://github.com/briandunn/flatware):\n\n```\n$ flatware fan rake db:test:prepare\n$ flatware rspec \u0026\u0026 flatware cucumber\n```\n\n### Dependencies\n\n- The gem `selenium-webdriver` depends on the Firefox browser.\n- The gems `flatware-rspec` and `flatware-cucumber` require ZeroMQ. Learn more\n[here](https://github.com/briandunn/flatware).\n\n### Environmental Variables\n\n`basic_auth_credentials` both toggles and defines basic authentication:\n\n```yml\n# config/application.yml\n\nbasic_auth_credentials: username:password\n```\n\n`slack_post_endpoint` allows the app to post to [Slack](https://slack.com/):\n\n```yml\n# config/application.yml\n\nslack_post_endpoint: /services/some/hashes\n```\n\n### Contributing\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/hashrocket/hr-til. This project is intended to be a safe,\nwelcoming space for collaboration, and contributors are expected to adhere to\nthe [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n### Usage\n\nWe love seeing forks of Today I Learned in production! Please consult our\n[usage guide](/USAGE.md) for guidelines on appropriate styling and attribution.\n\n### License\n\nTIL is released under the [MIT License](http://www.opensource.org/licenses/MIT).\n\n---\n\n### About\n\n[![Hashrocket logo](https://hashrocket.com/hashrocket_logo.svg)](https://hashrocket.com)\n\nTIL is supported by the team at [Hashrocket, a\nmultidisciplinary design and development consultancy](https://hashrocket.com). If you'd like to [work with\nus](https://hashrocket.com/contact-us/hire-us) or [join our\nteam](https://hashrocket.com/contact-us/jobs), don't hesitate to get in touch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Fhr-til","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhashrocket%2Fhr-til","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhashrocket%2Fhr-til/lists"}