react_on_rails 7.0.3 → 7.0.4

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: ef998054ca4a6183ff2b3a1f03c5548e571e7530
4
- data.tar.gz: 890fa047afd848ebbdb7be691db95530473737e7
3
+ metadata.gz: 7c09c0e266eff11daec5d1c570b125e6d7562aa6
4
+ data.tar.gz: 666d703c93be4097189a0001c083e7c7a3c54918
5
5
  SHA512:
6
- metadata.gz: 10cc9f43c76f46a802b8de23f881dda04538153e6e9f27c212955472241736bf5c07ec7c6dae69413713f235b2c280011515ec82586b425b4db243274c238dfd
7
- data.tar.gz: f12eeebc7f8525e46481d244013f05e55d574ea922a8de9b1d297b7efcd79f48fea153c75d42db0c4d89763c058f9d288e6f53d3829020b84831042c4295cded
6
+ metadata.gz: '09dcad342d1dd0c8f4879e31a6f44633a88d9286089d4a4ce35c9738fab1942ccb4ee43aaa470016f05e7b6042720457b0a1a2bad7f6561e0a8e43ad16acf3f0'
7
+ data.tar.gz: a45fa0ca99b488dbe3d99ee0a4d40240773266b19316ccdc3df2e7411f1d4d4b17a7154970fe13ecb3471cfd03c380471a9ff190710214515af845b843015426
data/CHANGELOG.md CHANGED
@@ -4,7 +4,16 @@ 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
- *Please add entries here for your pull requests.*
7
+ *Please add entries here for your pull requests.*
8
+
9
+ ## [7.0.4] - 2017-04-27
10
+ - Return empty json when nil in json_safe_and_pretty [#824](https://github.com/shakacode/react_on_rails/pull/824) by [dzirtusss](https://github.com/dzirtusss)
11
+
12
+ ## [7.0.3] - 2017-04-27
13
+ Same as 7.0.1.
14
+
15
+ ## 7.0.2 - 2017-04-27
16
+ *Accidental release of beta gem here*
8
17
 
9
18
  ## [7.0.1] - 2017-04-27
10
19
  ### Fixed
@@ -547,7 +556,9 @@ Best done with Object destructing:
547
556
  ##### Fixed
548
557
  - Fix several generator related issues.
549
558
 
550
- [Unreleased]: https://github.com/shakacode/react_on_rails/compare/7.0.1...master
559
+ [Unreleased]: https://github.com/shakacode/react_on_rails/compare/7.0.4...master
560
+ [7.0.4]: https://github.com/shakacode/react_on_rails/compare/7.0.3...7.0.4
561
+ [7.0.3]: https://github.com/shakacode/react_on_rails/compare/7.0.1...7.0.3
551
562
  [7.0.1]: https://github.com/shakacode/react_on_rails/compare/7.0.0...7.0.1
552
563
  [7.0.0]: https://github.com/shakacode/react_on_rails/compare/6.10.1...7.0.0
553
564
  [6.10.1]: https://github.com/shakacode/react_on_rails/compare/6.10.0...6.10.1
@@ -231,7 +231,7 @@ module ReactOnRailsHelper
231
231
  end
232
232
 
233
233
  def json_safe_and_pretty(hash_or_string)
234
- return if hash_or_string.nil?
234
+ return "{}" if hash_or_string.nil?
235
235
  unless hash_or_string.class.in?([Hash, String])
236
236
  raise "#{__method__} only accepts String or Hash as argument "\
237
237
  "(#{hash_or_string.class} given)."
@@ -1,3 +1,3 @@
1
1
  module ReactOnRails
2
- VERSION = "7.0.3".freeze
2
+ VERSION = "7.0.4".freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
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: 7.0.3
4
+ version: 7.0.4
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-27 00:00:00.000000000 Z
11
+ date: 2017-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool