From 257182b2ab36beb2400cd403d4c195ae1b0794c6 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 4 Feb 2014 14:07:40 -0500 Subject: [PATCH 1/2] Clean up packaged gem by removing unneeded files. --- binary_struct.gemspec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/binary_struct.gemspec b/binary_struct.gemspec index 6443663..02c846b 100644 --- a/binary_struct.gemspec +++ b/binary_struct.gemspec @@ -18,9 +18,11 @@ from/to a Hash. spec.homepage = "http://github.com/ManageIQ/binary_struct" spec.license = "MIT" - spec.files = `git ls-files`.split($/) - spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } - spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.files = `git ls-files -- lib/*`.split("\n") + spec.files += %w[README.md LICENSE.txt] + spec.executables = `git ls-files -- bin/*`.split("\n") + spec.test_files = `git ls-files -- spec/*`.split("\n") + spec.test_files += %w[.rspec] spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.3" From bb183bf058751e0a53dcc9d741e75615c612cff6 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 4 Feb 2014 14:07:59 -0500 Subject: [PATCH 2/2] Relax coveralls dependency. Allow specs to pass if coveralls is removed manually. --- spec/spec_helper.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4119f02..6652261 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -15,5 +15,8 @@ config.order = 'random' end -require 'coveralls' -Coveralls.wear! +begin + require 'coveralls' + Coveralls.wear! +rescue LoadError +end