react_on_rails 4.0.2 → 4.0.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/NEWS.md +1 -0
- data/README.md +1 -1
- data/app/helpers/react_on_rails_helper.rb +6 -1
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9fb49d3c4b296dc1fe13485ddaed02e8ff9deef
|
4
|
+
data.tar.gz: 4892bf3e7e4d8fcbc26dbdfd0f4ae8b19ceee27a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4746e699ba5668f9f555940a974a3ed8bc0c8eb03902ea4efa4149c9e2f617bcd2a6e1d8fe084a8c03ba8cea14cd0e62fb789a4d71d4a401ab3c0c28519670
|
7
|
+
data.tar.gz: 45bd9b8d0c417df44666527e64b10dc60116fdf61fee18ced75937d09dd0a98e495f15141e366749b88b7c093d8001991b87dc4ae122b6228b0bd454122d3d2f
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. Items under
|
|
3
3
|
|
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
|
+
## [4.0.3] - 2016-03-17
|
7
|
+
##### Fixed
|
8
|
+
- `ReactOnRailsHelper#react_compnent`: Invalid deprecation message when called with only one paramter, the component name.
|
6
9
|
## [4.0.2] - 2016-03-17
|
7
10
|
##### Fixed
|
8
11
|
- `ReactOnRails::Controller#redux_store`: 2nd parameter changed to a named parameter `props` for consistency.
|
@@ -227,7 +230,9 @@ Best done with Object destructing:
|
|
227
230
|
|
228
231
|
##### Fixed
|
229
232
|
- Fix several generator related issues.
|
230
|
-
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.
|
233
|
+
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/4.0.3...master
|
234
|
+
[4.0.3]: https://github.com/shakacode/react_on_rails/compare/4.0.2...4.0.3
|
235
|
+
[4.0.2]: https://github.com/shakacode/react_on_rails/compare/4.0.1...4.0.2
|
231
236
|
[4.0.1]: https://github.com/shakacode/react_on_rails/compare/4.0.0...4.0.1
|
232
237
|
[4.0.0]: https://github.com/shakacode/react_on_rails/compare/3.0.6...4.0.0
|
233
238
|
[3.0.6]: https://github.com/shakacode/react_on_rails/compare/3.0.5...3.0.6
|
data/NEWS.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
*We'll keep a history of the news. A few bullets at the top will also show on the [README.md](./README.md).*
|
4
4
|
|
5
5
|
* Always see the [CHANGELOG.md](./CHANGELOG.md) for the latest project changes.
|
6
|
+
* 2016-03-17: **4.0.3** Shipped! Includes using the new Heroku buildpack steps, several smaller changes detailed in the [CHANGELOG.md](./CHANGELOG.md).
|
6
7
|
* 2016-03-17: **4.0.2** Shipped! Includes using the new Heroku buildpack steps.
|
7
8
|
* Better support for hot reloading of assets from Rails with new helpers and updates to the sample testing app, [spec/dummy](spec/dummy).
|
8
9
|
* Better support for Turbolinks 5.
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# NEWS
|
4
4
|
* Always see the [CHANGELOG.md](./CHANGELOG.md) for the latest project changes.
|
5
|
-
* 2016-03-
|
5
|
+
* 2016-03-17: **4.0.3** Shipped! Includes using the new Heroku buildpack steps, several smaller changes detailed in the [CHANGELOG.md](./CHANGELOG.md).
|
6
6
|
* 2016-03-14: **4.0.0** Highlights
|
7
7
|
* Better support for hot reloading of assets from Rails with new helpers and updates to the sample testing app, [spec/dummy](spec/dummy).
|
8
8
|
* Better support for Turbolinks 5.
|
@@ -337,6 +337,8 @@ ReactOnRails.setStore('#{store_name}', store);
|
|
337
337
|
options.fetch(:replay_console) { ReactOnRails.configuration.replay_console }
|
338
338
|
end
|
339
339
|
|
340
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
341
|
+
# rubocop:disable Metrics/PerceivedComplexity
|
340
342
|
def parse_options_props(component_name, options, other_options)
|
341
343
|
other_options ||= {}
|
342
344
|
if options.is_a?(Hash) && options.key?(:props)
|
@@ -352,7 +354,7 @@ ReactOnRails.setStore('#{store_name}', store);
|
|
352
354
|
%i(prerender trace replay_console raise_on_prerender_error).none? do |key|
|
353
355
|
options.key?(key)
|
354
356
|
end
|
355
|
-
deprecated_syntax = options_has_no_reserved_keys
|
357
|
+
deprecated_syntax = options_has_no_reserved_keys && options.present?
|
356
358
|
end
|
357
359
|
|
358
360
|
if deprecated_syntax
|
@@ -360,6 +362,7 @@ ReactOnRails.setStore('#{store_name}', store);
|
|
360
362
|
" Props as the second arg will be removed in a future release. Called for "\
|
361
363
|
"component_name: #{component_name}, controller: #{controller_name}, "\
|
362
364
|
"action: #{action_name}."
|
365
|
+
options = {} if options.is_a?(String) && options.blank?
|
363
366
|
props = options
|
364
367
|
final_options = other_options
|
365
368
|
else
|
@@ -369,6 +372,8 @@ ReactOnRails.setStore('#{store_name}', store);
|
|
369
372
|
end
|
370
373
|
[final_options, props]
|
371
374
|
end
|
375
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
376
|
+
# rubocop:enable Metrics/PerceivedComplexity
|
372
377
|
|
373
378
|
def use_hot_reloading?
|
374
379
|
ENV["REACT_ON_RAILS_ENV"] == "HOT"
|
data/package.json
CHANGED