Skip to content

Commit

Permalink
Fix gemspec generation (#517)
Browse files Browse the repository at this point in the history
This should resolve the issues (#495, #497) with the files list once for
all. The main problem was probably the "[A-Z]*" glob matching lowercase
files (and directories) when using a case-insensitive filesystem
(typical for macOS).

Inspired by 0a6f091

Co-authored-by: Adrien Rey-Jarthon <jobs@adrienjarthon.com>
  • Loading branch information
dentarg and jarthod committed Aug 3, 2023
1 parent e01456b commit a5a8514
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ additionally provides extensive support for IRIs and URI templates.
TEXT

PKG_FILES = FileList[
"lib/**/*", "spec/**/*", "vendor/**/*", "data/**/*",
"tasks/**/*",
"[A-Z]*", "Rakefile"
].exclude(/pkg/).exclude(/database\.yml/).
exclude(/Gemfile\.lock/).exclude(/[_\.]git$/).
exclude(/coverage/)
"data/**/*",
"lib/**/*.rb",
"spec/**/*.rb",
"tasks/**/*.rake",
"addressable.gemspec",
"CHANGELOG.md",
"Gemfile",
"LICENSE.txt",
"README.md",
"Rakefile",
]

task :default => "spec"

Expand Down

0 comments on commit a5a8514

Please sign in to comment.