quilt_rails 3.1.1 → 3.2.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: 3c49aaaa50e7e7884ce87e9fcff516a4875ab6cfbe07f2ba8a4f22df640f7f72
4
- data.tar.gz: 292705d4cd8345c1b764b6c0964745ec1da057b9c2a717ee67903099b578c08d
3
+ metadata.gz: e887915bb7068b86352c99c8f53b38a69bcc313c8859a058ceac543ef1ea1d79
4
+ data.tar.gz: 8aa15f78b167b1513094d40b4714b7539164880cb7514884ce3ab40c03288325
5
5
  SHA512:
6
- metadata.gz: 43205a9ffd5c5cac51f039681a968f18a4e550f2f90d28e67f70ccea467086be5d69fd904a48eaf15503f3cd4e21f9a0bbe76ee47cebdbc25e7ef4c3eea55642
7
- data.tar.gz: 524c21913e16f8ed7420a9154703e8173c30ede53d7e1acee5ecad9b33785d2dc002f25905021f5b4a310819c7f60afd1635d984d6982b9a29a1a9307809cadc
6
+ metadata.gz: 1138e0a191bd3412a5bfb735efdb2a45e24549660a5085922e8495427ebe5246baf5b5d2e216446975efd5cee9f77c25c4d79b35edbde462383495f70e709ea5
7
+ data.tar.gz: 9d52ae742f44161da2486543e335d83a46c8ae70a21778e9a809d4b62ce029687c2571379ae9cc2f4adc87758135e5bdb448cddcf41b14ca2446b1bc7b25f059
data/README.md CHANGED
@@ -171,6 +171,8 @@ In some cases you may want to send basic data from Rails to your React server. Q
171
171
 
172
172
  **Note:** The data passed should be data that is unlikely or will never change over the course of the session before they render any React components.
173
173
 
174
+ **Note:** Please note the minimal dependencies require to use this feature is listed in [CHANGELOG](./CHANGELOG.md#[1.12.0]-2020-05-07)
175
+
174
176
  ```ruby
175
177
  class ReactController < ApplicationController
176
178
  include Quilt::ReactRenderable
@@ -3,17 +3,20 @@
3
3
  module Quilt
4
4
  class ReactSetupGenerator < Rails::Generators::Base
5
5
  source_root File.expand_path('templates', __dir__)
6
+ class_option :skip_yarn, type: :boolean, default: false
6
7
 
7
8
  desc "This generator adds a React app."
8
9
 
9
10
  def install_js_dependencies
11
+ return if options.skip_yarn?
12
+
10
13
  say "Installing react and types dependencies"
11
14
  system("yarn add "\
12
15
  "typescript@~3.8.0 "\
13
16
  "react@~16.11.0 "\
14
17
  "react-dom@~16.11.0 "\
15
18
  "@types/react@~16.9.0 "\
16
- "@types/react-dom@~16.9.0 ") unless Rails.env.test?
19
+ "@types/react-dom@~16.9.0 ")
17
20
  end
18
21
 
19
22
  def create_tsconfig
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Quilt
3
- VERSION = "3.1.1"
3
+ VERSION = "3.2.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: 3.1.1
4
+ version: 3.2.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: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties