storybook_engine 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2664e5ba4f1f74a599dc143d2f54a0c625104f74d55bb2c31efd20172b59ae56
4
- data.tar.gz: 74b100bc01055156123607628be484fa38b9aff777136a7061e12d52d2a026e7
3
+ metadata.gz: 44b397858c2468093fd599eab10d6625471458f4199877743d1230c08f38fa9b
4
+ data.tar.gz: c7d62f07dbe815c4a4611f8d210ba0d41bef8a49caab861c51095cfa8ea47d27
5
5
  SHA512:
6
- metadata.gz: 28d746f3b03fdc01a3ae5d52a9dd974faad2d0f103cd9fefc82bf39254158f6dfcfa16024c671211566b33e57a503467cca865dde08d28722cc13301a006632f
7
- data.tar.gz: 9d675b16a5753f43a2ca56973c71a09a8882bf22cf6b454d37671c1a92147390bc9aa013bfeb1d6db342affce2194f4165dd2016076de2e27859e68d54a5ade9
6
+ metadata.gz: 1912140a6cb70f286a5c251169716bd3d4a8f3bc1a61a196fcbe51b24fe837f3a71a6d2acceced50f925c80c1f5ea85a66bb90f90bb9c650db1b6963c1e117e8
7
+ data.tar.gz: c5c3ce5f9e98d5dbcf6a08a52d8591e1d561bcf954da624982000ca6028a54c78ee04889cea51addce5ac386df5afb9d69fdf5a2123a5f7cbc17c42da85dea28
@@ -1,5 +1,8 @@
1
1
  module StorybookEngine
2
2
  class Engine < ::Rails::Engine
3
3
  require "view_component/storybook/engine"
4
+ initializer "static assets" do |app|
5
+ app.middleware.insert_before(::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public")
6
+ end
4
7
  end
5
8
  end
@@ -1,3 +1,3 @@
1
1
  module StorybookEngine
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -0,0 +1,8 @@
1
+ namespace :storybook do
2
+ desc 'Clone public directory from engine to main project'
3
+ task clone_public: :environment do
4
+ source_file = File.join(StorybookEngine::Engine.root, 'public')
5
+ dest_file = File.join(Rails.root, 'public')
6
+ FileUtils.copy_file source_file, dest_file, true
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storybook_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amr Abu Aza
@@ -54,6 +54,7 @@ files:
54
54
  - lib/storybook_engine.rb
55
55
  - lib/storybook_engine/engine.rb
56
56
  - lib/storybook_engine/version.rb
57
+ - lib/tasks/storybook.rake
57
58
  - lib/tasks/storybook_engine_tasks.rake
58
59
  homepage: https://rubygems.org/storybook-engine
59
60
  licenses: