hyper-model 1.0.alpha1.1 → 1.0.alpha1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -1
  3. data/.rspec +0 -1
  4. data/Gemfile +6 -6
  5. data/Rakefile +27 -3
  6. data/hyper-model.gemspec +10 -19
  7. data/lib/active_record_base.rb +101 -33
  8. data/lib/hyper-model.rb +4 -2
  9. data/lib/hyper_model/version.rb +1 -1
  10. data/lib/hyper_react/input_tags.rb +2 -1
  11. data/lib/reactive_record/active_record/associations.rb +130 -34
  12. data/lib/reactive_record/active_record/base.rb +17 -0
  13. data/lib/reactive_record/active_record/class_methods.rb +124 -52
  14. data/lib/reactive_record/active_record/error.rb +2 -0
  15. data/lib/reactive_record/active_record/errors.rb +10 -6
  16. data/lib/reactive_record/active_record/instance_methods.rb +74 -6
  17. data/lib/reactive_record/active_record/reactive_record/backing_record_inspector.rb +22 -5
  18. data/lib/reactive_record/active_record/reactive_record/base.rb +56 -30
  19. data/lib/reactive_record/active_record/reactive_record/collection.rb +219 -70
  20. data/lib/reactive_record/active_record/reactive_record/dummy_polymorph.rb +22 -0
  21. data/lib/reactive_record/active_record/reactive_record/dummy_value.rb +27 -15
  22. data/lib/reactive_record/active_record/reactive_record/getters.rb +33 -10
  23. data/lib/reactive_record/active_record/reactive_record/isomorphic_base.rb +73 -46
  24. data/lib/reactive_record/active_record/reactive_record/lookup_tables.rb +5 -5
  25. data/lib/reactive_record/active_record/reactive_record/operations.rb +10 -3
  26. data/lib/reactive_record/active_record/reactive_record/scoped_collection.rb +3 -0
  27. data/lib/reactive_record/active_record/reactive_record/setters.rb +108 -71
  28. data/lib/reactive_record/active_record/reactive_record/while_loading.rb +258 -41
  29. data/lib/reactive_record/broadcast.rb +62 -25
  30. data/lib/reactive_record/interval.rb +3 -3
  31. data/lib/reactive_record/permissions.rb +14 -2
  32. data/lib/reactive_record/scope_description.rb +3 -2
  33. data/lib/reactive_record/server_data_cache.rb +99 -49
  34. data/polymorph-notes.md +143 -0
  35. data/spec_fails.txt +3 -0
  36. metadata +49 -162
  37. data/Gemfile.lock +0 -431
data/Gemfile.lock DELETED
@@ -1,431 +0,0 @@
1
- PATH
2
- remote: ../hyper-component
3
- specs:
4
- hyper-component (0.1)
5
- hyper-state (= 0.1)
6
- hyperstack-config (= 0.1)
7
- libv8 (~> 6.3.0)
8
- mini_racer (~> 0.1.15)
9
- opal (>= 0.11.0, < 0.12.0)
10
- opal-activesupport (~> 0.3.1)
11
- react-rails (>= 2.4.0, < 2.5.0)
12
-
13
- PATH
14
- remote: ../hyper-operation
15
- specs:
16
- hyper-operation (0.1)
17
- activerecord (>= 4.0.0)
18
- hyper-component (= 0.1)
19
- mutations
20
- opal-activesupport (~> 0.3.1)
21
-
22
- PATH
23
- remote: ../hyper-state
24
- specs:
25
- hyper-state (0.1)
26
- hyperstack-config (= 0.1)
27
- opal (>= 0.11.0, < 0.12.0)
28
-
29
- PATH
30
- remote: ../hyper-store
31
- specs:
32
- hyper-store (0.1)
33
- hyper-state (= 0.1)
34
- hyperstack-config (= 0.1)
35
- opal (>= 0.11.0, < 0.12.0)
36
-
37
- PATH
38
- remote: ../hyperstack-config
39
- specs:
40
- hyperstack-config (0.1)
41
- libv8 (~> 6.3.0)
42
- listen (~> 3.0)
43
- mini_racer (~> 0.1.15)
44
- opal (>= 0.11.0, < 0.12.0)
45
- opal-browser (~> 0.2.0)
46
- uglifier
47
- websocket
48
-
49
- PATH
50
- remote: .
51
- specs:
52
- hyper-model (0.1)
53
- activemodel
54
- activerecord (>= 4.0.0)
55
- hyper-component (= 0.1)
56
- hyper-operation (= 0.1)
57
- hyper-store (= 0.1)
58
-
59
- GEM
60
- remote: https://rubygems.org/
61
- specs:
62
- abstract_type (0.0.7)
63
- actioncable (5.2.1)
64
- actionpack (= 5.2.1)
65
- nio4r (~> 2.0)
66
- websocket-driver (>= 0.6.1)
67
- actionmailer (5.2.1)
68
- actionpack (= 5.2.1)
69
- actionview (= 5.2.1)
70
- activejob (= 5.2.1)
71
- mail (~> 2.5, >= 2.5.4)
72
- rails-dom-testing (~> 2.0)
73
- actionpack (5.2.1)
74
- actionview (= 5.2.1)
75
- activesupport (= 5.2.1)
76
- rack (~> 2.0)
77
- rack-test (>= 0.6.3)
78
- rails-dom-testing (~> 2.0)
79
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
80
- actionview (5.2.1)
81
- activesupport (= 5.2.1)
82
- builder (~> 3.1)
83
- erubi (~> 1.4)
84
- rails-dom-testing (~> 2.0)
85
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
86
- activejob (5.2.1)
87
- activesupport (= 5.2.1)
88
- globalid (>= 0.3.6)
89
- activemodel (5.2.1)
90
- activesupport (= 5.2.1)
91
- activerecord (5.2.1)
92
- activemodel (= 5.2.1)
93
- activesupport (= 5.2.1)
94
- arel (>= 9.0)
95
- activestorage (5.2.1)
96
- actionpack (= 5.2.1)
97
- activerecord (= 5.2.1)
98
- marcel (~> 0.3.1)
99
- activesupport (5.2.1)
100
- concurrent-ruby (~> 1.0, >= 1.0.2)
101
- i18n (>= 0.7, < 2)
102
- minitest (~> 5.1)
103
- tzinfo (~> 1.1)
104
- adamantium (0.2.0)
105
- ice_nine (~> 0.11.0)
106
- memoizable (~> 0.4.0)
107
- addressable (2.5.2)
108
- public_suffix (>= 2.0.2, < 4.0)
109
- archive-zip (0.11.0)
110
- io-like (~> 0.3.0)
111
- arel (9.0.0)
112
- ast (2.4.0)
113
- babel-source (5.8.35)
114
- babel-transpiler (0.7.0)
115
- babel-source (>= 4.0, < 6)
116
- execjs (~> 2.0)
117
- builder (3.2.3)
118
- capybara (3.7.2)
119
- addressable
120
- mini_mime (>= 0.1.3)
121
- nokogiri (~> 1.8)
122
- rack (>= 1.6.0)
123
- rack-test (>= 0.6.3)
124
- xpath (~> 3.1)
125
- childprocess (0.9.0)
126
- ffi (~> 1.0, >= 1.0.11)
127
- chromedriver-helper (1.2.0)
128
- archive-zip (~> 0.10)
129
- nokogiri (~> 1.8)
130
- coderay (1.1.2)
131
- concord (0.1.5)
132
- adamantium (~> 0.2.0)
133
- equalizer (~> 0.0.9)
134
- concurrent-ruby (1.0.5)
135
- connection_pool (2.2.2)
136
- cookiejar (0.3.3)
137
- crass (1.0.4)
138
- daemons (1.2.6)
139
- database_cleaner (1.7.0)
140
- diff-lcs (1.3)
141
- em-http-request (1.1.5)
142
- addressable (>= 2.3.4)
143
- cookiejar (!= 0.3.1)
144
- em-socksify (>= 0.3)
145
- eventmachine (>= 1.0.3)
146
- http_parser.rb (>= 0.6.0)
147
- em-socksify (0.3.2)
148
- eventmachine (>= 1.0.0.beta.4)
149
- em-websocket (0.5.1)
150
- eventmachine (>= 0.12.9)
151
- http_parser.rb (~> 0.6.0)
152
- equalizer (0.0.11)
153
- erubi (1.7.1)
154
- eventmachine (1.2.7)
155
- execjs (2.7.0)
156
- factory_bot (4.11.1)
157
- activesupport (>= 3.0.0)
158
- factory_bot_rails (4.11.1)
159
- factory_bot (~> 4.11.1)
160
- railties (>= 3.0.0)
161
- ffi (1.9.25)
162
- globalid (0.4.1)
163
- activesupport (>= 4.2.0)
164
- hike (1.2.3)
165
- http_parser.rb (0.6.0)
166
- httpclient (2.8.3)
167
- i18n (1.1.0)
168
- concurrent-ruby (~> 1.0)
169
- ice_nine (0.11.2)
170
- interception (0.5)
171
- io-like (0.3.0)
172
- jquery-rails (4.3.3)
173
- rails-dom-testing (>= 1, < 3)
174
- railties (>= 4.2.0)
175
- thor (>= 0.14, < 2.0)
176
- libv8 (6.3.292.48.1)
177
- listen (3.1.5)
178
- rb-fsevent (~> 0.9, >= 0.9.4)
179
- rb-inotify (~> 0.9, >= 0.9.7)
180
- ruby_dep (~> 1.2)
181
- loofah (2.2.2)
182
- crass (~> 1.0.2)
183
- nokogiri (>= 1.5.9)
184
- mail (2.7.0)
185
- mini_mime (>= 0.1.1)
186
- marcel (0.3.2)
187
- mimemagic (~> 0.3.2)
188
- memoizable (0.4.2)
189
- thread_safe (~> 0.3, >= 0.3.1)
190
- method_source (0.9.0)
191
- mimemagic (0.3.2)
192
- mini_mime (1.0.1)
193
- mini_portile2 (2.3.0)
194
- mini_racer (0.1.15)
195
- libv8 (~> 6.3)
196
- minitest (5.11.3)
197
- multi_json (1.13.1)
198
- mutations (0.8.3)
199
- activesupport
200
- mysql2 (0.5.2)
201
- nio4r (2.3.1)
202
- nokogiri (1.8.4)
203
- mini_portile2 (~> 2.3.0)
204
- opal (0.11.3)
205
- ast (>= 2.3.0)
206
- hike (~> 1.2)
207
- parser (= 2.3.3.1)
208
- sourcemap (~> 0.1.0)
209
- opal-activesupport (0.3.1)
210
- opal (>= 0.5.0, < 1.0.0)
211
- opal-browser (0.2.0)
212
- opal
213
- paggio
214
- opal-jquery (0.4.3)
215
- opal (>= 0.10.0, < 0.12.0)
216
- opal-rails (0.9.5)
217
- jquery-rails
218
- opal (>= 0.11.0, < 0.12)
219
- opal-activesupport (>= 0.0.5)
220
- opal-jquery (~> 0.4.0)
221
- opal-sprockets (~> 0.4.2)
222
- rails (>= 4.1, < 6.0)
223
- sprockets-rails (>= 2.3.3, < 4.0)
224
- opal-sprockets (0.4.2.0.11.0.3.1)
225
- opal (~> 0.11.0)
226
- sprockets (~> 3.1)
227
- tilt (>= 1.4)
228
- paggio (0.2.6)
229
- parallel (1.12.1)
230
- parser (2.3.3.1)
231
- ast (~> 2.2)
232
- powerpack (0.1.2)
233
- procto (0.0.3)
234
- pry (0.11.3)
235
- coderay (~> 1.1.0)
236
- method_source (~> 0.9.0)
237
- pry-rescue (1.4.5)
238
- interception (>= 0.5)
239
- pry
240
- public_suffix (3.0.3)
241
- puma (3.12.0)
242
- pusher (1.3.1)
243
- httpclient (~> 2.7)
244
- multi_json (~> 1.0)
245
- pusher-signature (~> 0.1.8)
246
- pusher-fake (1.10.0)
247
- em-http-request (~> 1.1)
248
- em-websocket (~> 0.5)
249
- multi_json (~> 1.6)
250
- thin (~> 1.5)
251
- pusher-signature (0.1.8)
252
- rack (2.0.5)
253
- rack-test (1.1.0)
254
- rack (>= 1.0, < 3)
255
- rails (5.2.1)
256
- actioncable (= 5.2.1)
257
- actionmailer (= 5.2.1)
258
- actionpack (= 5.2.1)
259
- actionview (= 5.2.1)
260
- activejob (= 5.2.1)
261
- activemodel (= 5.2.1)
262
- activerecord (= 5.2.1)
263
- activestorage (= 5.2.1)
264
- activesupport (= 5.2.1)
265
- bundler (>= 1.3.0)
266
- railties (= 5.2.1)
267
- sprockets-rails (>= 2.0.0)
268
- rails-dom-testing (2.0.3)
269
- activesupport (>= 4.2.0)
270
- nokogiri (>= 1.6)
271
- rails-html-sanitizer (1.0.4)
272
- loofah (~> 2.2, >= 2.2.2)
273
- railties (5.2.1)
274
- actionpack (= 5.2.1)
275
- activesupport (= 5.2.1)
276
- method_source
277
- rake (>= 0.8.7)
278
- thor (>= 0.19.0, < 2.0)
279
- rainbow (2.2.2)
280
- rake
281
- rake (12.3.1)
282
- rb-fsevent (0.10.3)
283
- rb-inotify (0.9.10)
284
- ffi (>= 0.5.0, < 2)
285
- react-rails (2.4.7)
286
- babel-transpiler (>= 0.7.0)
287
- connection_pool
288
- execjs
289
- railties (>= 3.2)
290
- tilt
291
- reactrb-rails-generator (0.2.0)
292
- rails (>= 4.0.0)
293
- rspec (3.8.0)
294
- rspec-core (~> 3.8.0)
295
- rspec-expectations (~> 3.8.0)
296
- rspec-mocks (~> 3.8.0)
297
- rspec-collection_matchers (1.1.3)
298
- rspec-expectations (>= 2.99.0.beta1)
299
- rspec-core (3.8.0)
300
- rspec-support (~> 3.8.0)
301
- rspec-expectations (3.8.1)
302
- diff-lcs (>= 1.2.0, < 2.0)
303
- rspec-support (~> 3.8.0)
304
- rspec-its (1.2.0)
305
- rspec-core (>= 3.0.0)
306
- rspec-expectations (>= 3.0.0)
307
- rspec-mocks (3.8.0)
308
- diff-lcs (>= 1.2.0, < 2.0)
309
- rspec-support (~> 3.8.0)
310
- rspec-rails (3.8.0)
311
- actionpack (>= 3.0)
312
- activesupport (>= 3.0)
313
- railties (>= 3.0)
314
- rspec-core (~> 3.8.0)
315
- rspec-expectations (~> 3.8.0)
316
- rspec-mocks (~> 3.8.0)
317
- rspec-support (~> 3.8.0)
318
- rspec-steps (2.1.1)
319
- rspec (>= 3.0, < 3.99)
320
- rspec-support (3.8.0)
321
- rspec-wait (0.0.9)
322
- rspec (>= 3, < 4)
323
- rubocop (0.51.0)
324
- parallel (~> 1.10)
325
- parser (>= 2.3.3.1, < 3.0)
326
- powerpack (~> 0.1)
327
- rainbow (>= 2.2.2, < 3.0)
328
- ruby-progressbar (~> 1.7)
329
- unicode-display_width (~> 1.0, >= 1.0.1)
330
- ruby-progressbar (1.10.0)
331
- ruby_dep (1.5.0)
332
- rubyzip (1.2.2)
333
- selenium-webdriver (3.14.0)
334
- childprocess (~> 0.5)
335
- rubyzip (~> 1.2)
336
- shoulda (3.6.0)
337
- shoulda-context (~> 1.0, >= 1.0.1)
338
- shoulda-matchers (~> 3.0)
339
- shoulda-context (1.2.2)
340
- shoulda-matchers (3.1.2)
341
- activesupport (>= 4.0.0)
342
- sourcemap (0.1.1)
343
- spring (2.0.2)
344
- activesupport (>= 4.2)
345
- spring-commands-rspec (1.0.4)
346
- spring (>= 0.9.1)
347
- sprockets (3.7.2)
348
- concurrent-ruby (~> 1.0)
349
- rack (> 1, < 3)
350
- sprockets-rails (3.2.1)
351
- actionpack (>= 4.0)
352
- activesupport (>= 4.0)
353
- sprockets (>= 3.0.0)
354
- sqlite3 (1.3.13)
355
- thin (1.7.2)
356
- daemons (~> 1.0, >= 1.0.9)
357
- eventmachine (~> 1.0, >= 1.0.4)
358
- rack (>= 1, < 3)
359
- thor (0.20.0)
360
- thread_safe (0.3.6)
361
- tilt (2.0.8)
362
- timecop (0.8.1)
363
- tzinfo (1.2.5)
364
- thread_safe (~> 0.1)
365
- uglifier (4.1.19)
366
- execjs (>= 0.3.0, < 3)
367
- unicode-display_width (1.4.0)
368
- unparser (0.2.8)
369
- abstract_type (~> 0.0.7)
370
- adamantium (~> 0.2.0)
371
- concord (~> 0.1.5)
372
- diff-lcs (~> 1.3)
373
- equalizer (~> 0.0.9)
374
- parser (>= 2.3.1.2, < 2.6)
375
- procto (~> 0.0.2)
376
- websocket (1.2.8)
377
- websocket-driver (0.7.0)
378
- websocket-extensions (>= 0.1.0)
379
- websocket-extensions (0.1.3)
380
- xpath (3.1.0)
381
- nokogiri (~> 1.8)
382
-
383
- PLATFORMS
384
- ruby
385
-
386
- DEPENDENCIES
387
- bundler
388
- capybara
389
- chromedriver-helper (= 1.2.0)
390
- database_cleaner
391
- factory_bot_rails
392
- hyper-component!
393
- hyper-model!
394
- hyper-operation!
395
- hyper-state!
396
- hyper-store!
397
- hyperstack-config!
398
- libv8 (~> 6.3.0)
399
- mini_racer (~> 0.1.15)
400
- mysql2
401
- opal-activesupport (~> 0.3.1)
402
- opal-browser (~> 0.2.0)
403
- opal-rails (~> 0.9.4)
404
- parser
405
- pry
406
- pry-rescue
407
- puma
408
- pusher
409
- pusher-fake
410
- rails (>= 4.0.0)
411
- rake
412
- react-rails (>= 2.4.0, < 2.5.0)
413
- reactrb-rails-generator
414
- rspec-collection_matchers
415
- rspec-expectations
416
- rspec-its
417
- rspec-mocks
418
- rspec-rails
419
- rspec-steps (~> 2.1.1)
420
- rspec-wait
421
- rubocop (~> 0.51.0)
422
- selenium-webdriver
423
- shoulda
424
- shoulda-matchers
425
- spring-commands-rspec
426
- sqlite3
427
- timecop (~> 0.8.1)
428
- unparser
429
-
430
- BUNDLED WITH
431
- 1.16.1