From fdb4f496408099d5a589bd69cda4ac98c0bfe2c5 Mon Sep 17 00:00:00 2001 From: Roman Sandler Date: Wed, 14 Dec 2016 14:28:16 +1100 Subject: [PATCH 1/2] Move bundler to a development dependency --- Rakefile | 7 +------ sassc.gemspec | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Rakefile b/Rakefile index 13e97e8a..d5dd3551 100644 --- a/Rakefile +++ b/Rakefile @@ -1,9 +1,4 @@ -begin - require 'bundler/gem_tasks' -rescue LoadError - puts 'Cannot load bundler/gem_tasks' -end - +require 'bundler/gem_tasks' require 'tasks/libsass' task default: :test diff --git a/sassc.gemspec b/sassc.gemspec index 71cd416d..38dff018 100644 --- a/sassc.gemspec +++ b/sassc.gemspec @@ -21,13 +21,13 @@ Gem::Specification.new do |spec| spec.extensions = ["ext/Rakefile"] + spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "minitest", "~> 5.5.1" spec.add_development_dependency "minitest-around" spec.add_development_dependency "test_construct" spec.add_development_dependency "pry" - spec.add_dependency "bundler" spec.add_dependency "ffi", "~> 1.9.6" spec.add_dependency "sass", ">= 3.3.0" @@ -43,4 +43,3 @@ Gem::Specification.new do |spec| end end end - From 49d79d5874f4f572c4962ef2117154258cb0e222 Mon Sep 17 00:00:00 2001 From: Roman Sandler Date: Wed, 14 Dec 2016 14:51:13 +1100 Subject: [PATCH 2/2] omit tests from packaged gem --- sassc.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sassc.gemspec b/sassc.gemspec index 38dff018..d46ef312 100644 --- a/sassc.gemspec +++ b/sassc.gemspec @@ -13,9 +13,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/sass/sassc-ruby" spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0") + spec.files = Dir.glob('lib/**/*') + %w(README.md LICENSE.txt ext/Rakefile) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"]