react_on_rails 13.0.1 → 13.0.2

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: ac7cd79c4a43ac75a9a909b79cca371e421f4a80f7144da56a9cfc1ef2f3de05
4
- data.tar.gz: 7820198820fa77afcfa9efd4aeff17a718dd3feb6cff55cdb05ad05e545ed8ae
3
+ metadata.gz: 70b55160147309cf5da5f36f8d1f23ebad08c70b5d13362acc38ed1c6fbcd780
4
+ data.tar.gz: d6635ba54093daec5ee69412f46b0751d18dd035e37c69886625e94f3bc24728
5
5
  SHA512:
6
- metadata.gz: 4f45505a93f080c6231b59289efe7c50dd2c25c356f14a7f9195264d26bfed337356f3729584fe27abab2fa0169713139b2b277bd15d664348bb06ad6d6331ce
7
- data.tar.gz: 6df2a541c5f9b13e0d63c67b188198027aebc44758ed3c5f3a3c5ca5282da35a45830912df7ee3b988badf92040e924148ff7847d3c91436352e9b94d1b5769d
6
+ metadata.gz: bffe017f74585f13ddb5a647d0684b778e48fc40ebf62e586d0b1091cfa04716602a1fa54c21118fc0b43e2d4d9b6d65b9a5c333c3ea6b31ad2a90b9e7675a60
7
+ data.tar.gz: 2ea465e9a7cc0da248743bade989b811f1703371ca8dd757e9b072cb6b30106e4ebf2cc9351f742d4b8c63782b0b101183ca676733418df0d12677a84f05ccec
data/CHANGELOG.md CHANGED
@@ -16,9 +16,13 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
16
16
  Changes since last non-beta release.
17
17
 
18
18
  *Please add entries here for your pull requests that are not yet released.*
19
+ ### [13.0.2] - 2022-03-09
20
+ #### Fixed
21
+ - React 16 doesn't support version property, causing problems loading React on Rails. [PR 1435](https://github.com/shakacode/react_on_rails/pull/1435) by [justin808](https://github.com/justin808).
22
+
19
23
  ### [13.0.1] - 2022-02-09
20
24
  #### Improved
21
- - Updated the default generator [PR 1431](https://github.com/shakacode/react_on_rails/pull/1431) by [justin808](https://github.com/justin808).
25
+ - Updated the default generator. [PR 1431](https://github.com/shakacode/react_on_rails/pull/1431) by [justin808](https://github.com/justin808).
22
26
 
23
27
  ### [13.0.0] - 2022-02-08
24
28
  #### Breaking
data/README.md CHANGED
@@ -44,7 +44,7 @@ To provide a high performance framework for integrating Ruby on Rails with React
44
44
  Given that `rails/webpacker` gem already provides basic React integration, why would you use "React on Rails"?
45
45
 
46
46
  1. Easy passing of props directly from your Rails view to your React components rather than having your Rails view load and then make a separate request to your API.
47
- 1. Tight integration with [shakapacker](https://github.com/shakacode/shakapacker) (or it's predecessor [rails/webpacker](https://github.com/rails/webpacker].
47
+ 1. Tight integration with [shakapacker](https://github.com/shakacode/shakapacker) (or it's predecessor [rails/webpacker](https://github.com/rails/webpacker)).
48
48
  1. Server-Side Rendering (SSR), often used for SEO crawler indexing and UX performance.
49
49
  1. [Redux](https://github.com/reactjs/redux) and [React Router](https://github.com/ReactTraining/react-router#readme) integration with server-side-rendering.
50
50
  1. [Internationalization (I18n) and (localization)](https://www.shakacode.com/react-on-rails/docs/guides/i18n)
@@ -279,8 +279,9 @@ module ReactOnRails
279
279
  # URLs as UTF-8. This situation can occur in browsers that do not encode the
280
280
  # entire URL as UTF-8 already, mostly on the Windows platform (IE11 and lower).
281
281
  original_url_normalized = request.original_url
282
- if original_url_normalized.encoding.to_s == "ASCII-8BIT"
283
- original_url_normalized = original_url_normalized.force_encoding("ISO-8859-1").encode("UTF-8")
282
+ if original_url_normalized.encoding == Encoding::BINARY
283
+ original_url_normalized = original_url_normalized.force_encoding(Encoding::ISO_8859_1)
284
+ .encode(Encoding::UTF_8)
284
285
  end
285
286
 
286
287
  # Using Addressable instead of standard URI to better deal with
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "13.0.1"
4
+ VERSION = "13.0.2"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
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: 13.0.1
4
+ version: 13.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable