{"id":15725270,"url":"https://github.com/isuke/ruby_friendly_error","last_synced_at":"2025-03-31T01:24:55.343Z","repository":{"id":56893449,"uuid":"144802692","full_name":"isuke/ruby_friendly_error","owner":"isuke","description":"Make to ruby error messages friendly.","archived":false,"fork":false,"pushed_at":"2018-10-20T07:04:53.000Z","size":689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T11:48:12.502Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/ruby_friendly_error","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/isuke.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.adoc","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-15T03:44:21.000Z","updated_at":"2018-10-20T07:04:37.000Z","dependencies_parsed_at":"2022-08-20T16:10:37.898Z","dependency_job_id":null,"html_url":"https://github.com/isuke/ruby_friendly_error","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isuke%2Fruby_friendly_error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isuke%2Fruby_friendly_error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isuke%2Fruby_friendly_error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isuke%2Fruby_friendly_error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isuke","download_url":"https://codeload.github.com/isuke/ruby_friendly_error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246401422,"owners_count":20771181,"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":["ruby"],"created_at":"2024-10-03T22:20:16.047Z","updated_at":"2025-03-31T01:24:55.309Z","avatar_url":"https://github.com/isuke.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":":chapter-label:\n:icons: font\n:lang: en\n:sectanchors:\n:sectlinks:\n:sectnums:\n:source-highlighter: highlightjs\n:toc: left\n:toclevels: 2\n\n= RubyFriendlyError image:https://img.shields.io/badge/ruby-2.4.5-cc342d.svg[\"ruby 2.4.5\", link=\"https://www.ruby-lang.org/en/news/2018/10/17/ruby-2-4-5-released/\"] image:https://img.shields.io/badge/ruby-2.5.3-cc342d.svg[\"ruby 2.5.3\", link=\"https://www.ruby-lang.org/en/news/2018/10/18/ruby-2-5-3-released/\"]\n\nimage:https://travis-ci.org/isuke/ruby_friendly_error.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/isuke/ruby_friendly_error\"]\n\n== Installation and Usage\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ruby_friendly_error'\n```\n\n```sh\n$ bundle exec ruby_friendly_error your.rb\n```\n\n== Samples\n\n=== miss spell\n\n[source,ruby]\n.sample.rb\n----\n# frozen_string_literal: true\n\ndef hoge prayer_life = 100 , player_lifee = 200\n  puts 'hoge' if player_life \u003e 0\nend\n\nhoge\n----\n\n```sh\n$ bundle exec ruby_friendly_error sample.rb\n```\n\nimage:https://raw.githubusercontent.com/isuke/ruby_friendly_error/images/name_error_with_did_you_mean.png[\"name_error_with_did_you_mean\", caption=\"output\"]\n\n=== miss args num\n\n[source,ruby]\n.sample.rb\n----\n# frozen_string_literal: true\n\ndef hoge arg1, arg2 = 'foobar'\n  puts arg1\n  puts arg2\nend\n\nhoge 'piyo', 'fuga', 'what!?'\n----\n\n```sh\n$ bundle exec ruby_friendly_error sample.rb\n```\n\nimage:https://raw.githubusercontent.com/isuke/ruby_friendly_error/images/wrong_number_of_arguments_error.png[\"wrong_number_of_arguments_error\", caption=\"output\"]\n\n== Options\n\n[cols=\"1,2,1,1\", options=\"header\"]\n|===\n| key\n| description\n| values\n| default\n\n| RUBY_FRIENDLY_ERROR_LANG\n| message language.\n| en, ja\n| en\n\n| RUBY_FRIENDLY_ERROR_WINDOW\n| display error lines window size.\n| Integer\n| 2\n|===\n\n=== RUBY_FRIENDLY_ERROR_LANG\n\n```sh\n$ RUBY_FRIENDLY_ERROR_LANG=ja bundle exec ruby_friendly_error sample.rb\n```\n\nimage:https://raw.githubusercontent.com/isuke/ruby_friendly_error/images/wrong_number_of_arguments_error_ja.png[\"wrong_number_of_arguments_error_ja\", caption=\"output\"]\n\n== Development\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 tags, and push the `.gem` file to https://rubygems.org[rubygems.org].\n\n== Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/isuke/ruby_friendly_error. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the http://contributor-covenant.org[Contributor Covenant] code of conduct.\n\n== License\n\nThe gem is available as open source under the terms of the https://opensource.org/licenses/MIT[MIT License].\n\n== Code of Conduct\n\nEveryone interacting in the RubyFriendlyError project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/isuke/ruby_friendly_error/blob/master/CODE_OF_CONDUCT.adoc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisuke%2Fruby_friendly_error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisuke%2Fruby_friendly_error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisuke%2Fruby_friendly_error/lists"}