# frozen_string_literal: true require_relative 'lib/snfoil/policy/version' Gem::Specification.new do |spec| spec.name = 'snfoil-policy' spec.version = SnFoil::Policy::VERSION spec.authors = ['Matthew Howes', 'Cliff Campbell'] spec.email = ['howeszy@gmail.com', 'cliffcampbell@hey.com'] spec.summary = 'Pundit Style Permissions Builder' spec.description = 'A set of helper functions to build permission files inspired by Pundit.' spec.homepage = 'https://github.com/limited-effort/snfoil-policy' spec.license = 'Apache-2.0' spec.required_ruby_version = '>= 2.7' spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = spec.homepage spec.metadata['changelog_uri'] = 'https://github.com/limited-effort/snfoil-policy/blob/main/CHANGELOG.md' spec.metadata['rubygems_mfa_required'] = 'true' # 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. ignore_list = %r{\A(?:test/|spec/|bin/|features/|Rakefile|\.\w)} spec.files = Dir.chdir(File.expand_path(__dir__)) { `git ls-files -z`.split("\x0").reject { |f| f.match(ignore_list) } } spec.bindir = 'exe' spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] spec.add_dependency 'activesupport', '>= 5.2.6' spec.add_development_dependency 'bundle-audit', '~> 0.1.0' spec.add_development_dependency 'fasterer', '~> 0.10.0' spec.add_development_dependency 'pry-byebug', '~> 3.9' spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.10' spec.add_development_dependency 'rubocop', '~> 1.29' spec.add_development_dependency 'rubocop-performance', '~> 1.11' spec.add_development_dependency 'rubocop-rspec', '~> 2.5' end