{"id":15032796,"url":"https://github.com/ruby/etc","last_synced_at":"2025-05-15T21:01:44.397Z","repository":{"id":19790463,"uuid":"87912276","full_name":"ruby/etc","owner":"ruby","description":"Provides access to information typically stored in UNIX /etc directory.","archived":false,"fork":false,"pushed_at":"2025-03-28T03:58:09.000Z","size":296,"stargazers_count":30,"open_issues_count":3,"forks_count":16,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-01T08:29:36.740Z","etag":null,"topics":["hactoberfest","ruby"],"latest_commit_sha":null,"homepage":"","language":"C","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/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2017-04-11T08:56:15.000Z","updated_at":"2025-03-28T03:58:13.000Z","dependencies_parsed_at":"2023-02-12T08:01:16.948Z","dependency_job_id":"699d0f36-3320-45ff-a658-46af80dc6144","html_url":"https://github.com/ruby/etc","commit_stats":{"total_commits":225,"total_committers":36,"mean_commits":6.25,"dds":0.7555555555555555,"last_synced_commit":"11677318ac3b88128a056a434c3a9bf4f574a575"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fetc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fetc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fetc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fetc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/etc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809963,"owners_count":20999816,"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":["hactoberfest","ruby"],"created_at":"2024-09-24T20:19:27.817Z","updated_at":"2025-04-08T09:05:10.975Z","avatar_url":"https://github.com/ruby.png","language":"C","readme":"# Etc\n\nThe Etc module provides access to information typically stored in files in the /etc directory on Unix systems.\n\nThe information accessible consists of the information found in the `/etc/passwd` and `/etc/group` files, plus information about he system's temporary directory (/tmp) and configuration directory (/etc).\n\nThe Etc module provides a more reliable way to access information about the logged in user than environment variables such as +$USER+.\nRead the [API RDoc](https://docs.ruby-lang.org/en/master/Etc.html).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'etc'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install etc\n\n## Usage\n\n```ruby\nrequire 'etc'\n\nlogin = Etc.getlogin\ninfo = Etc.getpwnam(login)\nusername = info.gecos.split(/,/).first\nputs \"Hello #{username}, I see your login name is #{login}\"\n```\n\nNote that the methods provided by this module are not always secure. It should be used for informational purposes, and not for security.\n\nAll operations defined in this module are class methods, so that you can include the Etc module into your class.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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 [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/etc.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fetc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fetc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fetc/lists"}