{"id":20204571,"url":"https://github.com/wilsonsilva/tuga","last_synced_at":"2025-10-06T15:32:26.553Z","repository":{"id":59158195,"uuid":"269931690","full_name":"wilsonsilva/tuga","owner":"wilsonsilva","description":"A Portuguese script programming language meant for educational purposes.","archived":false,"fork":false,"pushed_at":"2023-08-31T09:19:27.000Z","size":116,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T08:55:48.499Z","etag":null,"topics":["portugal","portuguese","ruby","ruby-gem","script","scripting-language","tuga"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilsonsilva.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-06T09:24:46.000Z","updated_at":"2023-08-29T04:15:35.000Z","dependencies_parsed_at":"2022-09-13T20:11:20.409Z","dependency_job_id":null,"html_url":"https://github.com/wilsonsilva/tuga","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Ftuga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Ftuga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Ftuga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilsonsilva%2Ftuga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilsonsilva","download_url":"https://codeload.github.com/wilsonsilva/tuga/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217080,"owners_count":21066633,"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":["portugal","portuguese","ruby","ruby-gem","script","scripting-language","tuga"],"created_at":"2024-11-14T05:13:57.062Z","updated_at":"2025-10-06T15:32:21.525Z","avatar_url":"https://github.com/wilsonsilva.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuga\n\n[![Gem Version](https://badge.fury.io/rb/tuga.svg)](https://badge.fury.io/rb/tuga)\n[![Build Status](https://github.com/wilsonsilva/tuga/actions/workflows/main.yml/badge.svg)](https://github.com/wilsonsilva/tuga/actions/workflows/main.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/7afec90a09db3956b7dc/maintainability)](https://codeclimate.com/github/wilsonsilva/tuga/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/7afec90a09db3956b7dc/test_coverage)](https://codeclimate.com/github/wilsonsilva/tuga/test_coverage)\n[![Inline docs](http://inch-ci.org/github/wilsonsilva/tuga.svg?branch=main)](http://inch-ci.org/github/wilsonsilva/tuga)\n\nA Portuguese script programming language meant for educational purposes.\n\n## Requirements\n\nThe gem requires version 3.2 of the Ruby programming language.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tuga'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install tuga\n\n## Usage\n\n### In the command line\nRun the `tuga` command followed by a filename.\n\n```\ntuga soure_code.pt\n```\n\n### In an application\nRequire the `Tuga` transpiler and give it Tuga source code.\n\n```ruby\nrequire 'tuga/transpiler'\n\nsource_code = \u003c\u003c~BACALHAU\n  lista_de_frutas = ['maçã', 'manga', 'goiaba', 'uva']\n\n  por_cada fruta na lista_de_frutas fazer\n    escrever fruta.com_letra_maiuscula\n  fim\nBACALHAU\n\ntranspiler = Tuga::Transpiler.new\ntranspiler.to_ruby(source_code)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies, configure git hooks and create support files.\n\nYou can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nThe health and maintainability of the codebase is ensured through a set of\nRake tasks to test, lint and audit the gem for security vulnerabilities and documentation:\n\n```\nrake build                 # Build tuga-x.x.x.gem into the pkg directory\nrake build:checksum        # Generate SHA512 checksum if tuga-0.x.x.gem into the checksums directory\nrake bundle:audit:check    # Checks the Gemfile.lock for insecure dependencies\nrake bundle:audit:update   # Updates the bundler-audit vulnerability database\nrake clean                 # Remove any temporary products\nrake clobber               # Remove any generated files\nrake coverage              # Run spec with coverage\nrake install               # Build and install tuga-x.x.x.gem into system gems\nrake install:local         # Build and install tuga-x.x.x.gem into system gems without network access\nrake qa                    # Test, lint and perform security and documentation audits\nrake release[remote]       # Create tag vx.x.x and build and push tuga-x.x.x.gem to rubygems.org\nrake rubocop               # Run RuboCop\nrake rubocop:auto_correct  # Auto-correct RuboCop offenses\nrake spec                  # Run RSpec code examples\nrake verify_measurements   # Verify that yardstick coverage is at least 100%\nrake yard                  # Generate YARD Documentation\nrake yard:junk             # Check the junk in your YARD Documentation\nrake yardstick_measure     # Measure docs in lib/**/*.rb with yardstick\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/wilsonsilva/tuga. This project is intended to\nbe a safe, welcoming space for collaboration, and contributors are expected to adhere to the\n[code of conduct](https://github.com/wilsonsilva/tuga/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Tuga project's codebases, issue trackers, chat rooms and mailing lists is expected to\nollow the [code of conduct](https://github.com/wilsonsilva/tuga/blob/main/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Ftuga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilsonsilva%2Ftuga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilsonsilva%2Ftuga/lists"}