From 1c67871d44c1ce92c18b2bd5a79714a580e12a20 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 1 May 2012 22:57:56 -0700 Subject: [PATCH] Fix gemspecs for filenames with unicode paths --- middleman-core/middleman-core.gemspec | 4 ++-- middleman-more/middleman-more.gemspec | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/middleman-core/middleman-core.gemspec b/middleman-core/middleman-core.gemspec index 7e8a10f7..e7610319 100644 --- a/middleman-core/middleman-core.gemspec +++ b/middleman-core/middleman-core.gemspec @@ -13,8 +13,8 @@ Gem::Specification.new do |s| s.summary = "Hand-crafted frontend development" s.description = "A static site generator. Provides dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle." - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {fixtures,features}/*`.split("\n") + s.files = `git ls-files -z`.split("\0") + s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0") s.executable = "middleman" s.require_path = "lib" diff --git a/middleman-more/middleman-more.gemspec b/middleman-more/middleman-more.gemspec index 3eecc23a..84852019 100644 --- a/middleman-more/middleman-more.gemspec +++ b/middleman-more/middleman-more.gemspec @@ -13,8 +13,8 @@ Gem::Specification.new do |s| s.summary = "Hand-crafted frontend development" s.description = "A static site generator. Provides dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle." - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {fixtures,features}/*`.split("\n") + s.files = `git ls-files -z`.split("\0") + s.test_files = `git ls-files -z -- {fixtures,features}/*`.split("\0") s.require_paths = ["lib"] s.add_dependency("middleman-core", Middleman::VERSION)