Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 1.5 kB view raw
1# frozen_string_literal: true 2 3require_relative "lib/flatito/version" 4 5Gem::Specification.new do |spec| 6 spec.name = "flatito" 7 spec.version = Flatito::VERSION 8 spec.authors = ["José Galisteo"] 9 spec.email = ["ceritium@gmail.com"] 10 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." 13 14 spec.homepage = "https://github.com/ceritium/flatito" 15 spec.license = "MIT" 16 spec.required_ruby_version = ">= 3.0.0" 17 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." 21 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]) 28 end 29 end 30 spec.bindir = "exe" 31 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } 32 spec.require_paths = ["lib"] 33 34 # Uncomment to register a new dependency of your gem 35 spec.add_dependency "colorize" 36 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" 40end