lookbook 0.9.6 → 0.9.8

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: 07ac7a807c773f61e8cdd20c1e15555942c353b4df72ad5c3ddc508ac6fcb2b3
4
- data.tar.gz: 0f79a3eed3f148cef2443b881a3ec1adab876b1f916d665cf83e0aa6783505a9
3
+ metadata.gz: 1552c783aeb0b0fadbdc347de7927f8e0ce6fca4352986ed36e4cf9989b64640
4
+ data.tar.gz: f46d89c7514ce88bb720fe9dfd4f301bc7b8596356c36428fb48d5373f6eb14a
5
5
  SHA512:
6
- metadata.gz: 8937407314598d4a04510a5e2b1d905b42664a183480de571410b7655643a4e13806f11300e9cc84679c161404d4054063712f8cbd718463c627dfe8599dca0b
7
- data.tar.gz: 20a00588effcfa3ea55c10d1d8c45fcd1e496dc6632d6d8ab5274fe35a6d74e035a0024c851a936384c68379635a91a138139ae98e79cf63df6cd28650956073
6
+ metadata.gz: 5cbaa4763a8ac0ad0be4143e18988849aba4453cd972565b4a0e4cb771d645f28b098a443e9129b4328a3a0f20e6aa68d5a4e693aee0c2eaf20602591fffd6cf
7
+ data.tar.gz: 1395ed27344183e973893d1116d467e98ad875e775fb207d8d3dde0cd18de5d67fce600a42151bd352bc9055057e868360ed2f353224e881bdafff77723baf7c
data/README.md CHANGED
@@ -1,19 +1,15 @@
1
1
  <div align="center">
2
- <h1>👀 Lookbook 👀</h1>
2
+ <h1>Lookbook</h1>
3
3
 
4
- <p>A native development UI for <a href="http://viewcomponent.org/">ViewComponent</a></p>
5
-
6
- <div>
7
- <a href="https://rubygems.org/gems/lookbook"><img src="https://badge.fury.io/rb/lookbook.svg" alt="Gem version">
8
- <a href="https://github.com/testdouble/standard"><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" alt="Ruby Style Guide">
9
- <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg" alt="Code style: Prettier">
10
- </div>
4
+ <h3>🚨 These are legacy docs for Lookbook v0.9.x releases! 🚨</h3>
5
+ <p>For docs on the <strong>latest Lookbook v1.x</strong> releases see the <a href="https://lookbook.build">Lookbook docs site</a> or the <a href="https://github.com/allmarkedup/lookbook">main branch</a> of this repo.</p>
11
6
  </div>
12
7
 
13
8
  ---
14
9
 
15
10
  <div align="center">
16
- <a href="#installing">Installing</a> • <a href="#previews">Previews</a> • <a href="#pages">Pages</a> • <a href="#deployment">Deployment</a> • <a href="#config">Config</a>
11
+
12
+ <p><a href="#installing">Installing</a> • <a href="#previews">Previews</a> • <a href="#pages">Pages</a> • <a href="#deployment">Deployment</a> • <a href="#config">Config</a></p>
17
13
  </div>
18
14
 
19
15
  ---
@@ -26,24 +22,8 @@ Lookbook uses [RDoc/Yard-style comment tags](#annotating-preview-files) to exten
26
22
 
27
23
  ![Lookbook UI](.github/assets/lookbook_screenshot.png)
28
24
 
29
- ### Features
30
-
31
- - Tree-style navigation menu with live search/filter
32
- - Resizable preview window for responsive testing
33
- - Highlighted preview source code and HTML output
34
- - Auto-updating UI when component or preview files are updated _(Rails v6.0+ only)_
35
- - Use comment tag annotations for granular customisation of the preview experience
36
- - Fully compatible with standard the ViewComponent preview system
37
- - In-browser live-editable preview parameters (similar to basic Storybook Controls/Knobs)
38
- - [**Experimental**] Markdown-powerered documentation pages with embeddable previews
39
-
40
- ## Lookbook demo
41
-
42
- If you want to have a quick play with Lookbook, the easiest way is to [give the demo app](https://github.com/allmarkedup/lookbook-demo) a spin. It's a basic Rails/ViewComponent app with a few test components included to tinker with.
43
25
 
44
- **Online demo: https://lookbook-demo-app.herokuapp.com/lookbook**
45
26
 
46
- If you'd rather dig in a bit more and run the demo app locally, the [demo repo](https://github.com/allmarkedup/lookbook-demo) contains instructions on how to get it up and running.
47
27
 
48
28
  ## Installing
49
29
 
@@ -53,7 +33,7 @@ Add Lookbook to your `Gemfile` somewhere **after** the ViewComponent gem. For ex
53
33
 
54
34
  ```ruby
55
35
  gem "view_component"
56
- gem "lookbook"
36
+ gem "lookbook", "~> 0.9.7"
57
37
  ```
58
38
 
59
39
  ### 2. Mount the Lookbook engine
@@ -1,5 +1,9 @@
1
1
  module Lookbook
2
2
  class ApplicationController < ActionController::Base
3
+ if respond_to?(:content_security_policy)
4
+ content_security_policy false, if: -> { Rails.env.development? }
5
+ end
6
+
3
7
  protect_from_forgery with: :exception
4
8
 
5
9
  helper Lookbook::ApplicationHelper
@@ -1,3 +1,3 @@
1
1
  module Lookbook
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actioncable