{"id":89136,"library":"hosts","title":"Hosts","description":"Hosts is a Ruby library able to read or manipulate the operating system's host files while preserving their original formatting.","status":"active","version":"0.1.1","language":"ruby","source_language":null,"source_url":"https://github.com/aef/hosts","tags":["hosts","system","configuration","file-manipulation"],"install":[{"cmd":"gem install hosts","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'hosts', '~> 0.1.1'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Hosts","correct":"require 'hosts'"}],"quickstart":{"code":"require 'hosts'\nhosts = Hosts::File.open('/etc/hosts')\nhosts.each { |entry| puts entry.address }","lang":"ruby","description":"Read and iterate over entries in the system hosts file"},"warnings":[],"env_vars":null,"search_vec":"'abl':7 'configur':25 'file':17,27 'file-manipul':26 'format':22 'host':1,2,16,23 'librari':6 'manipul':11,28 'oper':13 'origin':21 'preserv':19 'read':9 'rubi':5 'system':14,24","created_at":"2026-06-19T08:42:49.072794+00:00","updated_at":"2026-06-19T08:42:49.072794+00:00","problems":[],"ecosystem":"rubygems","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://github.com/aef/hosts","github":"https://github.com/aef/hosts","docs":"http://www.rubydoc.info/gems/hosts/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["config","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}