diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-01-18 00:11:18 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2019-01-18 00:11:18 +0100 |
commit | 9aa08151924fa6ff1f1c49e987b67012c295c9cc (patch) | |
tree | e7d108ae3181a51b25b691b14094c6ad5cce4115 /actiontext/actiontext.gemspec | |
parent | 3219e4aef10e7e3cbac24c98f52f7de4954969e4 (diff) | |
download | rails-9aa08151924fa6ff1f1c49e987b67012c295c9cc.tar.gz rails-9aa08151924fa6ff1f1c49e987b67012c295c9cc.tar.bz2 rails-9aa08151924fa6ff1f1c49e987b67012c295c9cc.zip |
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 `<main>'
Tasks: TOP => app:template
(See full trace by running task with --trace)
```
Diffstat (limited to 'actiontext/actiontext.gemspec')
-rw-r--r-- | actiontext/actiontext.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |