storybook_engine 0.2.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c8b7711da578c6df6a6f5ec0e3c09f0c007d2d859e4e67ac8a257b25df2a75b
4
- data.tar.gz: b9151d0f08bf23124658855e915dfeebf8ab58db90d118702cbea1c222fb8207
3
+ metadata.gz: 44b397858c2468093fd599eab10d6625471458f4199877743d1230c08f38fa9b
4
+ data.tar.gz: c7d62f07dbe815c4a4611f8d210ba0d41bef8a49caab861c51095cfa8ea47d27
5
5
  SHA512:
6
- metadata.gz: 28e2fbd6f225412b5bb2bdd934009691e1f840ec8fe1cb475e14bf1f468a6a9ee89a2f75b3fea861851a29e52198250e865e6ad1d38faf2f888ed1a74f7eb8a6
7
- data.tar.gz: 7d20e6502716fb10d163550de6431bc5a1deef51378de097ac1fd3e933d6471046ae26f6eca393ab0e02f2efbf17415b8f5075769c2cccc9f4261b03f7aed138
6
+ metadata.gz: 1912140a6cb70f286a5c251169716bd3d4a8f3bc1a61a196fcbe51b24fe837f3a71a6d2acceced50f925c80c1f5ea85a66bb90f90bb9c650db1b6963c1e117e8
7
+ data.tar.gz: c5c3ce5f9e98d5dbcf6a08a52d8591e1d561bcf954da624982000ca6028a54c78ee04889cea51addce5ac386df5afb9d69fdf5a2123a5f7cbc17c42da85dea28
data/Rakefile CHANGED
@@ -9,6 +9,9 @@ require "bundler/gem_tasks"
9
9
 
10
10
  require "rake/testtask"
11
11
 
12
+ require 'rspec/core'
13
+ require 'rspec/core/rake_task'
14
+
12
15
  Rake::TestTask.new(:test) do |t|
13
16
  t.libs << 'test'
14
17
  t.pattern = 'test/**/*_test.rb'
@@ -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.2.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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storybook_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amr Abu Aza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-23 00:00:00.000000000 Z
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -54,13 +54,14 @@ 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:
60
61
  - MIT
61
62
  metadata:
62
63
  homepage_uri: https://rubygems.org/storybook-engine
63
- source_code_uri: https://github.com/amrabuaza/ruby-storybook
64
+ source_code_uri: https://github.com/amrabuaza/storybook-rails-engine
64
65
  post_install_message:
65
66
  rdoc_options: []
66
67
  require_paths: