From 2e1bced8d72dd5f6d456e1c963b831e58c5c8ca2 Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Sat, 3 Dec 2016 00:20:47 -0500 Subject: [PATCH] gem: shrink gem size. :punch: --- CHANGELOG.md | 5 +++++ squib.gemspec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e76389..cf4d665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Squib CHANGELOG Squib follows [semantic versioning](http://semver.org). +## v0.13.0 / Unreleased + +Chores: +* Shrank the gem itself by ignoring test data. From about 5mb to 130kb - yay! + ## v0.12.0 / 2016-12-02 Features: diff --git a/squib.gemspec b/squib.gemspec index f234a7b..acea1db 100644 --- a/squib.gemspec +++ b/squib.gemspec @@ -16,15 +16,17 @@ Gem::Specification.new do |spec| spec.summary = 'A Ruby DSL for prototyping card games' spec.description = 'Squib is a Ruby DSL for prototyping card games' spec.authors = ['Andy Meneely'] - spec.email = 'playconfidencegames@gmail.com' + spec.email = 'andy.meneely@gmail.com' spec.homepage = 'https://github.com/andymeneely/squib' spec.rdoc_options = ['--charset=UTF-8'] spec.extra_rdoc_files = Dir['README.md', 'samples/**/*.rb'] - spec.files = `git ls-files -z`.split("\x0") + spec.files = `git ls-files -z`. + split("\x0"). + reject { |f| f.match(%r{^(spec|samples)/}) } spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) } - spec.test_files = spec.files.grep(/^(test|spec|features)\//) + spec.test_files = spec.files.grep(/^(spec|samples)\//) spec.require_paths = ['lib'] spec.add_runtime_dependency 'cairo', '~> 1.15.3'