Code for the Advent of Code event
aoc advent-of-code
at main 31 lines 1.1 kB view raw
1# frozen_string_literal: true 2 3require_relative 'lib/aoc/version' 4 5Gem::Specification.new 'aoc', AoC::VERSION do |spec| 6 spec.authors = ['Adam Hellberg'] 7 spec.email = ['aoc@sharparam.com'] 8 9 spec.summary = 'AoC in Ruby' 10 spec.description = 'Advent of Code solutions in Ruby' 11 spec.homepage = 'https://github.com/Sharparam/advent-of-code' 12 spec.license = 'MPL-2.0' 13 spec.required_ruby_version = '>= 3.3.0' 14 15 spec.metadata['allowed_push_host'] = 'https://rubygems.pkg.github.com/Sharparam' 16 17 spec.metadata['homepage_uri'] = spec.homepage 18 spec.metadata['source_code_uri'] = 'https://github.com/Sharparam/advent-of-code' 19 spec.metadata['github_repo'] = 'ssh://github.com/Sharparam/advent-of-code' 20 21 gemspec = File.basename __FILE__ 22 spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls| 23 ls.readlines("\x0", chomp: true).reject do |f| 24 (f == gemspec) || 25 f.start_with?(*%w[bin/ test/ spec/ features/ .git .github Gemfile]) 26 end 27 end 28 spec.bindir = 'exe' 29 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename f } 30 spec.require_paths = ['lib'] 31end