hyper-react 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f94f3248028c3652d92cc2087cedef509d9a4353
4
- data.tar.gz: 41dfd14b267914a34578110c4465b42e452b8c9c
3
+ metadata.gz: c068a530541ab7b5d591cf4519736649f23e4fa9
4
+ data.tar.gz: 1158aade1b8e9856af88a3966b1eba08c034c413
5
5
  SHA512:
6
- metadata.gz: e485e2c19e6c8a0a3d3267907087ac6090e3e87b4fb9179ddfc6e9da0c0f39115c37d56330aff59d9360b2c6ec8c34776900c0b812e7cb969710954805eb5fde
7
- data.tar.gz: 340bda82a60493762b37df55b59fb7f6cee127d737a08ad4d25d85d87f5cae859718aa4df052f167f3977a6070a9dacb7b3036b56a862bfe9b32e4991ad213e5
6
+ metadata.gz: b5186c4614e0533f37201a461f571ffc79b0f6f11546857211e8acb8e10337564f9f44f016ea57de7454bea5d2165e2df5ff2287ab6490af91025b71dc8a4652
7
+ data.tar.gz: ff6009517278780965ded090298970b6afa28810948b709e91afd76f93d40b77e9322062bc525e8511d9d47baf4970750fef36b78250a9d26ed7a718889ef37e
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.10.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.3.3", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.10.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.6.2", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.10.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.10.0", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.8.0"
10
8
  gem "opal-rails", "~> 0.8.1"
11
9
  gem "react-rails", "~> 1.3.3", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.8.0"
10
8
  gem "opal-rails", "~> 0.8.1"
11
9
  gem "react-rails", "~> 1.6.2", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.8.0"
10
8
  gem "opal-rails", "~> 0.8.1"
11
9
  gem "react-rails", "~> 1.10.0", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.9.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.3.3", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.9.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.6.2", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 1.9.3"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", "~> 0.9.0"
10
8
  gem "opal-rails", "~> 0.9.0"
11
9
  gem "react-rails", "~> 1.10.0", :require => false
@@ -4,8 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  ruby ">= 2.0.0"
6
6
 
7
- gem "hyper-store", :path => "../../hyper-store"
8
- gem "hyperloop-config", :path => "../../hyperloop-config"
9
7
  gem "opal", :git => "https://github.com/opal/opal.git"
10
8
  gem "opal-sprockets", :git => "https://github.com/opal/opal-sprockets.git"
11
9
  gem "opal-rails", "~> 0.9.0"
@@ -17,6 +17,7 @@ module React
17
17
  buffer = @buffer.dup
18
18
  React.create_element(name, *args) { buffer }.tap do |element|
19
19
  element.waiting_on_resources = saved_waiting_on_resources || !!buffer.detect { |e| e.waiting_on_resources if e.respond_to?(:waiting_on_resources) }
20
+ element.waiting_on_resources ||= buffer.last.is_a?(String) && waiting_on_resources
20
21
  end
21
22
  elsif @buffer.last.is_a? React::Element
22
23
  @buffer.last.tap { |element| element.waiting_on_resources ||= saved_waiting_on_resources }
@@ -89,9 +90,10 @@ module React
89
90
  # so we insure that is the case, and also check to make sure that element in the buffer
90
91
  # is the element returned
91
92
 
93
+
92
94
  def run_child_block(is_outer_scope)
93
95
  result = yield
94
- result = result.to_s if result.try :acts_as_string?
96
+ result = result.to_s.span if result.try :acts_as_string? || result.is_a?(String)
95
97
  @buffer << result if result.is_a?(String) || (result.is_a?(React::Element) && @buffer.empty?)
96
98
  raise_render_error(result) if is_outer_scope && @buffer != [result]
97
99
  end
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Chang
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-14 00:00:00.000000000 Z
13
+ date: 2017-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: opal