{"id":78523,"library":"cocaine","title":"Cocaine","description":"A small library for doing (command) lines — executing shell commands safely.","status":"active","version":"0.6.0","language":"ruby","source_language":null,"source_url":"https://github.com/thoughtbot/cocaine","tags":["shell","command-line","execution","utility"],"install":[{"cmd":"gem install cocaine","lang":"bash","label":"gem install"},{"cmd":"# Gemfile\ngem 'cocaine', '~> 0.6.0'","lang":"ruby","label":"Gemfile"}],"dependencies":[],"imports":[{"symbol":"Cocaine","correct":"require 'cocaine'"}],"quickstart":{"code":"require 'cocaine'\n\nline = Cocaine::CommandLine.new('echo', 'hello')\nline.run","lang":"ruby","description":"Execute a simple shell command using Cocaine."},"warnings":[{"fix":"Use the 'terrapin' gem instead.","message":"Cocaine is deprecated in favor of Terrapin.","severity":"breaking","affected_versions":">= 0.6.0"}],"env_vars":null,"search_vec":"'cocain':1 'command':7,11,15 'command-lin':14 'execut':9,17 'librari':4 'line':8,16 'safe':12 'shell':10,13 'small':3 'util':18","created_at":"2026-06-18T04:20:43.553658+00:00","updated_at":"2026-06-18T04:20:43.553658+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":"https://github.com/thoughtbot/cocaine","github":"https://github.com/thoughtbot/cocaine","docs":"http://www.rubydoc.info/gems/cocaine/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-18","next_check":"2026-12-15","install_tag":null}}