react_on_rails 6.0.0.rc.5 → 6.0.0.rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4b072c2eb69ec546042503d26ae2f7848fd07f7
4
- data.tar.gz: 5f18e1ab285ceb1209244eff6f2e81bfecc4cd52
3
+ metadata.gz: b624ec3c9c4eff36991a0ac06b7f47e396449a1b
4
+ data.tar.gz: 28c02ca9f8e7eecf5c220a6c3b73b7e2bebe5c4e
5
5
  SHA512:
6
- metadata.gz: ed76f9048de124d41b0cef1c5dced38ea9fa4e60606aceceedf9fe3dc805d9e3837e2af0bb8b2e3c7d086df8e120161fdc93321cad5a13525cedae221dd6727f
7
- data.tar.gz: c149ed1f82a1e94617dd003289941a443e7fcc171b7669b8f3693c1def851d7711abbee6fae7b59b8734a1b9dee2f6e32a5c79c118975e41202aef167a29e649
6
+ metadata.gz: d7281ea019fd0a6a34482890e2ed6fc17398062bc49a1c90e40205c9b22f452b578b13c8c792b85d79525fc56948ae29ab0f6a34963cb30be84e7ad42871c470
7
+ data.tar.gz: 1595f308b86787c01898288bfc7ca4c468466226bdc3fd013afae83c441dcc699819cb6c41ab06c9feb3f8d192f7e1fd5bd2df7b34596f4793900f4f7a40735e
@@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file. Items under
4
4
  Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
5
5
  ## [Unreleased]
6
6
 
7
- ## [6.0.0-rc.1]
7
+ ## [6.0.0-rc.5]
8
8
  ##### Breaking Changes
9
9
  - Added automatic compilation of assets at precompile is now done by ReactOnRails. Thus, you don't need to provide your own assets.rake file that does the precompilation.
10
10
  [#398](https://github.com/shakacode/react_on_rails/pull/398) by [robwise](https://github.com/robwise), [jbhatab](https://github.com/jbhatab), and [justin808](https://github.com/justin808).
11
11
  - **Migration to v6**
12
+ - Do not run the generator again if you've already run it.
13
+
14
+ - See [shakacode/react-webpack-rails-tutorial/pull/287](https://github.com/shakacode/react-webpack-rails-tutorial/pull/287) for an example of upgrading from v5.
12
15
 
13
16
  - To configure the asset compliation you can either
14
17
  1. Specify a `config/react_on_rails` setting for `npm_build_production_command` to be nil to turn this feature off.
@@ -32,6 +35,7 @@ Here is the addition to the generated config file:
32
35
 
33
36
  ##### Fixed
34
37
  - Fixed errors when server rendered props contain \u2028 or \u2029 characters [#375](https://github.com/shakacode/react_on_rails/pull/375) by [mariusandra](https://github.com/mariusandra)
38
+ - Fixed "too early unmount" which caused problems with Turbolinks 5 not updating the screen [#425](https://github.com/shakacode/react_on_rails/pull/425) by [szyablitsky](https://github.com/szyablitsky)
35
39
 
36
40
  ##### Added
37
41
  - Experimental ability to use node.js process for server rendering. See [#380](https://github.com/shakacode/react_on_rails/pull/380) by [alleycat-at-git](https://github.com/alleycat-at-git).
@@ -329,7 +333,7 @@ Best done with Object destructing:
329
333
  - Fix several generator related issues.
330
334
 
331
335
  [Unreleased]: https://github.com/shakacode/react_on_rails/compare/5.2.0...master
332
- [6.0.0-rc.1]: https://github.com/shakacode/react_on_rails/compare/5.2.0...6.0.0-rc.1
336
+ [6.0.0-rc.5]: https://github.com/shakacode/react_on_rails/compare/5.2.0...6.0.0-rc.5
333
337
  [5.2.0]: https://github.com/shakacode/react_on_rails/compare/5.1.1...5.2.0
334
338
  [5.1.1]: https://github.com/shakacode/react_on_rails/compare/5.1.0...5.1.1
335
339
  [5.1.0]: https://github.com/shakacode/react_on_rails/compare/5.0.0...5.1.0
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ReactOnRails
3
- VERSION = "6.0.0.rc.5".freeze
3
+ VERSION = "6.0.0.rc.6".freeze
4
4
  end
@@ -24,8 +24,9 @@ namespace :react_on_rails do
24
24
  desc "Creates non-digested symlinks for the assets in the public asset dir"
25
25
  task symlink_non_digested_assets: :"assets:environment" do
26
26
  if ReactOnRails.configuration.symlink_non_digested_assets_regex
27
- manifest_path = Dir.glob(ReactOnRails::assets_path.join(".sprockets-manifest-*.json"))
28
- .first
27
+ manifest_path = Dir.glob(ReactOnRails::assets_path
28
+ .join(".sprockets-manifest-*.json"))
29
+ .first
29
30
  manifest_data = JSON.load(File.new(manifest_path))
30
31
 
31
32
  manifest_data["assets"].each do |logical_path, digested_path|
@@ -51,7 +52,7 @@ namespace :react_on_rails do
51
52
  target = File.readlink(filename)
52
53
  rescue
53
54
  puts "React on Rails: Warning: your platform doesn't support File::readlink method."/
54
- "Skipping broken link check."
55
+ "Skipping broken link check."
55
56
  return
56
57
  end
57
58
  path = Pathname.new(File.dirname(filename))
@@ -102,11 +103,12 @@ end
102
103
  # These tasks run as pre-requisites of assets:precompile.
103
104
  # Note, it's not possible to refer to ReactOnRails configuration values at this point.
104
105
  Rake::Task["assets:precompile"]
105
- .clear_prerequisites
106
- .enhance([:environment,
107
- "react_on_rails:assets:compile_environment",
108
- "react_on_rails:assets:symlink_non_digested_assets",
109
- "react_on_rails:assets:delete_broken_symlinks"])
106
+ .clear_prerequisites
107
+ .enhance([:environment, "react_on_rails:assets:compile_environment"])
108
+ .enhance do
109
+ Rake::Task["react_on_rails:assets:symlink_non_digested_assets"].invoke
110
+ Rake::Task["react_on_rails:assets:delete_broken_symlinks"].invoke
111
+ end
110
112
 
111
113
  # puts "Enhancing assets:precompile with react_on_rails:assets:compile_environment"
112
114
  # Rake::Task["assets:precompile"]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "6.0.0-rc.5",
3
+ "version": "6.0.0-rc.6",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
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: 6.0.0.rc.5
4
+ version: 6.0.0.rc.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -455,7 +455,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
455
455
  version: 1.3.1
456
456
  requirements: []
457
457
  rubyforge_project:
458
- rubygems_version: 2.6.1
458
+ rubygems_version: 2.5.1
459
459
  signing_key:
460
460
  specification_version: 4
461
461
  summary: Rails with react server rendering with webpack.