react_on_rails 6.9.2 → 6.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -0
- data/app/helpers/react_on_rails_helper.rb +5 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- 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: a7a346f29e55ae93fb80b6a56667a80b2b5eef93
|
4
|
+
data.tar.gz: c2770fad4cbc26fdbbb6366743f36906f79af420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5aa9075fe21ad1eacf0fce7509d6f2cd3424797bd1d47f044ad8c098b6a4eabe4bef17aec08dbe7de2186a52b54c117d6815a5fe828260ad4dacad119a7a03a
|
7
|
+
data.tar.gz: dfb3b4ae105c6cbce1112d8de928c90094c431efa19eec5c48d342d57210cf525bbd8ee58a7251d91576de603e6c4b043350e9a208d6e7e03ea05ff27f7869a6
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project's source code will be documented in this fil
|
|
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
|
|
6
6
|
## [Unreleased]
|
7
|
+
## [6.9.3] - 2017-04-03
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
- Removed call of to_json on strings when formatting props. [#791](https://github.com/shakacode/react_on_rails/pull/791) by [justin808](https://github.com/justin808)
|
7
11
|
|
8
12
|
## [6.9.2] - 2017-04-02
|
9
13
|
|
@@ -518,7 +522,8 @@ Best done with Object destructing:
|
|
518
522
|
##### Fixed
|
519
523
|
- Fix several generator related issues.
|
520
524
|
|
521
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.9.
|
525
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/6.9.3...master
|
526
|
+
[6.9.3]: https://github.com/shakacode/react_on_rails/compare/6.9.1...6.9.3
|
522
527
|
[6.9.2]: https://github.com/shakacode/react_on_rails/compare/6.9.1...6.9.2
|
523
528
|
[6.9.1]: https://github.com/shakacode/react_on_rails/compare/6.8.2...6.9.1
|
524
529
|
[6.9.0]: https://github.com/shakacode/react_on_rails/compare/6.8.2...6.9.0
|
data/README.md
CHANGED
@@ -47,6 +47,7 @@ For more testimonials, see [Live Projects](PROJECTS.md) and [Kudos](./KUDOS.md).
|
|
47
47
|
* [284 Ruby Rogues: React on Rails with Justin Gordon and Rob Wise](https://devchat.tv/ruby-rogues/284-rr-react-on-rails-with-justin-gordon-and-rob-wise)
|
48
48
|
|
49
49
|
# NEWS
|
50
|
+
* 2017-04-02: 6.9.2 Released! Props rendered in JSON script tag. Page size is smaller now due to less escaping!
|
50
51
|
* 2017-03-06: Updated to Webpack v2!
|
51
52
|
* 2017-03-02: Demo of internationalization (i18n) is live at [reactrails.com](https://www.reactrails.com/). Docs [here](docs/basics/i18n.md).
|
52
53
|
* 2017-02-28: See [discussions here on Webpacker](https://github.com/rails/webpacker/issues/139) regarding how Webpacker will allow React on Rails to avoid using the asset pipeline in the near future.
|
@@ -234,7 +234,11 @@ module ReactOnRailsHelper
|
|
234
234
|
#
|
235
235
|
# Temp fix given that a hash may contain active record objects and that crashed with the new
|
236
236
|
# code to JSON.pretty_generate
|
237
|
-
|
237
|
+
|
238
|
+
# If to_json is called on a String, then the quotes are escaped.
|
239
|
+
json_value = hash_or_string.is_a?(String) ? hash_or_string : hash_or_string.to_json
|
240
|
+
|
241
|
+
ERB::Util.json_escape(json_value)
|
238
242
|
# end
|
239
243
|
end
|
240
244
|
|
data/package.json
CHANGED
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.9.
|
4
|
+
version: 6.9.3
|
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-04-
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|