From 9aa08151924fa6ff1f1c49e987b67012c295c9cc Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Fri, 18 Jan 2019 00:11:18 +0100 Subject: Action Text: bundle package.json in built gem. After 866da19fd9fc12d001ab99ac87890ea1cebb2cd9 we now use package.json to install Action Text's JS dependencies (see JS_PACKAGE_PATH). But when the gem pacakge for Action Text is built, package.json was not included so running `rails action_text:install` in a Rails app would fail with: ``` rails action_text:install rails aborted! Errno::ENOENT: No such file or directory @ rb_sysopen - xxx/gems/actiontext-6.0.0.alpha/lib/templates/../../package.json ./bin/rails:4:in `
' Tasks: TOP => app:template (See full trace by running task with --trace) ``` --- actiontext/actiontext.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actiontext/actiontext.gemspec') diff --git a/actiontext/actiontext.gemspec b/actiontext/actiontext.gemspec index e9381d1ec5..5583178e12 100644 --- a/actiontext/actiontext.gemspec +++ b/actiontext/actiontext.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.email = ["javan@javan.us", "sstephenson@gmail.com", "david@loudthinking.com"] s.homepage = "https://rubyonrails.org" - s.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*", "app/**/*", "config/**/*", "db/**/*"] + s.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*", "app/**/*", "config/**/*", "db/**/*", "package.json"] s.require_path = "lib" s.metadata = { -- cgit v1.2.3