quilt_rails 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/quilt_rails/performance/client.rb +2 -4
- 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: 875ee204d6daad074946aec06f288627aa5481dfe59f28769462083f99215a66
|
4
|
+
data.tar.gz: 4335d6f6a9ef4dd9a3ad457b96dd3fbf67cfa0a69a8ca30e78d65926a23d24c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3f2d9043a75979e5c7f45fc25f1e159930610b7d158256ab144dd5ac3f5decd5f0a15cbe7d054fc844a54f97eb572974f1464c3f121f8c56ac5819e2a288983
|
7
|
+
data.tar.gz: aa91a0d734eed1e1c74ccd3a299edbe8a70cbab01af24fcde5818d0fc7d86942014bb22eaf7d13b329a17daff88ce83cdd156a9b3ab299dc4148b26bb90fbe35
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# quilt_rails
|
2
2
|
|
3
|
-
A turn-key solution for integrating Quilt client-side libraries into your Rails app, with support for server-side-rendering using [`@shopify/react-server`](https://www.npmjs.com/package/@shopify/react-server), integration with [`@shopify/sewing-kit`](https://
|
3
|
+
A turn-key solution for integrating Quilt client-side libraries into your Rails app, with support for server-side-rendering using [`@shopify/react-server`](https://www.npmjs.com/package/@shopify/react-server), integration with [`@shopify/sewing-kit`](https://github.com/Shopify/sewing-kit) for building, testing and linting, and front-end performance tracking through [`@shopify/performance`](https://www.npmjs.com/package/@shopify/performance).
|
4
4
|
|
5
5
|
## Table of Contents
|
6
6
|
|
7
7
|
- [Server-side-rendering](#server-side-rendering)
|
8
|
-
- [Quick start](#
|
8
|
+
- [Quick start](#quick-start)
|
9
9
|
- [Generate Rails boilerplate](#generate-rails-boilerplate)
|
10
10
|
- [Add Ruby dependencies](#add-ruby-dependencies)
|
11
11
|
- [Generate Quilt boilerplate](#generate-quilt-boilerplate)
|
@@ -30,7 +30,7 @@ A turn-key solution for integrating Quilt client-side libraries into your Rails
|
|
30
30
|
- [Configure StatsD for production](#configure-statsd-for-production)
|
31
31
|
- [API](#api)
|
32
32
|
- [ReactRenderable](#reactrenderable)
|
33
|
-
- [
|
33
|
+
- [Performance](#performance)
|
34
34
|
- [Engine](#engine)
|
35
35
|
- [Generators](#generators)
|
36
36
|
|
@@ -388,7 +388,7 @@ end
|
|
388
388
|
|
389
389
|
## Performance tracking a React app
|
390
390
|
|
391
|
-
Using [`Quilt::Performance::Reportable`](#performanceReportable) and [@shopify/react-performance](https://www.npmjs.com/package/@shopify/react-performance) it's easy to add performance tracking to apps using[`sewing_kit`](https://
|
391
|
+
Using [`Quilt::Performance::Reportable`](#performanceReportable) and [@shopify/react-performance](https://www.npmjs.com/package/@shopify/react-performance) it's easy to add performance tracking to apps using[`sewing_kit`](https://github.com/Shopify/sewing-kit/tree/master/gems/sewing_kit#sewing_kit-) for client-side-rendering or `quilt_rails` for server-side-rendering.
|
392
392
|
|
393
393
|
### Install dependencies
|
394
394
|
|
@@ -25,11 +25,9 @@ module Quilt
|
|
25
25
|
client.send(:process_report!)
|
26
26
|
end
|
27
27
|
|
28
|
-
def distribution(metric_name, value,
|
29
|
-
tags = tag_hash.map { |key, hash_value| "#{key}:#{hash_value}" }
|
30
|
-
|
28
|
+
def distribution(metric_name, value, tags = {})
|
31
29
|
@distribution_callback.call(metric_name, value, tags)
|
32
|
-
StatsD.distribution(metric_name, value, tags) unless Rails.env.dev?
|
30
|
+
StatsD.distribution(metric_name, value, tags: tags) unless Rails.env.dev?
|
33
31
|
end
|
34
32
|
|
35
33
|
def on_navigation(&block)
|
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.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathew Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|