1 # frozen_string_literal: true
3 require_relative "lib/flatito/version"
5 Gem::Specification.new do |spec|
7 spec.version = Flatito::VERSION
8 spec.authors = ["José Galisteo"]
9 spec.email = ["ceritium@gmail.com"]
11 spec.summary = "Grep for YAML and JSON files"
12 spec.description = "A kind of grep for YAML and JSON files. It allows you to search for a key and get the value and the line number where it is located."
14 spec.homepage = "https://github.com/ceritium/flatito"
16 spec.required_ruby_version = ">= 3.0.0"
18 spec.metadata["homepage_uri"] = spec.homepage
19 spec.metadata["source_code_uri"] = spec.homepage
20 # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22 # Specify which files should be added to the gem when it is released.
23 # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24 spec.files = Dir.chdir(__dir__) do
25 `git ls-files -z`.split("\x0").reject do |f|
26 (File.expand_path(f) == __FILE__) ||
27 f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
31 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32 spec.require_paths = ["lib"]
34 # Uncomment to register a new dependency of your gem
35 spec.add_dependency "colorize"
37 # For more information and examples about making a new gem, check out our
38 # guide at: https://bundler.io/guides/creating_gem.html
39 spec.metadata["rubygems_mfa_required"] = "true"