# -*- encoding: utf-8 -*- # stub: make_menu 0.0.3 ruby lib Gem::Specification.new do |s| s.name = "make_menu".freeze s.version = "0.0.3".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Barri Mason".freeze] s.date = "2023-12-20" s.description = "\nCreates a number-selection menu from a Makefile. The menu will attempt to fill the width of the terminal window.\n\n- Any targets in the Makefile with a double-hash comment will be displayed, e.g.:\n serve: ## Start Rails server in background\n This will display a line such as '1. Start Rails server in background' which runs the command `make serve`.\n\n- A line that starts with a triple-hash will create a new menu group, e.g.:\n ### Docker Commands\n This will begin a new group with the header 'Docker Commands'\n\n- The environment variable MENU can be used to specify a custom menu class, e.g.:\n export MENU=Accounts\n This assumes that a class `AccountsMenu` is defined in the file `accounts_menu.rb`\n\n You can define two constants in your custom class:\n LOGO (String) text or ASCII art to display above the menu\n HIGHLIGHTS (Hash{String=>[Symbol,Array]}) Add coloring to specific words or phrases\n\n- The environment variable MAKEFILE can specify a Makefile. The default is './Makefile'.\n\nThe menu will not display any targets called 'menu' or 'status'. The latter, if present, is called each\ntime the menu displays.\n\n-----------------------------\nDocker Container Status Panel\n-----------------------------\n\nDisplays a color-coded panel indicating whether or not a Docker container is running.\n\nYou must define a custom class inheriting from `MakeMenu::StatusPanel` and indicate this using\nthe environment variable MENU, e.g.:\n export MENU=Accounts\nThis assumes that a class `AccountsStatusPanel` is defined in the file `accounts_status_panel.rb`\n\nYou can define a constant CONTAINERS {String=>String} in this custom class to map the displayed\nlabel to the container name, e.g.:\n CONTAINERS = { 'Backend' => 'myapp-backend-1' }\n\n".freeze s.email = "loki@amarantha.net".freeze s.files = ["Gemfile".freeze, "Gemfile.lock".freeze, "lib/make_menu.rb".freeze, "lib/make_menu/color_string.rb".freeze, "lib/make_menu/menu.rb".freeze, "lib/make_menu/menu_item.rb".freeze, "lib/make_menu/menu_item_group.rb".freeze, "lib/make_menu/status_panel.rb".freeze, "lib/make_menu/text_column.rb".freeze, "lib/make_menu/text_table.rb".freeze, "lib/make_menu/version.rb".freeze, "make_menu.gemspec".freeze] s.homepage = "https://rubygems.org/gems/make_menu".freeze s.licenses = ["MIT".freeze] s.rubygems_version = "3.5.10".freeze s.summary = "Generates an interactive menu from a Makefile".freeze s.specification_version = 4 s.add_runtime_dependency(%q.freeze, ["~> 0.8.2".freeze]) end