{"id":22282878,"url":"https://github.com/leslitech/l2","last_synced_at":"2025-07-25T21:38:10.831Z","repository":{"id":61782789,"uuid":"553984523","full_name":"LesliTech/L2","owner":"LesliTech","description":"Message utilities for the Ruby console","archived":false,"fork":false,"pushed_at":"2024-08-04T02:50:06.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T12:38:33.287Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LesliTech.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2022-10-19T04:15:17.000Z","updated_at":"2024-08-04T02:50:09.000Z","dependencies_parsed_at":"2024-08-04T04:01:37.075Z","dependency_job_id":null,"html_url":"https://github.com/LesliTech/L2","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"1585f7b9ca40e5e11100baa9071ce9cea9745b97"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesliTech%2FL2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesliTech%2FL2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesliTech%2FL2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LesliTech%2FL2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LesliTech","download_url":"https://codeload.github.com/LesliTech/L2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227957824,"owners_count":17847290,"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-12-03T16:36:58.320Z","updated_at":"2024-12-03T16:36:59.076Z","avatar_url":"https://github.com/LesliTech.png","language":"Ruby","readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.lesli.dev\" target=\"_blank\"\u003e\n\t\t\u003cimg alt=\"Lesli Ruby Message logo\" width=\"200px\" src=\"./docs/l2-logo.svg\" /\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003eMessage utilities for the Ruby console\u003c/h3\u003e\n\nVersion 0.5.2\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n    $ bundle add l2\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n    $ gem install l2\n\nRails apps\n\n    $ gem \"L2\", \"~\u003e 0.4.0\"\n\n## Usage\n\n\n**Simple message:**\n\n```ruby\nL2.m(\"hola\")\nL2.m(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Simple message with dividing line:**\n\n```ruby\nL2.msg(\"hola\")\nL2.msg(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Informative message:**\n\n```ruby\nL2.info(\"hola\")\nL2.info(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Sucessful message:**\n\n```ruby\nL2.success(\"hola\")\nL2.success(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Simple message:**\n\n```ruby\nL2.warning(\"hola\")\nL2.warning(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Error message:**\n\n```ruby\nL2.danger(\"hola\")\nL2.danger(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Error with flashing message:**\n\n```ruby\nL2.fatal(\"hola\")\nL2.fatal(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Flashing message:**\n\n```ruby\nL2.alert(\"hola\")\nL2.alert(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Useful to give instructions in deprecated methods or code:**\n\n```ruby\nL2.deprecation(\"hola\")\n```\n\n\n**Print a simple list:**\n\n```ruby\nL2.list(\"hola\", \"hello\", \"hallo\", 1, [2], {\"a\":\"b\"})\n```\n\n\n**Show data as table:**\n\n```ruby\nL2.table([\n    { español: \"hola\", english: \"hello\", deutsch: \"hallo\" },\n    { español: \"hola\", english: \"hello\", deutsch: \"hallo\" },\n    { español: \"hola\", english: \"hello\", deutsch: \"hallo\" }\n])\n```\n\n\n**Display a cow message:**\n\n```ruby\nL2.cow(\"Hello little cow!\")\n```\n\n\n### Development\n------\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Contributing\n------\n\nBug reports and pull requests are welcome on GitHub at https://github.com/LesliTech/l2.\n\n\n### License  \n------\n\nSoftware developed in [Guatemala](http://visitguatemala.com/) distributed under the *General Public License v 3.0* you can read the full license [here](http://www.gnu.org/licenses/gpl-3.0.html)\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://www.lesli.tech\" target=\"_blank\"\u003e\n\t\t\u003cimg alt=\"LesliTech logo\" width=\"150\" src=\"https://cdn.lesli.tech/leslitech/brand/leslitech-logo.svg\" /\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleslitech%2Fl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleslitech%2Fl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleslitech%2Fl2/lists"}