main
 1# frozen_string_literal: true
 2
 3require_relative "lib/gitem/version"
 4
 5Gem::Specification.new do |spec|
 6  spec.name = "gitem"
 7  spec.version = Gitem::VERSION
 8  spec.authors = ["mo khan"]
 9  spec.email = ["mo@mokhan.ca"]
10
11  spec.summary = "A static site generator for git repositories."
12  spec.description = "Browse your git history locally with a GitHub-like interface."
13  spec.homepage = "https://github.com/xlgmokha/gitem"
14  spec.license = "MIT"
15  spec.required_ruby_version = ">= 3.4.0"
16
17  spec.metadata["allowed_push_host"] = "https://rubygems.org"
18  spec.metadata["homepage_uri"] = spec.homepage
19  spec.metadata["source_code_uri"] = "https://github.com/xlgmokha/gitem"
20  spec.metadata["changelog_uri"] = "https://github.com/xlgmokha/gitem/blob/main/CHANGELOG.md"
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  gemspec = File.basename(__FILE__)
25  spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
26    ls.readlines("\x0", chomp: true).reject do |f|
27      (f == gemspec) ||
28        f.start_with?(*%w[bin/ Gemfile .gitignore .rspec spec/])
29    end
30  end
31  spec.bindir = "exe"
32  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
33  spec.require_paths = ["lib"]
34
35  spec.add_dependency "fileutils", "~> 1.0"
36  spec.add_dependency "json", "~> 2.0"
37  spec.add_dependency "rugged", "~> 1.0"
38  spec.add_dependency "webrick", "~> 1.8"
39end