Skip to content

Commit cdddbbc

Browse files
committed
fix(build): Exclude symlink and unnecessary files
Some files, like AGENTS or RELEASING, are unnecessary for a packaged lib. Some files, like symlinks for CLAUDE.md, can actually cause installation failures on Windows. Fixes #496 Fixes #496
1 parent 698b015 commit cdddbbc

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Changelog
22

33

4+
## Unreleased
5+
6+
### Changed
7+
8+
- Excluded symlinks and unnecessary files from gem packaging. On Windows symlinks cannot be created without Administrator privileges or with developer mode enabled #496.
9+
10+
411
## 7.0.1 - 2026-01-03
512

613
### Changed

public_suffix.gemspec

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ Gem::Specification.new do |s|
2626
s.files = Dir.chdir(__dir__) do
2727
`git ls-files -z`.split("\x0").reject do |f|
2828
(File.expand_path(f) == __FILE__) ||
29-
f.start_with?(*%w[bin/ test/ .git .rubocop Gemfile Rakefile])
29+
f.start_with?(*%w[
30+
bin/
31+
test/
32+
.git
33+
.rubocop
34+
Gemfile
35+
Rakefile
36+
AGENTS.md
37+
CLAUDE.md
38+
RELEASING.md
39+
CONTRIBUTING.md
40+
])
3041
end
3142
end
3243
s.require_paths = ["lib"]

0 commit comments

Comments
 (0)