reactive-ruby 0.7.40 → 0.7.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/reactive_ruby/test_app/templates/assets/javascripts/{application.rb → test_application.rb} +0 -0
- data/lib/generators/reactive_ruby/test_app/templates/{application.rb.erb → test_application.rb.erb} +0 -0
- data/lib/generators/reactive_ruby/test_app/test_app_generator.rb +2 -2
- data/lib/react/component.rb +5 -1
- data/lib/reactive-ruby/version.rb +1 -1
- data/spec/react/component_spec.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a705f2db0690bcdfe2c8e7d6770cdcf7cff3945
|
4
|
+
data.tar.gz: 941e5ccb93eb82f42b28bf201b3af8d09da3560c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6e0e2cbc89a402357a32bde0f8507c340b89c4103d159ede64cb2231e2c3d49123940a2dfb807316e6d6df466cbe92f61750465b1d4bbdba66ce77c937a85b
|
7
|
+
data.tar.gz: e89a5259098a121564b22dd52b53869c54ca96ceeddb0dea21bd3325178b3ffad69427e6599afa5cc2762b499734945b691895af41abbebcb811ec958014c85f
|
File without changes
|
data/lib/generators/reactive_ruby/test_app/templates/{application.rb.erb → test_application.rb.erb}
RENAMED
File without changes
|
@@ -25,8 +25,8 @@ module ReactiveRuby
|
|
25
25
|
|
26
26
|
def configure_test_app
|
27
27
|
template 'boot.rb.erb', "#{test_app_path}/config/boot.rb", force: true
|
28
|
-
template '
|
29
|
-
template 'assets/javascripts/
|
28
|
+
template 'test_application.rb.erb', "#{test_app_path}/config/application.rb", force: true
|
29
|
+
template 'assets/javascripts/test_application.rb',
|
30
30
|
"#{test_app_path}/app/assets/javascripts/application.rb", force: true
|
31
31
|
template 'assets/javascripts/components.rb',
|
32
32
|
"#{test_app_path}/app/views/components.rb", force: true
|
data/lib/react/component.rb
CHANGED
@@ -705,6 +705,14 @@ describe React::Component do
|
|
705
705
|
expect(nodes).to be_a(Enumerator)
|
706
706
|
expect(nodes.size).to eq(2)
|
707
707
|
end
|
708
|
+
|
709
|
+
it 'returns an empty Enumerator if there are no children' do
|
710
|
+
ele = React.create_element(Foo)
|
711
|
+
renderElementToDocument(ele)
|
712
|
+
nodes = Foo.the_children.each
|
713
|
+
expect(nodes.size).to eq(nil)
|
714
|
+
expect(nodes.count).to eq(0)
|
715
|
+
end
|
708
716
|
end
|
709
717
|
end
|
710
718
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactive-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -303,11 +303,11 @@ files:
|
|
303
303
|
- example/todos/vendor/base.css
|
304
304
|
- example/todos/vendor/bg.png
|
305
305
|
- example/todos/vendor/jquery.js
|
306
|
-
- lib/generators/reactive_ruby/test_app/templates/application.rb.erb
|
307
|
-
- lib/generators/reactive_ruby/test_app/templates/assets/javascripts/application.rb
|
308
306
|
- lib/generators/reactive_ruby/test_app/templates/assets/javascripts/components.rb
|
307
|
+
- lib/generators/reactive_ruby/test_app/templates/assets/javascripts/test_application.rb
|
309
308
|
- lib/generators/reactive_ruby/test_app/templates/boot.rb.erb
|
310
309
|
- lib/generators/reactive_ruby/test_app/templates/script/rails
|
310
|
+
- lib/generators/reactive_ruby/test_app/templates/test_application.rb.erb
|
311
311
|
- lib/generators/reactive_ruby/test_app/templates/views/components/hello_world.rb
|
312
312
|
- lib/generators/reactive_ruby/test_app/templates/views/components/todo.rb
|
313
313
|
- lib/generators/reactive_ruby/test_app/test_app_generator.rb
|