{"id":19735200,"url":"https://github.com/roberto/air-conditioning-system-tbjr","last_synced_at":"2026-06-09T03:43:42.371Z","repository":{"id":5324265,"uuid":"6507388","full_name":"roberto/air-conditioning-system-tbjr","owner":"roberto","description":null,"archived":false,"fork":false,"pushed_at":"2012-11-05T19:16:10.000Z","size":172,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T04:56:39.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/roberto.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}},"created_at":"2012-11-02T14:38:55.000Z","updated_at":"2025-02-24T09:28:54.000Z","dependencies_parsed_at":"2022-07-05T16:00:38.695Z","dependency_job_id":null,"html_url":"https://github.com/roberto/air-conditioning-system-tbjr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roberto/air-conditioning-system-tbjr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fair-conditioning-system-tbjr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fair-conditioning-system-tbjr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fair-conditioning-system-tbjr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fair-conditioning-system-tbjr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roberto","download_url":"https://codeload.github.com/roberto/air-conditioning-system-tbjr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roberto%2Fair-conditioning-system-tbjr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34090751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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-11-12T00:41:00.472Z","updated_at":"2026-06-09T03:43:42.351Z","avatar_url":"https://github.com/roberto.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/roberto/air-conditioning-system-tbjr) [![Build Status](https://secure.travis-ci.org/roberto/air-conditioning-system-tbjr.png)](http://travis-ci.org/roberto/air-conditioning-system-tbjr)\n\nSistema de controle de condicionador de ar da ACME.\n\nPara executar a simulação:\n\n```\ngit clone git://github.com/roberto/air-conditioning-system-tbjr.git\ncd air-conditioning-system-tbjr\n./configure\nmake\n```\n\nApós isso, para rodar os testes:\n\n```\nbundle install\nbundle exec rake\n```\n\nUtilize `bundle install --without mac` caso não esteja utilizando MacOSX.\n\nPara cobertura de testes:\n\n```\ncoverage=ON bundle exec rake\nopen coverage/index.html\n```\n\n## Observações\n\nA principal parte da solução está em `Regulador`, mais especificamente em `#refrigera`. As outras classes são apenas para simular o Ar Condicionado.\n\nNa definição temos:\n\n\u003e O hardware do ar-condicionado possui uma função que você pode chamar que é: `reduz_um_grau()`\n\nEntão criei `Hardware::reduz_um_grau` apenas para simular o Hardware que supostamente não seria implementado por mim, mas seria usado por `Regulador` em, podemos assim dizer, produção.\n\nJá `Simulador` faz o papel do Ar Condicionado chamando `#refrigera` com os parametros corretos (temperatura atual e temperatura desejada), durante o tempo estabelecido, enquanto aumenta a temperatura.\n\n\u003e Os argumentos temp_atual e temp_desejada serão passados pra você pelo ar-condicionado.\n\nSolução em português, enquanto no outro está em inglês, pois nesse foi solicitado alguns métodos em pt_BR.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froberto%2Fair-conditioning-system-tbjr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froberto%2Fair-conditioning-system-tbjr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froberto%2Fair-conditioning-system-tbjr/lists"}