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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c068a530541ab7b5d591cf4519736649f23e4fa9
4
- data.tar.gz: 1158aade1b8e9856af88a3966b1eba08c034c413
3
+ metadata.gz: 5d78da47b440564ff0600124d3ad69ce7a97a209
4
+ data.tar.gz: 450577e039563cce562ee19f99507bbc15094058
5
5
  SHA512:
6
- metadata.gz: b5186c4614e0533f37201a461f571ffc79b0f6f11546857211e8acb8e10337564f9f44f016ea57de7454bea5d2165e2df5ff2287ab6490af91025b71dc8a4652
7
- data.tar.gz: ff6009517278780965ded090298970b6afa28810948b709e91afd76f93d40b77e9322062bc525e8511d9d47baf4970750fef36b78250a9d26ed7a718889ef37e
6
+ metadata.gz: e01176000b613dcecc56da174ea7d6e7ca7e055256cb8f3cf036e986204f91e9ae0e942851542a72d0cd0be2bd0b987aab615aa77a7b1cea3c604dcef8664183
7
+ data.tar.gz: a15cdadf67c66cc76011bb08d1c5d55ee76e75ee8865a676c07004c9d9bfe42b522201c76041c45498da1d68f8d9fd2d6a31cf2337f5418002d6b9a251c058dc
@@ -72,7 +72,7 @@ module React
72
72
  if React::API.native_react_component?(native_name)
73
73
  new_klass = klass.const_set ruby_name, Class.new
74
74
  new_klass.class_eval do
75
- include React::Component
75
+ include Hyperloop::Component::Mixin
76
76
  imports native_name
77
77
  end
78
78
  new_klass
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = "0.12.3"
2
+ VERSION = "0.12.4"
3
3
  end
@@ -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" do
206
- pending 'Fix after merging'
207
- stub_const "Bar", Class.new(React::Component::Base)
208
- stub_const "BazWoggle", Class.new
209
- BazWoggle.class_eval do
210
- def initialize(kind)
211
- @kind = kind
212
- end
213
- attr_accessor :kind
214
- def self._react_param_conversion(json, validate_only)
215
- new(JSON.from_object(json[0])[:bazwoggle]) if JSON.from_object(json[0])[:bazwoggle]
216
- end
217
- end
218
- Bar.class_eval do
219
- param :foo, type: BazWoggle
220
- def render
221
- params.foo.kind.to_s
222
- end
223
- end
224
- Foo.class_eval do
225
- export_state :change_me
226
- before_mount do
227
- Foo.change_me! "initial"
228
- end
229
- def render
230
- Bar(foo: Native([`{bazwoggle: #{Foo.change_me}}`]))
231
- end
232
- end
233
- div = `document.createElement("div")`
234
- React.render(React.create_element(Foo, {}), div)
235
- Foo.change_me! "updated"
236
- expect(`div.children[0].innerHTML`).to eq("updated")
237
- end
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.3
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-21 00:00:00.000000000 Z
13
+ date: 2017-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: opal