hyper-react 0.12.3 → 0.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/react/native_library.rb +1 -1
- data/lib/reactive-ruby/version.rb +1 -1
- data/spec/react/param_declaration_spec.rb +35 -33
- 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: 5d78da47b440564ff0600124d3ad69ce7a97a209
|
4
|
+
data.tar.gz: 450577e039563cce562ee19f99507bbc15094058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e01176000b613dcecc56da174ea7d6e7ca7e055256cb8f3cf036e986204f91e9ae0e942851542a72d0cd0be2bd0b987aab615aa77a7b1cea3c604dcef8664183
|
7
|
+
data.tar.gz: a15cdadf67c66cc76011bb08d1c5d55ee76e75ee8865a676c07004c9d9bfe42b522201c76041c45498da1d68f8d9fd2d6a31cf2337f5418002d6b9a251c058dc
|
data/lib/react/native_library.rb
CHANGED
@@ -202,39 +202,41 @@ describe 'the param macro', type: :component do
|
|
202
202
|
expect(Foo).to render_static_html('<span>2</span>').with_params(foo: {bazwoggle: 1})
|
203
203
|
end
|
204
204
|
|
205
|
-
it "even if contains an embedded native object"
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
205
|
+
it "even if contains an embedded native object"
|
206
|
+
# its not clear what this test was trying to accomplish...
|
207
|
+
# do
|
208
|
+
# pending 'Fix after merging'
|
209
|
+
# stub_const "Bar", Class.new(React::Component::Base)
|
210
|
+
# stub_const "BazWoggle", Class.new
|
211
|
+
# BazWoggle.class_eval do
|
212
|
+
# def initialize(kind)
|
213
|
+
# @kind = kind
|
214
|
+
# end
|
215
|
+
# attr_accessor :kind
|
216
|
+
# def self._react_param_conversion(json, validate_only)
|
217
|
+
# new(JSON.from_object(json[0])[:bazwoggle]) if JSON.from_object(json[0])[:bazwoggle]
|
218
|
+
# end
|
219
|
+
# end
|
220
|
+
# Bar.class_eval do
|
221
|
+
# param :foo, type: BazWoggle
|
222
|
+
# def render
|
223
|
+
# params.foo.kind.to_s
|
224
|
+
# end
|
225
|
+
# end
|
226
|
+
# Foo.class_eval do
|
227
|
+
# export_state :change_me
|
228
|
+
# before_mount do
|
229
|
+
# Foo.change_me! "initial"
|
230
|
+
# end
|
231
|
+
# def render
|
232
|
+
# Bar(foo: Native([`{bazwoggle: #{Foo.change_me}}`]))
|
233
|
+
# end
|
234
|
+
# end
|
235
|
+
# div = `document.createElement("div")`
|
236
|
+
# React.render(React.create_element(Foo, {}), div)
|
237
|
+
# Foo.change_me! "updated"
|
238
|
+
# expect(`div.children[0].innerHTML`).to eq("updated")
|
239
|
+
# end
|
238
240
|
end
|
239
241
|
|
240
242
|
it "will alias a Proc type param" do
|
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.4
|
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-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: opal
|