{"id":15472862,"url":"https://github.com/hackvan/resuelve","last_synced_at":"2026-04-30T00:31:20.857Z","repository":{"id":145341853,"uuid":"300402086","full_name":"hackvan/resuelve","owner":"hackvan","description":"Solución al Problema del equipo Resuelve FC.","archived":false,"fork":false,"pushed_at":"2020-10-01T20:17:57.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T13:13:24.763Z","etag":null,"topics":["rspec","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-10-01T19:36:08.000Z","updated_at":"2020-10-01T20:18:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcc1a18a-c8e7-4735-8e2b-98b6be3ddee7","html_url":"https://github.com/hackvan/resuelve","commit_stats":{"total_commits":29,"total_committers":1,"mean_commits":29.0,"dds":0.0,"last_synced_commit":"8efa7f9c57c10ed5d7028b5c775b821789293cbb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackvan/resuelve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fresuelve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fresuelve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fresuelve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fresuelve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackvan","download_url":"https://codeload.github.com/hackvan/resuelve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fresuelve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32449666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rspec","ruby"],"created_at":"2024-10-02T02:41:24.485Z","updated_at":"2026-04-30T00:31:20.840Z","avatar_url":"https://github.com/hackvan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resuelve\n\nSolución al [Problema](/PROBLEM.md) del equipo Resuelve FC.\n\n## Requisitos:\n```bash\n$ ruby -v   # 2.6.3\n$ bundle -v # 2.0.2\n```\n\n## Instalación\n### Deste el repositorio de Github:\n```bash\n$ git clone https://github.com/hackvan/resuelve.git\n$ cd resuelve/\n$ bundle install\n```\n\n## Ejecución:\n**Opciones del programa:**\n\nPodemos consultar desde la consola las opciones disponibles con la bandera `-h` o `--help`:\n```bash\n$ bundle exec ruby lib/app.rb -h\n\nUsage: app.rb [options]\n\nSpecific options:\n    -h, --help            Show this help message\n    -i, --input INPUT     Specify the input file path\n    -o, --output OUTPUT   Specify the output file path\n    -s, --show            Show stats output in console\n```\n\nPara la ejecución del programa, por defecto este utiliza como entrada la información del archivo ubicado en `./resuelve/data/input.json` y por defecto devuelve los calculos para cada jugador en el archivo `./resuelve/data/output.json`:\n```bash\n$ bundle exec ruby lib/app.rb\n\n✅ Archivo con estadisticas generado exitosamente en \".../resuelve/data/output.json\"\n```\n\nDe manera opcional se le puede especificar la ruta del archivo de entrada a utilizar con la bandera `-i` o `--input`:\n\n```bash\n$ bundle exec ruby lib/app.rb -i ~/Desktop/input_file.json\n\n✅ Archivo con estadisticas generado exitosamente en \".../resuelve/data/output.json\"\n```\n\nY tambien personalizar la ruta con el archivo de salida a generar con la bandera `-o` o `--output`:\n\n```bash\n$ bundle exec ruby lib/app.rb -o ~/Desktop/output_file.json\n\n✅ Archivo con estadisticas generado exitosamente en \"~/Desktop/output_file.json\"\n```\n\nPor ultimo si queremos que la información sea mostrada en la misma consola y no en un archivo plano, podemos utilizar la bandera `-s` o `--show`:\n\n```bash\n$ bundle exec ruby lib/app.rb -s\n\n********************************************************************************\nEquipo: rojo\nTotal Goles: 19\nTotal Minimos: 25\nAlcance: 76.00%\nTotal Jugadores: 2\n--------------------------------------------------------------------------------\n\u003e\u003e Nombre: Juan Perez - Alcance: 66.67% - Sueldo Completo: 67833.33\n\u003e\u003e Nombre: El Rulo - Alcance: 90.00% - Sueldo Completo: 42450.00\n********************************************************************************\nEquipo: azul\nTotal Goles: 37\nTotal Minimos: 25\nAlcance: 148.00%\nTotal Jugadores: 2\n--------------------------------------------------------------------------------\n\u003e\u003e Nombre: EL Cuauh - Alcance: 150.00% - Sueldo Completo: 130000.00\n\u003e\u003e Nombre: Cosme Fulanito - Alcance: 140.00% - Sueldo Completo: 30000.00\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Fresuelve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackvan%2Fresuelve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Fresuelve/lists"}