react_on_rails 7.1.0.beta.3 → 8.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt +4 -5
- data/lib/react_on_rails/configuration.rb +1 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- data/rakelib/run_rspec.rake +0 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 478f006c74e03d3961bfb089ede629f576ce1f8a
|
4
|
+
data.tar.gz: d343c8674f77a5ba6716844e87772b205e9cb147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46cea9d995a34d4aa1f6da06eb854809a8a3229a0c2b8c9bae63b285b71a7eee0fb6876d2b40283447ec0313c1e824e6fd527ba6aff1ac58bbf432d718a331de
|
7
|
+
data.tar.gz: 3b6227a637dd6faf41c282a395141e6b98dd007817590a09743df7cec4cee62b802c7305c9f3de3b5858662730c39494435dd4786598a8e3a20068b17f8619ed
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,25 @@ Contributors: please follow the recommendations outlined at [keepachangelog.com]
|
|
6
6
|
## [Unreleased]
|
7
7
|
*Please add entries here for your pull requests.*
|
8
8
|
|
9
|
+
## [8.0.0] - 2017-05-03
|
10
|
+
|
11
|
+
### Added
|
12
|
+
Support for WebpackerLite in the generators. [#822](https://github.com/shakacode/react_on_rails/pull/822) by [kaizencodes](https://github.com/kaizencodes) and [justin808](https://github.com/justin808).
|
13
|
+
|
14
|
+
1. You do not need to switch to WebpackerLite to use 8.0.0.
|
15
|
+
2. You can find an upgrade example in [react-webpack-rails-tutorial PR #387](https://github.com/shakacode/react-webpack-rails-tutorial/pull/387).
|
16
|
+
|
17
|
+
### Changed
|
18
|
+
Breaking change is that the default value of symlink_non_digested_assets_regex has changed from this
|
19
|
+
old value to nil. This is a breaking change if you didn't have this value set in your
|
20
|
+
config/initializers/react_on_rails.rb file and you need this because you're using webpack's CSS
|
21
|
+
features and you have not switched to webpacker lite.
|
22
|
+
|
23
|
+
```
|
24
|
+
symlink_non_digested_assets_regex: /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/,
|
25
|
+
```
|
26
|
+
|
27
|
+
|
9
28
|
## [7.0.4] - 2017-04-27
|
10
29
|
- Return empty json when nil in json_safe_and_pretty [#824](https://github.com/shakacode/react_on_rails/pull/824) by [dzirtusss](https://github.com/dzirtusss)
|
11
30
|
|
data/lib/generators/react_on_rails/templates/base/base/config/initializers/react_on_rails.rb.tt
CHANGED
@@ -82,9 +82,8 @@ ReactOnRails.configure do |config|
|
|
82
82
|
config.server_render_method = "ExecJS"
|
83
83
|
<%- end -%>
|
84
84
|
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
config.symlink_non_digested_assets_regex = /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/
|
89
|
-
|
85
|
+
# If you want to use webpack for CSS and images, and still use the asset pipeline,
|
86
|
+
# see https://github.com/shakacode/react_on_rails/blob/master/docs/additional-reading/rails-assets.md
|
87
|
+
# And you will use a setting like this.
|
88
|
+
# config.symlink_non_digested_assets_regex = /\.(png|jpg|jpeg|gif|tiff|woff|ttf|eot|svg|map)/
|
90
89
|
end
|
@@ -98,7 +98,7 @@ module ReactOnRails
|
|
98
98
|
webpack_generated_files: [],
|
99
99
|
rendering_extension: nil,
|
100
100
|
server_render_method: "",
|
101
|
-
symlink_non_digested_assets_regex:
|
101
|
+
symlink_non_digested_assets_regex: nil,
|
102
102
|
npm_build_test_command: "",
|
103
103
|
i18n_dir: "",
|
104
104
|
i18n_yml_dir: "",
|
data/package.json
CHANGED
data/rakelib/run_rspec.rake
CHANGED
@@ -11,7 +11,6 @@ include ReactOnRails::TaskHelpers
|
|
11
11
|
|
12
12
|
namespace :run_rspec do
|
13
13
|
spec_dummy_dir = File.join("spec", "dummy")
|
14
|
-
spec_dummy_client_dir = File.join("spec", "dummy", "client")
|
15
14
|
|
16
15
|
desc "Run RSpec for top level only"
|
17
16
|
task :gem do
|
@@ -21,14 +20,12 @@ namespace :run_rspec do
|
|
21
20
|
desc "Runs dummy rspec with turbolinks"
|
22
21
|
task dummy: ["dummy_apps:dummy_app"] do
|
23
22
|
clean_gen_assets(spec_dummy_dir)
|
24
|
-
gen_assets(spec_dummy_client_dir)
|
25
23
|
run_tests_in(spec_dummy_dir)
|
26
24
|
end
|
27
25
|
|
28
26
|
desc "Runs dummy rspec without turbolinks"
|
29
27
|
task dummy_no_turbolinks: ["dummy_apps:dummy_app"] do
|
30
28
|
clean_gen_assets(spec_dummy_dir)
|
31
|
-
gen_assets(spec_dummy_client_dir)
|
32
29
|
run_tests_in(spec_dummy_dir,
|
33
30
|
env_vars: "DISABLE_TURBOLINKS=TRUE",
|
34
31
|
command_name: "dummy_no_turbolinks")
|
@@ -38,7 +35,6 @@ namespace :run_rspec do
|
|
38
35
|
desc "Runs dummy respec with turbolinks 2"
|
39
36
|
task dummy_turbolinks_2: ["dummy_apps:dummy_app_with_turbolinks_2"] do
|
40
37
|
clean_gen_assets(spec_dummy_dir)
|
41
|
-
gen_assets(spec_dummy_client_dir)
|
42
38
|
run_tests_in(spec_dummy_dir, env_vars:
|
43
39
|
"ENABLE_TURBOLINKS_2=TRUE BUNDLE_GEMFILE=#{dummy_app_dir}/Gemfile")
|
44
40
|
end
|
@@ -119,8 +115,3 @@ def clean_gen_assets(dir)
|
|
119
115
|
path = calc_path(dir)
|
120
116
|
sh_in_dir(path.realpath, "yarn run build:clean")
|
121
117
|
end
|
122
|
-
|
123
|
-
def gen_assets(dir)
|
124
|
-
path = calc_path(dir)
|
125
|
-
sh_in_dir(path.realpath, "yarn run build:test")
|
126
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react_on_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|