{"id":15770022,"url":"https://github.com/djdefi/hockey_bet","last_synced_at":"2025-08-10T21:06:10.258Z","repository":{"id":197301270,"uuid":"588271450","full_name":"djdefi/hockey_bet","owner":"djdefi","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T15:58:10.000Z","size":480,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-29T18:38:58.892Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://djdefi.github.io/hockey_bet/","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/djdefi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-12T18:24:02.000Z","updated_at":"2025-07-29T15:58:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"29c8a141-9673-4561-8135-8e6ae3b13a1b","html_url":"https://github.com/djdefi/hockey_bet","commit_stats":{"total_commits":171,"total_committers":3,"mean_commits":57.0,"dds":0.52046783625731,"last_synced_commit":"f331e03d2b1fb847701e65d6c3ee9a743ffda136"},"previous_names":["djdefi/hockey_bet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djdefi/hockey_bet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fhockey_bet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fhockey_bet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fhockey_bet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fhockey_bet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djdefi","download_url":"https://codeload.github.com/djdefi/hockey_bet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djdefi%2Fhockey_bet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269787316,"owners_count":24475716,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-04T14:21:34.657Z","updated_at":"2025-08-10T21:06:10.250Z","avatar_url":"https://github.com/djdefi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NHL Standings Tracker\n\nA live NHL standings tracker with playoff status indicators, fan ownership tracking, and upcoming game information. This project provides a clean, responsive interface for tracking teams as they advance toward the NHL Finals.\n\n## Features\n\n- **Live NHL Standings**: Up-to-date standings directly from the NHL API\n- **Playoff Status Indicators**: Visual indicators showing which teams have clinched, are contending, or are eliminated\n- **Fan Ownership Tracking**: Highlight teams owned by fans in your league\n- **Upcoming Games**: Shows each team's next opponent with game time in Pacific timezone\n- **Home Screen App**: Can be added to iOS/Android home screens with proper icons\n- **Responsive Design**: Works well on both desktop and mobile devices\n- **API Validation**: Automatically detects NHL API changes to prevent breaking\n\n## Setup and Usage\n\n### Prerequisites\n\n- Ruby 3.0+ with Bundler\n- Basic knowledge of CSV for team mapping\n\n### Installation\n\n1. Clone this repository\n2. Install dependencies:\n   ```\n   bundle install\n   ```\n\n3. Edit `fan_team.csv` to map your fantasy league members to NHL teams:\n   ```\n   fan,team\n   Alice,Bruins\n   Bob,Maple Leafs\n   ```\n\n4. Run the update script:\n   ```\n   ruby update_standings.rb\n   ```\n\n5. Open `_site/index.html` in your browser to view the standings\n\n### Deployment\n\nThe simplest way to deploy is using GitHub Pages:\n\n1. Push your changes to GitHub\n2. Enable GitHub Pages on your repository\n3. Set the build directory to `_site`\n\n## Configuration\n\n### Fan Team Mapping\n\nThe `fan_team.csv` file maps fan names to teams. The format is simple:\n```\nfan,team\nAlice,Bruins\nBob,Maple Leafs\n```\n\nThe \"team\" column can use full names, city names, or common nicknames - the system will attempt to match them to the correct NHL team.\n\n## Development\n\n### Project Structure\n\n- `lib/` - Core library code\n  - `standings_processor.rb` - Main data processing logic\n  - `api_validator.rb` - NHL API validation\n  - `team_mapping.rb` - Team name/abbreviation mapping\n  - `standings.html.erb` - HTML template\n\n- `spec/` - Tests\n  - `fixtures/` - Test data\n\n### Running Tests\n\n```\nbundle exec rspec\n```\n\nCode coverage reports are automatically generated in the `coverage/` directory.\n\n### GitHub Actions Workflows\n\nThis project includes several automated workflows:\n\n- **PR Preview Deployment**: Automatically deploys pull request previews to isolated paths (`/pr-{number}/`) that don't interfere with the main deployment\n- **Deployment Cleanup**: Scheduled daily job that removes old preview deployments (older than 30 days) and cleans up deployments for closed PRs\n- **Manual Cleanup**: Deployment pruning can be triggered manually with custom retention periods via workflow dispatch\n\nThe preview environment system ensures that:\n- Each PR gets its own isolated preview URL\n- Main deployment remains undisturbed\n- Old deployments are automatically cleaned up\n- Manual override available for custom scenarios\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdefi%2Fhockey_bet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjdefi%2Fhockey_bet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjdefi%2Fhockey_bet/lists"}