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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 698a173ee3b10092312909bbee61feba9982397e474043ed6a3a77a548b2836c
4
- data.tar.gz: 99d5d7844a7d1b1850df281589b5ebfa1b08ac830845f650bacd99722799dc4f
3
+ metadata.gz: 875ee204d6daad074946aec06f288627aa5481dfe59f28769462083f99215a66
4
+ data.tar.gz: 4335d6f6a9ef4dd9a3ad457b96dd3fbf67cfa0a69a8ca30e78d65926a23d24c5
5
5
  SHA512:
6
- metadata.gz: 2967e5754b5c2525da40d52fd3acc00097fbb6c3011c417c5d2118748880560bf32f7d2262eaa531e324aa53d2c9166a990da87658b418ff8a8803c677581ab7
7
- data.tar.gz: 5fe683e1107e708a0a6e3bb169d37761b84b73e8dea0e296d7d469f168a4d783654961c1fb500b663efddbeeaf6834797bc917571c3696d54ff6d8d3f53b5740
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://www.npmjs.com/package/@shopify/sewing-kit) for building, testing and linting, and front-end performance tracking through [`@shopify/performance`](https://www.npmjs.com/package/@shopify/performance).
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](#server-side-rendering-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
- - [PerformanceReportable](#performanceReportable)
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://www.npmjs.com/package/@shopify/sewing-kit) for client-side-rendering or `quilt_rails` for server-side-rendering.
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, tag_hash = {})
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)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Quilt
3
- VERSION = "1.9.0"
3
+ VERSION = "1.9.1"
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.9.0
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-23 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties