From 8180ee5303a2e72087080e1193592e46e34e39ee Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Fri, 16 Jan 2026 15:46:59 +0000 Subject: [PATCH] Automatically include all files in lib into gem This syntax was inspired by the ActiveRecord gem. This avoids the mistake that I've already made several times of not realising that new files need to go in here, and also avoids endless merge conflicts if the files are individually specified. I've also added the README, since that appears to be good practice. --- glug.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/glug.gemspec b/glug.gemspec index 231ddf9..2f40097 100644 --- a/glug.gemspec +++ b/glug.gemspec @@ -8,8 +8,7 @@ Gem::Specification.new do |s| s.description = 'Text-based markup for Mapbox GL styles' s.authors = ['Richard Fairhurst'] s.email = 'richard@systemeD.net' - s.files = ['lib/glug.rb', 'lib/glug/condition.rb', 'lib/glug/extensions.rb', 'lib/glug/layer.rb', - 'lib/glug/stylesheet.rb'] + s.files = Dir['README.md', 'lib/**/*'] s.homepage = 'http://github.com/systemed/glug' s.license = 'FTWPL' s.required_ruby_version = '>= 2.7.0'