hyper-router 1.0.alpha1.5 → 1.0.alpha1.6

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
  SHA256:
3
- metadata.gz: 6ea9c2324b2513fc2c1e52621e49f5e78cebaa1d42cc5bec7f4b1acc82793b0f
4
- data.tar.gz: 04dab8146079a46ce5f3d9b9912f960f06de8ee07f77933375f9287f1b91f18f
3
+ metadata.gz: d4e0fbb3f6f7b605fd861a4ac3d3abd12723b6bf4a26fc6128143f23d9b2dc17
4
+ data.tar.gz: 9ed1b3db296fdaeacda7fbea185542b9750ea63f358a7c6b8491fec2973cc992
5
5
  SHA512:
6
- metadata.gz: 03272c353f3f21cd38c437aa130b0c0bd4ecd1f750868c3643ff4851323895c4bb1657e20bcb40a5e4ca9e8d38c27afa2e379660740994d2e62d5bd4b673b2ff
7
- data.tar.gz: 545c37f9186f8d24400d70edd0e8fb36878ecdd5707645f13f231d9f3576ff9e7299afb4521d3e5a2efad141132539a6b2725439f53124a9850d409a074d6038
6
+ metadata.gz: b6feda6f513d62676cd1714584f9241b3e5ff2882d14d1aa8701ac74cb1e917321910ae1b32a22125349f2450c378325665d30c46805acfdd34af78e5670f2ed
7
+ data.tar.gz: 9ce41cc41c148fa472b9d35d3424ae14114deebb572a90366c2f03f855857c1132ed35d2a0cc2ff3bf0eaac58f568c5b339d19dd98ee58954ef32931d8980fa5
@@ -31,7 +31,7 @@ module Hyperstack
31
31
  React::Router::Redirect(opts)
32
32
  end
33
33
 
34
- def format_params(e)
34
+ def format_params(e, *)
35
35
  {
36
36
  match: Hyperstack::Router::Match.new(`#{e}.match`),
37
37
  location: Hyperstack::Router::Location.new(`#{e}.location`),
@@ -47,16 +47,16 @@ module Hyperstack
47
47
  if opts[:mounts]
48
48
  component = opts.delete(:mounts)
49
49
 
50
- opts[:component] = lambda do |e|
51
- route_params = format_params(e)
50
+ opts[:component] = lambda do |*e|
51
+ route_params = format_params(*e)
52
52
 
53
53
  Hyperstack::Component::ReactAPI.create_element(component, route_params).to_n
54
54
  end
55
55
  end
56
56
 
57
57
  if block
58
- opts[:render] = lambda do |e|
59
- route_params = format_params(e)
58
+ opts[:render] = lambda do |*e|
59
+ route_params = format_params(*e)
60
60
 
61
61
  yield(*route_params.values).to_n
62
62
  end
@@ -1,7 +1,7 @@
1
1
  module Hyperstack
2
2
  module Router
3
3
  class History
4
- include Native
4
+ include Native::Wrapper
5
5
 
6
6
  def initialize(native)
7
7
  @native = native
@@ -1,7 +1,7 @@
1
1
  module Hyperstack
2
2
  module Router
3
3
  class Location
4
- include Native
4
+ include Native::Wrapper
5
5
 
6
6
  def initialize(native)
7
7
  @native = native
@@ -1,7 +1,7 @@
1
1
  module Hyperstack
2
2
  module Router
3
3
  class Match
4
- include Native
4
+ include Native::Wrapper
5
5
 
6
6
  def initialize(native)
7
7
  @native = native
@@ -1,3 +1,3 @@
1
1
  module HyperRouter
2
- VERSION = '1.0.alpha1.5'
2
+ VERSION = '1.0.alpha1.6'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  module React
2
2
  class Router
3
3
  class History
4
- include Native
4
+ include Native::Wrapper
5
5
 
6
6
  def self.current
7
7
  new(`History`)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-router
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha1.5
4
+ version: 1.0.alpha1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam George
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-19 00:00:00.000000000 Z
12
+ date: 2021-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hyper-component
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.0.alpha1.5
20
+ version: 1.0.alpha1.6
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.0.alpha1.5
27
+ version: 1.0.alpha1.6
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: hyper-state
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 1.0.alpha1.5
34
+ version: 1.0.alpha1.6
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 1.0.alpha1.5
41
+ version: 1.0.alpha1.6
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: opal-browser
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -55,26 +55,6 @@ dependencies:
55
55
  version: 0.2.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 1.17.3
63
- - - "<"
64
- - !ruby/object:Gem::Version
65
- version: '2.1'
66
- type: :development
67
- prerelease: false
68
- version_requirements: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 1.17.3
73
- - - "<"
74
- - !ruby/object:Gem::Version
75
- version: '2.1'
76
- - !ruby/object:Gem::Dependency
77
- name: capybara
78
58
  requirement: !ruby/object:Gem::Requirement
79
59
  requirements:
80
60
  - - ">="
@@ -101,48 +81,34 @@ dependencies:
101
81
  - - ">="
102
82
  - !ruby/object:Gem::Version
103
83
  version: '0'
104
- - !ruby/object:Gem::Dependency
105
- name: database_cleaner
106
- requirement: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- type: :development
112
- prerelease: false
113
- version_requirements: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
84
  - !ruby/object:Gem::Dependency
119
85
  name: hyper-spec
120
86
  requirement: !ruby/object:Gem::Requirement
121
87
  requirements:
122
88
  - - '='
123
89
  - !ruby/object:Gem::Version
124
- version: 1.0.alpha1.5
90
+ version: 1.0.alpha1.6
125
91
  type: :development
126
92
  prerelease: false
127
93
  version_requirements: !ruby/object:Gem::Requirement
128
94
  requirements:
129
95
  - - '='
130
96
  - !ruby/object:Gem::Version
131
- version: 1.0.alpha1.5
97
+ version: 1.0.alpha1.6
132
98
  - !ruby/object:Gem::Dependency
133
99
  name: hyper-store
134
100
  requirement: !ruby/object:Gem::Requirement
135
101
  requirements:
136
102
  - - '='
137
103
  - !ruby/object:Gem::Version
138
- version: 1.0.alpha1.5
104
+ version: 1.0.alpha1.6
139
105
  type: :development
140
106
  prerelease: false
141
107
  version_requirements: !ruby/object:Gem::Requirement
142
108
  requirements:
143
109
  - - '='
144
110
  - !ruby/object:Gem::Version
145
- version: 1.0.alpha1.5
111
+ version: 1.0.alpha1.6
146
112
  - !ruby/object:Gem::Dependency
147
113
  name: listen
148
114
  requirement: !ruby/object:Gem::Requirement
@@ -161,32 +127,52 @@ dependencies:
161
127
  name: mini_racer
162
128
  requirement: !ruby/object:Gem::Requirement
163
129
  requirements:
164
- - - "~>"
130
+ - - ">="
165
131
  - !ruby/object:Gem::Version
166
- version: 0.2.4
132
+ version: '0'
167
133
  type: :development
168
134
  prerelease: false
169
135
  version_requirements: !ruby/object:Gem::Requirement
170
136
  requirements:
171
- - - "~>"
137
+ - - ">="
172
138
  - !ruby/object:Gem::Version
173
- version: 0.2.4
139
+ version: '0'
174
140
  - !ruby/object:Gem::Dependency
175
141
  name: opal-rails
176
142
  requirement: !ruby/object:Gem::Requirement
177
143
  requirements:
178
- - - "~>"
144
+ - - ">="
179
145
  - !ruby/object:Gem::Version
180
146
  version: 0.9.4
147
+ - - "<"
148
+ - !ruby/object:Gem::Version
149
+ version: 2.0.0
181
150
  type: :development
182
151
  prerelease: false
183
152
  version_requirements: !ruby/object:Gem::Requirement
184
153
  requirements:
185
- - - "~>"
154
+ - - ">="
186
155
  - !ruby/object:Gem::Version
187
156
  version: 0.9.4
157
+ - - "<"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.0.0
188
160
  - !ruby/object:Gem::Dependency
189
- name: parser
161
+ name: pry-rescue
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: pry-stack_explorer
190
176
  requirement: !ruby/object:Gem::Requirement
191
177
  requirements:
192
178
  - - ">="
@@ -219,14 +205,20 @@ dependencies:
219
205
  requirements:
220
206
  - - ">="
221
207
  - !ruby/object:Gem::Version
222
- version: 4.0.0
208
+ version: 5.0.0
209
+ - - "<"
210
+ - !ruby/object:Gem::Version
211
+ version: '7.0'
223
212
  type: :development
224
213
  prerelease: false
225
214
  version_requirements: !ruby/object:Gem::Requirement
226
215
  requirements:
227
216
  - - ">="
228
217
  - !ruby/object:Gem::Version
229
- version: 4.0.0
218
+ version: 5.0.0
219
+ - - "<"
220
+ - !ruby/object:Gem::Version
221
+ version: '7.0'
230
222
  - !ruby/object:Gem::Dependency
231
223
  name: rake
232
224
  requirement: !ruby/object:Gem::Requirement
@@ -325,20 +317,6 @@ dependencies:
325
317
  - - "~>"
326
318
  - !ruby/object:Gem::Version
327
319
  version: 2.1.1
328
- - !ruby/object:Gem::Dependency
329
- name: selenium-webdriver
330
- requirement: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - ">="
333
- - !ruby/object:Gem::Version
334
- version: '0'
335
- type: :development
336
- prerelease: false
337
- version_requirements: !ruby/object:Gem::Requirement
338
- requirements:
339
- - - ">="
340
- - !ruby/object:Gem::Version
341
- version: '0'
342
320
  - !ruby/object:Gem::Dependency
343
321
  name: shoulda
344
322
  requirement: !ruby/object:Gem::Requirement
@@ -367,48 +345,20 @@ dependencies:
367
345
  - - ">="
368
346
  - !ruby/object:Gem::Version
369
347
  version: '0'
370
- - !ruby/object:Gem::Dependency
371
- name: sinatra
372
- requirement: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - ">="
375
- - !ruby/object:Gem::Version
376
- version: '0'
377
- type: :development
378
- prerelease: false
379
- version_requirements: !ruby/object:Gem::Requirement
380
- requirements:
381
- - - ">="
382
- - !ruby/object:Gem::Version
383
- version: '0'
384
- - !ruby/object:Gem::Dependency
385
- name: spring-commands-rspec
386
- requirement: !ruby/object:Gem::Requirement
387
- requirements:
388
- - - ">="
389
- - !ruby/object:Gem::Version
390
- version: '0'
391
- type: :development
392
- prerelease: false
393
- version_requirements: !ruby/object:Gem::Requirement
394
- requirements:
395
- - - ">="
396
- - !ruby/object:Gem::Version
397
- version: '0'
398
348
  - !ruby/object:Gem::Dependency
399
349
  name: sqlite3
400
350
  requirement: !ruby/object:Gem::Requirement
401
351
  requirements:
402
352
  - - "~>"
403
353
  - !ruby/object:Gem::Version
404
- version: 1.3.6
354
+ version: 1.4.2
405
355
  type: :development
406
356
  prerelease: false
407
357
  version_requirements: !ruby/object:Gem::Requirement
408
358
  requirements:
409
359
  - - "~>"
410
360
  - !ruby/object:Gem::Version
411
- version: 1.3.6
361
+ version: 1.4.2
412
362
  - !ruby/object:Gem::Dependency
413
363
  name: timecop
414
364
  requirement: !ruby/object:Gem::Requirement
@@ -423,34 +373,6 @@ dependencies:
423
373
  - - "~>"
424
374
  - !ruby/object:Gem::Version
425
375
  version: 0.8.1
426
- - !ruby/object:Gem::Dependency
427
- name: unparser
428
- requirement: !ruby/object:Gem::Requirement
429
- requirements:
430
- - - ">="
431
- - !ruby/object:Gem::Version
432
- version: '0'
433
- type: :development
434
- prerelease: false
435
- version_requirements: !ruby/object:Gem::Requirement
436
- requirements:
437
- - - ">="
438
- - !ruby/object:Gem::Version
439
- version: '0'
440
- - !ruby/object:Gem::Dependency
441
- name: webdrivers
442
- requirement: !ruby/object:Gem::Requirement
443
- requirements:
444
- - - ">="
445
- - !ruby/object:Gem::Version
446
- version: '0'
447
- type: :development
448
- prerelease: false
449
- version_requirements: !ruby/object:Gem::Requirement
450
- requirements:
451
- - - ">="
452
- - !ruby/object:Gem::Version
453
- version: '0'
454
376
  description: Adds the ability to write and use the react-router in Ruby through Opal
455
377
  email:
456
378
  - adamgeorge.31@gmail.com
@@ -497,7 +419,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
497
419
  - !ruby/object:Gem::Version
498
420
  version: 1.3.1
499
421
  requirements: []
500
- rubygems_version: 3.0.4
422
+ rubygems_version: 3.0.8
501
423
  signing_key:
502
424
  specification_version: 4
503
425
  summary: hyper-router for Opal, part of the hyperstack framework