quilt_rails 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -20
- data/lib/quilt_rails/performance/reportable.rb +9 -2
- data/lib/quilt_rails/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: bffce621674adffbbc47252a053c9a7625a3ab2cdfc0fcc5c17faa212d8dd341
|
4
|
+
data.tar.gz: e722c00ae0696417402a2498b7b84ceae1be99800576865ea2e4a84af815eced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b383932fe698a1f0fd19b8a08be1d463a3e38b2c3ee430d2988198d1b1c53d80ee0d6b35fcef456414d9a31557cd358170ec755c2281309a5e651594008d695d
|
7
|
+
data.tar.gz: c3b05b4e3a5f0cf05bd3e37bbf2d5779f402acc23c6e5186bc46beefb0d0db9739d1cf4d80d7288e580d373c88b41f7aa2c2bf5d5f4175dc4836cfd27bee21e7
|
data/README.md
CHANGED
@@ -38,26 +38,6 @@ A turn-key solution for integrating Quilt client-side libraries into your Rails
|
|
38
38
|
|
39
39
|
## Server-side-rendering
|
40
40
|
|
41
|
-
### Alpha functionality - do not use in high-traffic production applications
|
42
|
-
|
43
|
-
**Warning:** quilt_rails's server-side-rendering module `ReactRenderable` does not work at scale. Improvements to its architecture are being investigated. In its current state, it can be used for:
|
44
|
-
|
45
|
-
- Workshop applications
|
46
|
-
- Proof of concept applications
|
47
|
-
- Low traffic applications
|
48
|
-
|
49
|
-
For a description of the current architecture's problems, see [this Github comment](https://github.com/Shopify/quilt/issues/1059#issuecomment-539195340).
|
50
|
-
|
51
|
-
The ["decide on a scalable quilt_rails architecture" issue](https://github.com/Shopify/quilt/issues/1100) will track discussion of future architectures.
|
52
|
-
|
53
|
-
To scale up existing quilt_rails applications, skip server-side queries in your components. e.g.:
|
54
|
-
|
55
|
-
```ts
|
56
|
-
useQuery(MyQuery, {
|
57
|
-
skip: typeof document === 'undefined',
|
58
|
-
});
|
59
|
-
```
|
60
|
-
|
61
41
|
### Quick start
|
62
42
|
|
63
43
|
Using the magic of generators, we can spin up a basic app with a few console commands.
|
@@ -4,8 +4,15 @@ module Quilt
|
|
4
4
|
module Performance
|
5
5
|
module Reportable
|
6
6
|
def process_report(&block)
|
7
|
-
|
8
|
-
|
7
|
+
Client.send!(Report.from_params(normalized_params), &block)
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
def normalized_params
|
13
|
+
return params unless request.content_type == 'text/plain'
|
14
|
+
|
15
|
+
ActionController::Parameters.new(JSON.parse(request.body.read))
|
9
16
|
end
|
10
17
|
end
|
11
18
|
end
|
data/lib/quilt_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quilt_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathew Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|