diff --git a/features/step_definitions.rb b/features/step_definitions.rb index 91bcd8a8b1f..9d479ecf69c 100644 --- a/features/step_definitions.rb +++ b/features/step_definitions.rb @@ -239,9 +239,14 @@ When(%r!^I decide to build the theme gem$!) do Dir.chdir(Paths.theme_gem_dir) - File.new("_includes/blank.html", "w") - File.new("_sass/blank.scss", "w") - File.new("assets/blank.scss", "w") + [ + "_includes/blank.html", + "_sass/blank.scss", + "assets/blank.scss", + "_config.yml" + ].each do |filename| + File.new(filename, "w") + end end # @@ -385,6 +390,7 @@ Gemfile LICENSE.txt README.md + _config.yml _includes/blank.html _layouts/default.html _layouts/page.html diff --git a/features/theme_gem.feature b/features/theme_gem.feature index 621acfa39dd..ef849741158 100644 --- a/features/theme_gem.feature +++ b/features/theme_gem.feature @@ -25,6 +25,7 @@ Feature: Building Theme Gems And the "my-cool-theme-0.1.0/_includes/blank.html" file should exist And the "my-cool-theme-0.1.0/_sass/blank.scss" file should exist And the "my-cool-theme-0.1.0/assets/blank.scss" file should exist + And the "my-cool-theme-0.1.0/_config.yml" file should exist And the my-cool-theme-0.1.0/.git directory should not exist And the "my-cool-theme-0.1.0/.gitignore" file should not exist And the "my-cool-theme-0.1.0/Gemfile" file should not exist diff --git a/lib/theme_template/theme.gemspec.erb b/lib/theme_template/theme.gemspec.erb index 3b41e491693..3529d933b0a 100644 --- a/lib/theme_template/theme.gemspec.erb +++ b/lib/theme_template/theme.gemspec.erb @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.homepage = "TODO: Put your gem's website or public repo URL here." spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(<%= theme_directories.join("|") %>|LICENSE|README)!i) } + spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(<%= theme_directories.join("|") %>|LICENSE|README|_config\.yml)!i) } spec.add_runtime_dependency "jekyll", "~> <%= jekyll_version_with_minor %>"