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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7dd3a1819df8890a210390afc49273715e052de27f62484e194a5aa577d4783b
4
- data.tar.gz: e09486d3a9274e9ae539dfba6b533f0c1caff6a217706d990d4dd3286c9a1425
3
+ metadata.gz: bffce621674adffbbc47252a053c9a7625a3ab2cdfc0fcc5c17faa212d8dd341
4
+ data.tar.gz: e722c00ae0696417402a2498b7b84ceae1be99800576865ea2e4a84af815eced
5
5
  SHA512:
6
- metadata.gz: 6ced5760673f5410ddfb4eefdd3ab87a2708e0de26eaddce0a27e51a9a596a28b0936e18eb410ac87f175209fc039a8a46b4b106a31139b99ea331de942f7b49
7
- data.tar.gz: 1376c88df0991345ca4c05dc18e89cbcbf5f358c3c237f34eb6fc307646c38834ed19d1e35d7ee413a01672c072f50eb4715f416bf2d9deffc97fee795033610
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
- params.transform_keys! { |key| key.underscore.to_sym }
8
- Client.send!(Report.from_params(params), &block)
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Quilt
3
- VERSION = "1.12.1"
3
+ VERSION = "1.12.2"
4
4
  end
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.1
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-14 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties