-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeball.gemspec
More file actions
31 lines (28 loc) · 1.25 KB
/
Copy pathcodeball.gemspec
File metadata and controls
31 lines (28 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require_relative "lib/codeball/version"
Gem::Specification.new do |spec|
spec.name = "codeball"
spec.version = Codeball::VERSION
spec.authors = ["David Gillis"]
spec.email = ["david@flipmine.com"]
spec.summary = "Bidirectional file packer for clipboard-friendly LLM workflows"
spec.description = "Pack multiple source files into a single plaintext codeball for " \
"pasting into LLM context windows, then unpack the response back into files."
spec.homepage = "https://github.com/gillisd/codeball"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.4"
gemspec_file = File.basename(__FILE__)
files = IO.popen(["git", "ls-files", "-z"], chdir: __dir__, err: IO::NULL) { |ls|
ls.readlines(0.chr, chomp: true).reject do |f|
(f == gemspec_file) ||
f.start_with?("bin/", "test/", "spec/", "features/", ".git", "Gemfile")
end
}
files = Dir.glob("{lib,exe,rakelib}/**/*").push("README.md", "LICENSE.txt", "Rakefile") if files.empty?
spec.files = files
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "command_kit", "~> 0.6"
spec.add_dependency "zeitwerk"
spec.metadata["rubygems_mfa_required"] = "true"
end