lookbook 0.9.7 → 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 +4 -4
- data/README.md +3 -41
- data/app/controllers/lookbook/application_controller.rb +4 -1
- data/lib/lookbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1552c783aeb0b0fadbdc347de7927f8e0ce6fca4352986ed36e4cf9989b64640
|
|
4
|
+
data.tar.gz: f46d89c7514ce88bb720fe9dfd4f301bc7b8596356c36428fb48d5373f6eb14a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cbaa4763a8ac0ad0be4143e18988849aba4453cd972565b4a0e4cb771d645f28b098a443e9129b4328a3a0f20e6aa68d5a4e693aee0c2eaf20602591fffd6cf
|
|
7
|
+
data.tar.gz: 1395ed27344183e973893d1116d467e98ad875e775fb207d8d3dde0cd18de5d67fce600a42151bd352bc9055057e868360ed2f353224e881bdafff77723baf7c
|
data/README.md
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h1>Lookbook</h1>
|
|
3
3
|
|
|
4
|
-
<
|
|
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
|
---
|
|
@@ -15,7 +10,6 @@
|
|
|
15
10
|
<div align="center">
|
|
16
11
|
|
|
17
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>
|
|
18
|
-
<p><a href="#beta-info">🚨 Lookbook v1.0 (beta) - testers wanted! 🚨</a></p>
|
|
19
13
|
</div>
|
|
20
14
|
|
|
21
15
|
---
|
|
@@ -29,39 +23,7 @@ Lookbook uses [RDoc/Yard-style comment tags](#annotating-preview-files) to exten
|
|
|
29
23
|

|
|
30
24
|
|
|
31
25
|
|
|
32
|
-
<h2 id="beta-info">🚨 Lookbook v1.0 (beta)</h3>
|
|
33
|
-
|
|
34
|
-
The Lookbook v1.0 release is coming soon with a bunch of new features and under-the hood improvements.
|
|
35
|
-
|
|
36
|
-
### Testing out the beta
|
|
37
|
-
|
|
38
|
-
If you are already using Lookbook in your project, just update the Lookbook gem to the latest beta release and then head over to the [beta documentation site](https://beta.lookbook.build/) to read more about the new features.
|
|
39
|
-
|
|
40
|
-
```ruby
|
|
41
|
-
gem "lookbook", ">= 1.0.0.beta.7"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
If you are **new to Lookbook** then check out the <a href="https://beta.lookbook.build/guide/quick-start/">v1.0 quick start guide</a> for more detailed instructions on installing Lookbook in your project
|
|
45
|
-
|
|
46
|
-
> Please do <a href="https://github.com/allmarkedup/lookbook/issues">open an issue</a> or <a href="https://github.com/allmarkedup/lookbook/discussions">start a discussion</a> if you need any help with anything. Comments, feedback and suggestions are always appreciated!
|
|
47
|
-
|
|
48
|
-
<h4>Useful Resources</h4>
|
|
49
|
-
|
|
50
|
-
* 👉 <a href="https://lookbook-demo-app-v1-0-beta.herokuapp.com/lookbook">v1.0 demo app</a> <em>(The repo for the demo app <a href="https://github.com/allmarkedup/lookbook-demo/tree/v1.0-beta">is here</a> if you want to dig in further)</em>
|
|
51
|
-
* 👉 <a href="https://beta.lookbook.build/">v1.0 documentation site</a> _(work in progress!)_
|
|
52
|
-
* 👉 <a href="https://github.com/allmarkedup/lookbook/tree/v1.0-beta">v1.0-beta branch</a>
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
**⚠️ Note: The rest of the documentation on this page is related to the current, stable `v0.9.x` branch.**
|
|
57
|
-
|
|
58
|
-
## Lookbook demo
|
|
59
|
-
|
|
60
|
-
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.
|
|
61
|
-
|
|
62
|
-
**Online demo: https://lookbook-demo-app.herokuapp.com/lookbook**
|
|
63
26
|
|
|
64
|
-
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.
|
|
65
27
|
|
|
66
28
|
## Installing
|
|
67
29
|
|
|
@@ -71,7 +33,7 @@ Add Lookbook to your `Gemfile` somewhere **after** the ViewComponent gem. For ex
|
|
|
71
33
|
|
|
72
34
|
```ruby
|
|
73
35
|
gem "view_component"
|
|
74
|
-
gem "lookbook"
|
|
36
|
+
gem "lookbook", "~> 0.9.7"
|
|
75
37
|
```
|
|
76
38
|
|
|
77
39
|
### 2. Mount the Lookbook engine
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
module Lookbook
|
|
2
2
|
class ApplicationController < ActionController::Base
|
|
3
|
-
|
|
3
|
+
if respond_to?(:content_security_policy)
|
|
4
|
+
content_security_policy false, if: -> { Rails.env.development? }
|
|
5
|
+
end
|
|
6
|
+
|
|
4
7
|
protect_from_forgery with: :exception
|
|
5
8
|
|
|
6
9
|
helper Lookbook::ApplicationHelper
|
data/lib/lookbook/version.rb
CHANGED
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.
|
|
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-09-
|
|
11
|
+
date: 2022-09-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: actioncable
|