react_on_rails 8.0.5 → 8.0.6.rc.0

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
  SHA1:
3
- metadata.gz: faeb1853b6dc1c9076bb62236f58e9754fd19e90
4
- data.tar.gz: a69ee868fa3650c52de72e969798938283da2168
3
+ metadata.gz: 1c6ee3fc28399227e4cc5532139be23ac8c5e43e
4
+ data.tar.gz: c0d9e7e3e583e303deda8ad4e7d04b8ad4003b05
5
5
  SHA512:
6
- metadata.gz: cd7364f898d5f51bacc57a1b6c5d6a2d1942cc45941e0720de0ce97b64bd34ccd2a9447545e13e49b4bd2f6a1225fff1d3d80985f2f1657fa6258b0ee43916e0
7
- data.tar.gz: 0e5ab3d53c966a6ca42e1ef296e8703310a7a1e30af50536cd55a8ae07a176d860855232e37687fa0843d86cc12a1b59782b6a095e1311163ca4bc99f5954f0f
6
+ metadata.gz: df70573337317bd8d3eee9971124b94155874b201b884e71d3b4022f6044225694216804fa4c63e62a427b9d7e78811107ab9b4b59ee0e46c055998924bf9249
7
+ data.tar.gz: 78ff3efaf3fe64c773376469426ebbef7b23022d7f9b4f9c93060e3fdfa899daca3f0e273e00c37ec2aa8f80bed35e846a05d4c33dfc2df1fd684d0322033625
@@ -8,11 +8,17 @@ Changes since last non-beta release.
8
8
 
9
9
  *Please add entries here for your pull requests.*
10
10
 
11
+ ### [8.0.6]
12
+ #### fixed
13
+ - Fixes server rendering when using a CDN. Server rendering would try to fetch a file with the "asset_host". This change updates the webpacker_lite dependency to 2.1.0 which has a new helper `pack_path`. [#901](https://github.com/shakacode/react_on_rails/pull/901) by [justin808](https://github.com/justin808).
14
+ - The package.json file created by the generator now creates minified javascript production builds by default. This was done by adding the -p flag to webpack on the build:production script. [#895](https://github.com/shakacode/react_on_rails/pull/895) by [serodriguez68 ](https://github.com/serodriguez68)
15
+ - Fixes GitUtils.uncommitted_changes? throwing an error when called in an environment without Git, and allows install generator to be run successfully with `--ignore-warnings` [#878](https://github.com/shakacode/react_on_rails/pull/878) by [jasonblalock](https://github.com/jasonblalock).
16
+
11
17
  ## [8.0.5]
12
18
  ### fixed
13
19
  - Corrects `devBuild` value for webpack production build from webpackConfigLoader. [#877](https://github.com/shakacode/react_on_rails/pull/877) by [chenqingspring](https://github.com/chenqingspring).
14
20
  - Remove contentBase deprecation warning message. [#878](https://github.com/shakacode/react_on_rails/pull/878) by [ened ](https://github.com/ened).
15
- - Removes invalid reference to _railsContext in the generated files. [#886](https://github.com/shakacode/react_on_rails/pull/8876) by [justin808](https://github.com/justin808)
21
+ - Removes invalid reference to _railsContext in the generated files. [#886](https://github.com/shakacode/react_on_rails/pull/886) by [justin808](https://github.com/justin808).
16
22
  - All tests run against Rails 5.1.2
17
23
 
18
24
  *Note: 8.0.4 skipped.*
@@ -23,9 +29,9 @@ Changes since last non-beta release.
23
29
 
24
30
  ## [8.0.2]
25
31
  ### Fixed
26
- - Any failure in webpack to build test files quits tests.
32
+ - Any failure in webpack to build test files quits tests.
27
33
  - Fixed a Ruby 2.4 potential crash which could cause a crash due to pathname change in Ruby 2.4.
28
- - CI Improvements:
34
+ - CI Improvements:
29
35
  - Switched to yarn link and removed relative path install of react-on-rails
30
36
  - Removed testing of Turbolinks 2
31
37
  - All tests run against Rails 5.1.1
@@ -49,7 +55,7 @@ Changes since last non-beta release.
49
55
  ### Changed
50
56
  - Major updates for WebpackerLite 2.0.2. [#844](https://github.com/shakacode/react_on_rails/pull/845) by [justin808](https://github.com/justin808) with help from ](https://github.com/robwise)
51
57
  - Logging no longer occurs when trace is turned to false. [#845](https://github.com/shakacode/react_on_rails/pull/845) by [conturbo](https://github.com/Conturbo)
52
-
58
+
53
59
  ## [8.0.0-beta.2] - 2017-05-08
54
60
 
55
61
  ### Changed
data/Gemfile CHANGED
@@ -38,6 +38,6 @@ gem "chromedriver-helper"
38
38
  gem "launchy"
39
39
  gem "poltergeist"
40
40
  gem "selenium-webdriver"
41
- gem "webpacker_lite"
41
+ gem "webpacker_lite", "~> 2.1"
42
42
 
43
43
  gem "rainbow"
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  [![Build Status](https://travis-ci.org/shakacode/react_on_rails.svg?branch=master)](https://travis-ci.org/shakacode/react_on_rails) [![Codeship Status for shakacode/react_on_rails](https://app.codeship.com/projects/cec6c040-971f-0134-488f-0a5146246bd8/status?branch=master)](https://app.codeship.com/projects/187011) [![Dependency Status](https://gemnasium.com/shakacode/react_on_rails.svg)](https://gemnasium.com/shakacode/react_on_rails) [![Gem Version](https://badge.fury.io/rb/react_on_rails.svg)](https://badge.fury.io/rb/react_on_rails) [![npm version](https://badge.fury.io/js/react-on-rails.svg)](https://badge.fury.io/js/react-on-rails) [![Code Climate](https://codeclimate.com/github/shakacode/react_on_rails/badges/gpa.svg)](https://codeclimate.com/github/shakacode/react_on_rails) [![Coverage Status](https://coveralls.io/repos/shakacode/react_on_rails/badge.svg?branch=master&service=github)](https://coveralls.io/github/shakacode/react_on_rails?branch=master)
2
2
 
3
+ *If this projects helps you, please give us a star!*
4
+
3
5
  ## Thank you from Justin Gordon and [ShakaCode](http://www.shakacode.com)
4
6
 
5
7
  Thank you for considering using [React on Rails](https://github.com/shakacode/react_on_rails).
@@ -4,7 +4,7 @@
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "build:test": "NODE_ENV=test webpack --config webpack.config.js",
7
- "build:production": "NODE_ENV=production webpack --config webpack.config.js",
7
+ "build:production": "NODE_ENV=production webpack -p --config webpack.config.js",
8
8
  "build:development": "NODE_ENV=development webpack -w --config webpack.config.js"
9
9
  },
10
10
  "cacheDirectories": ["node_modules", "client/node_modules"],
@@ -1,12 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "English"
4
+
3
5
  module ReactOnRails
4
6
  module GitUtils
5
7
  def self.uncommitted_changes?(message_handler)
6
8
  return false if ENV["COVERAGE"] == "true"
7
9
  status = `git status --porcelain`
8
- return false if status.empty?
9
- error = "You have uncommitted code. Please commit or stash your changes before continuing"
10
+ return false if $CHILD_STATUS.success? && status.empty?
11
+ error = if !$CHILD_STATUS.success?
12
+ "You do not have Git installed. Please install Git, and commit your changes before continuing"
13
+ else
14
+ "You have uncommitted code. Please commit or stash your changes before continuing"
15
+ end
10
16
  message_handler.add_error(error)
11
17
  true
12
18
  end
@@ -72,7 +72,8 @@ exitstatus: #{status.exitstatus}#{stdout_msg}#{stderr_msg}
72
72
 
73
73
  if using_webpacker_lite? && WebpackerLite::Manifest.lookup(bundle_name)
74
74
  # If using webpacker_lite gem
75
- public_subdir_hashed_file_name = ActionController::Base.helpers.asset_pack_path(bundle_name)
75
+ # Per https://github.com/rails/webpacker/issues/571, this path might
76
+ public_subdir_hashed_file_name = ActionController::Base.helpers.pack_path(bundle_name)
76
77
  return File.join("public", public_subdir_hashed_file_name)
77
78
  end
78
79
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "8.0.5"
4
+ VERSION = "8.0.6.rc.0"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "8.0.5",
3
+ "version": "8.0.6-rc.0",
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: 8.0.5
4
+ version: 8.0.6.rc.0
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-07-05 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -470,9 +470,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
470
470
  version: 2.0.0
471
471
  required_rubygems_version: !ruby/object:Gem::Requirement
472
472
  requirements:
473
- - - ">="
473
+ - - ">"
474
474
  - !ruby/object:Gem::Version
475
- version: '0'
475
+ version: 1.3.1
476
476
  requirements: []
477
477
  rubyforge_project:
478
478
  rubygems_version: 2.6.12