hyper-react 0.12.2 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/opal_0.10_react_13.gemfile +0 -2
- data/gemfiles/opal_0.10_react_14.gemfile +0 -2
- data/gemfiles/opal_0.10_react_15.gemfile +0 -2
- data/gemfiles/opal_0.8_react_13.gemfile +0 -2
- data/gemfiles/opal_0.8_react_14.gemfile +0 -2
- data/gemfiles/opal_0.8_react_15.gemfile +0 -2
- data/gemfiles/opal_0.9_react_13.gemfile +0 -2
- data/gemfiles/opal_0.9_react_14.gemfile +0 -2
- data/gemfiles/opal_0.9_react_15.gemfile +0 -2
- data/gemfiles/opal_master_react_15.gemfile +0 -2
- data/lib/react/rendering_context.rb +3 -1
- data/lib/reactive-ruby/version.rb +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: c068a530541ab7b5d591cf4519736649f23e4fa9
|
4
|
+
data.tar.gz: 1158aade1b8e9856af88a3966b1eba08c034c413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
13
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: opal
|