dynamic_curses_input/dynamic_curses_input.gemspec

32 lines
1.9 KiB
Ruby
Raw Normal View History

2023-06-07 15:56:30 -06:00
# frozen_string_literal: true
require_relative "lib/dynamic_curses_input/version"
Gem::Specification.new do |spec|
spec.name = "dynamic_curses_input"
spec.version = DynamicCursesInput::VERSION
spec.authors = ["VetheonGames"]
spec.email = ["vetheon@pixelatedstudios.net"]
spec.summary = "A simple library for making Curses TUI input more dynamic and user-friendly"
spec.description = "Dynamic Curses Input is a highly simple, yet powerful gem that allows simple implementation of dynamic typing in curses TUI menus built in Ruby. For example, one can't simply use their arrow keys to navigate and edit inputs in Cursese TUI menus without adding a bunch of extra code to your project to handle it. A lot of which can be tricky to handle. This gem eliminates the need for that code, by providing simple to use methods that allow developers to capture user input, while allowing the special keys to work as the average user would expect. IE: When you press the left arrow key, the cursor moves to the left and allows you to delete a character you entered that isn't the last character you entered."
2023-06-07 16:01:47 -06:00
spec.homepage = "https://github.com/Pixelated-Studios/dynamic_curses_input"
2023-06-07 15:56:30 -06:00
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0.0"
spec.metadata["homepage_uri"] = spec.homepage
2023-06-07 16:01:47 -06:00
spec.metadata["source_code_uri"] = "https://github.com/Pixelated-Studios/dynamic_curses_input"
spec.metadata["changelog_uri"] = "https://github.com/Pixelated-Studios/dynamic_curses_input/blob/main/CHANGELOG.md"
2023-06-07 15:56:30 -06:00
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(__dir__) do
`git ls-files -z`.split("\x0").reject do |f|
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
end
end
spec.require_paths = ["lib"]
2023-06-07 16:01:47 -06:00
spec.add_dependency "curses"
2023-06-07 15:56:30 -06:00
end