hyper-mesh 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/Gemfile +7 -2
  4. data/README.md +112 -87
  5. data/Rakefile +6 -1
  6. data/docs/action_cable_quickstart.md +20 -16
  7. data/docs/activerecord_api.md +23 -17
  8. data/docs/authorization-policies.md +45 -35
  9. data/docs/client_side_scoping.md +5 -5
  10. data/docs/configuration_details.md +6 -46
  11. data/docs/pusher_faker_quickstart.md +7 -68
  12. data/docs/pusher_quickstart.md +7 -68
  13. data/docs/simple_poller_quickstart.md +6 -67
  14. data/docs/todo-example.md +2 -2
  15. data/docs/word_game.md +3 -1
  16. data/docs/words-example.md +2 -3
  17. data/examples/action-cable/Gemfile +2 -1
  18. data/examples/action-cable/Gemfile.lock +73 -54
  19. data/examples/action-cable/config/initializers/{hyper_mesh.rb → hyperloop.rb} +1 -1
  20. data/examples/action-cable/config/routes.rb +1 -1
  21. data/hyper-mesh.gemspec +10 -4
  22. data/lib/active_record_base.rb +3 -3
  23. data/{examples/action-cable-production-mode/log/.keep → lib/acts_as_string.rb} +0 -0
  24. data/lib/hyper-mesh.rb +11 -19
  25. data/lib/hyper_mesh/version.rb +3 -0
  26. data/lib/hypermesh/version.rb +1 -1
  27. data/lib/reactive_record/active_record/class_methods.rb +10 -3
  28. data/lib/reactive_record/active_record/instance_methods.rb +8 -0
  29. data/lib/reactive_record/active_record/public_columns_hash.rb +8 -2
  30. data/lib/reactive_record/active_record/reactive_record/collection.rb +0 -1
  31. data/lib/reactive_record/active_record/reactive_record/dummy_value.rb +2 -1
  32. data/lib/reactive_record/active_record/reactive_record/isomorphic_base.rb +55 -63
  33. data/lib/reactive_record/active_record/reactive_record/operations.rb +51 -0
  34. data/lib/reactive_record/active_record/reactive_record/reactive_set_relationship_helpers.rb +3 -3
  35. data/lib/reactive_record/active_record/reactive_record/while_loading.rb +93 -84
  36. data/lib/reactive_record/broadcast.rb +183 -0
  37. data/lib/reactive_record/permissions.rb +2 -2
  38. data/reactive_record_test_app/Gemfile +6 -2
  39. data/reactive_record_test_app/Gemfile.lock +120 -60
  40. data/reactive_record_test_app/app/assets/javascripts/application.rb +3 -5
  41. data/reactive_record_test_app/app/assets/javascripts/bigdecimal.rb +1 -0
  42. data/reactive_record_test_app/app/assets/javascripts/reactive_record_config.js +2 -2
  43. data/reactive_record_test_app/app/controllers/application_controller.rb +3 -3
  44. data/reactive_record_test_app/app/controllers/home_controller.rb +1 -1
  45. data/reactive_record_test_app/app/models/models.rb.erb +6 -0
  46. data/reactive_record_test_app/config/application.rb +2 -0
  47. data/reactive_record_test_app/config/environments/development.rb +1 -1
  48. data/reactive_record_test_app/config/routes.rb +1 -2
  49. data/reactive_record_test_app/db/seeds.rb +6 -0
  50. data/reactive_record_test_app/script/rails +0 -0
  51. data/reactive_record_test_app/spec-opal/active-record/rendering_spec.rb +11 -2
  52. data/reactive_record_test_app/spec-opal/active-record/save_spec.rb +3 -4
  53. data/reactive_record_test_app/spec-opal/spec_helper.js.rb +1 -1
  54. data/reactive_record_test_app/spec-opal/test_spec.rb +7 -0
  55. data/reactive_record_test_app/spec_dont_run/README.md +7 -0
  56. data/reactive_record_test_app/{spec-opal/active-record → spec_dont_run/active_record_broken}/permissions_spec.rb +0 -0
  57. data/reactive_record_test_app/{spec-opal/active-record → spec_dont_run/active_record_broken}/prerendering_spec.rb +1 -0
  58. data/spec/{synchromesh/aaa-unit_tests/connection_spec.rb → batch1/aaa-unit_tests/connection_movedspec.rb} +0 -0
  59. data/spec/{synchromesh → batch1}/aaa-unit_tests/dummy_value_spec.rb +2 -2
  60. data/spec/{synchromesh → batch1}/column_types/column_type_spec.rb +2 -2
  61. data/spec/{synchromesh → batch1}/crud_access_regulation/broadcast_controls_access_spec.rb +1 -1
  62. data/spec/{synchromesh → batch1}/crud_access_regulation/model_policies_spec.rb +6 -6
  63. data/spec/batch1/misc/access_like_hash_spec.rb +43 -0
  64. data/spec/batch1/misc/while_loading_spec.rb +196 -0
  65. data/spec/{synchromesh → batch1}/policies/regulate_all_broadcasts_spec.rb +12 -12
  66. data/spec/{synchromesh → batch1}/policies/regulate_broadcast_spec.rb +25 -25
  67. data/spec/{synchromesh/integration → batch2}/authorization_spec.rb +8 -7
  68. data/spec/{synchromesh/integration → batch2}/default_scope_spec.rb +2 -2
  69. data/spec/{synchromesh/integration → batch2}/has_many_through_spec.rb +2 -2
  70. data/spec/{synchromesh/integration → batch2}/relationships_spec.rb +3 -3
  71. data/spec/{reactive_record → batch3}/auto_load_itself_spec.rb +1 -1
  72. data/spec/{reactive_record → batch3}/edge_cases_spec.rb +1 -1
  73. data/spec/{reactive_record → batch3}/finder_method_spec.rb +1 -1
  74. data/spec/{reactive_record → batch3}/many_to_many_spec.rb +2 -2
  75. data/spec/{reactive_record → batch3}/pry_rescue_xspec.rb +0 -0
  76. data/{examples/action-cable-production-mode/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css → spec/batch3/readme.txt} +0 -0
  77. data/spec/{reactive_record → batch3}/revert_spec.rb +2 -2
  78. data/spec/{reactive_record → batch3}/save_while_loading_spec.rb +1 -1
  79. data/spec/{reactive_record → batch3}/update_associations_spec.rb +2 -2
  80. data/spec/{reactive_record → batch3}/update_scopes_spec.rb +2 -2
  81. data/spec/{synchromesh/integration → batch4}/saving_during_commit_spec.rb +2 -2
  82. data/spec/{synchromesh/integration → batch4}/scope_spec.rb +30 -2
  83. data/spec/{synchromesh/examples → batch4}/scoped_todos_spec.rb +3 -3
  84. data/spec/{synchromesh/integration → batch4}/synchromesh_spec.rb +2 -2
  85. data/spec/{synchromesh/examples → examples}/dictionary.rb +2 -2
  86. data/spec/{synchromesh/examples → examples}/dictionary_with_client_scopes.rb +2 -2
  87. data/spec/{synchromesh/examples → examples}/random_examples.rb +1 -1
  88. data/spec/{reactive_record/play.rb → play_ground.rb} +0 -0
  89. data/spec/{reactive_record/factory.rb → reactive_record_factory.rb} +0 -0
  90. data/spec/spec_helper.rb +3 -2
  91. data/spec/test_app/Gemfile +8 -3
  92. data/spec/test_app/Gemfile.lock +114 -64
  93. data/spec/test_app/app/views/components.rb +1 -2
  94. data/spec/test_app/config/application.rb +2 -0
  95. data/spec/test_app/config/routes.rb +1 -1
  96. data/spec/{synchromesh/integration/test_components.rb → test_components.rb} +0 -0
  97. metadata +144 -137
  98. data/app/controllers/reactive_record/application_controller.rb +0 -4
  99. data/app/controllers/reactive_record/reactive_record_controller.rb +0 -49
  100. data/config/routes.rb +0 -7
  101. data/examples/action-cable-production-mode/public/assets/application-90043e04e9e784054fd08159fa7aafe5e23d3ffb31584b1bea1e47043c9cfb5a.js +0 -50
  102. data/examples/action-cable-production-mode/public/assets/application-90043e04e9e784054fd08159fa7aafe5e23d3ffb31584b1bea1e47043c9cfb5a.js.gz +0 -0
  103. data/examples/action-cable-production-mode/public/assets/application-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.css.gz +0 -0
  104. data/examples/action-cable-production-mode/tmp/.keep +0 -0
  105. data/examples/action-cable/log/.keep +0 -0
  106. data/examples/action-cable/tmp/.keep +0 -0
  107. data/examples/pusher-fake/log/.keep +0 -0
  108. data/examples/pusher-fake/tmp/.keep +0 -0
  109. data/examples/pusher/log/.keep +0 -0
  110. data/examples/pusher/tmp/.keep +0 -0
  111. data/examples/simple-poller/log/.keep +0 -0
  112. data/examples/simple-poller/tmp/.keep +0 -0
  113. data/examples/word-game/log/.keep +0 -0
  114. data/examples/word-game/tmp/.keep +0 -0
  115. data/examples/words/log/.keep +0 -0
  116. data/examples/words/tmp/.keep +0 -0
  117. data/lib/reactive_record/version.rb +0 -3
  118. data/lib/sources/hyper-mesh/pusher.js +0 -98
  119. data/lib/synchromesh/action_cable.rb +0 -39
  120. data/lib/synchromesh/client_drivers.rb +0 -357
  121. data/lib/synchromesh/configuration.rb +0 -40
  122. data/lib/synchromesh/connection.rb +0 -170
  123. data/lib/synchromesh/policy.rb +0 -504
  124. data/lib/synchromesh/synchromesh.rb +0 -159
  125. data/lib/synchromesh/synchromesh_controller.rb +0 -162
  126. data/reactive_record_test_app/README.rdoc +0 -261
  127. data/reactive_record_test_app/app/assets/javascripts/components/another_component.rb +0 -24
  128. data/reactive_record_test_app/app/assets/javascripts/components/empty_component.rb +0 -6
  129. data/reactive_record_test_app/app/assets/javascripts/components/todo_item_component.js.rb +0 -16
  130. data/reactive_record_test_app/app/assets/javascripts/components/todos_component.js.rb +0 -42
  131. data/reactive_record_test_app/app/assets/javascripts/components/todos_main_component.rb +0 -49
  132. data/reactive_record_test_app/app/assets/javascripts/react_js_test_only.js +0 -21618
  133. data/reactive_record_test_app/app/assets/javascripts/spec/reactive_record_xspec.js.rb +0 -42
  134. data/reactive_record_test_app/app/controllers/test_controller.rb +0 -7
  135. data/reactive_record_test_app/app/mailers/.gitkeep +0 -0
  136. data/reactive_record_test_app/app/models/models.rb +0 -1
  137. data/reactive_record_test_app/app/policies/application_policy.rb +0 -5
  138. data/reactive_record_test_app/app/views/components.rb +0 -4
  139. data/reactive_record_test_app/app/views/components/test.rb +0 -18
  140. data/reactive_record_test_app/app/views/home/index.html.erb +0 -1
  141. data/reactive_record_test_app/app/views/layouts/application.html.erb +0 -17
  142. data/reactive_record_test_app/config/environments/production.rb +0 -70
  143. data/reactive_record_test_app/config/environments/test.rb +0 -41
  144. data/spec/synchromesh/integration/transports_spec.rb +0 -308
  145. data/spec/synchromesh/policies/auto_connect_spec.rb +0 -60
  146. data/spec/synchromesh/policies/auto_loader_spec.rb +0 -34
  147. data/spec/synchromesh/policies/policy_methods_spec.rb +0 -85
  148. data/spec/synchromesh/policies/regulate_class_connection_spec.rb +0 -50
  149. data/spec/synchromesh/policies/regulate_instance_connection_spec.rb +0 -66
  150. data/spec/test_app/log/.keep +0 -0
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require 'synchromesh/integration/test_components'
2
+ require 'test_components'
3
3
 
4
4
  describe "example scopes", js: true do
5
5
 
@@ -11,7 +11,7 @@ describe "example scopes", js: true do
11
11
  Pusher.secret = "MY_TEST_SECRET"
12
12
  require "pusher-fake/support/base"
13
13
 
14
- HyperMesh.configuration do |config|
14
+ Hyperloop.configuration do |config|
15
15
  config.transport = :pusher
16
16
  config.channel_prefix = "synchromesh"
17
17
  config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
@@ -141,7 +141,7 @@ describe "example scopes", js: true do
141
141
  user1.commentz << FactoryGirl.create(:comment, comment: "frank made this comment", todoz: user2.assigned_todos.first)
142
142
  user2.commentz << FactoryGirl.create(:comment, comment: "bob made this comment", todoz: user1.assigned_todos.first)
143
143
  # evaluate_ruby do
144
- # HyperMesh::IncomingBroadcast.hypertrace do
144
+ # Hyperloop::IncomingBroadcast.hypertrace do
145
145
  # break_on_exit?(:merge_current_values) { Todo.find(5).comments.last.todo.nil? rescue nil }
146
146
  # end
147
147
  # ReactiveRecord::ScopeDescription.hypertrace do
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require 'synchromesh/integration/test_components'
2
+ require 'test_components'
3
3
 
4
4
  describe "HyperMesh", js: true do
5
5
 
@@ -11,7 +11,7 @@ describe "HyperMesh", js: true do
11
11
  Pusher.secret = "MY_TEST_SECRET"
12
12
  require "pusher-fake/support/base"
13
13
 
14
- HyperMesh.configuration do |config|
14
+ Hyperloop.configuration do |config|
15
15
  config.transport = :pusher
16
16
  config.channel_prefix = "synchromesh"
17
17
  config.opts = {app_id: Pusher.app_id, key: Pusher.key, secret: Pusher.secret}.merge(PusherFake.configuration.web_options)
@@ -1,10 +1,10 @@
1
1
  require 'spec_helper'
2
- require 'synchromesh/integration/test_components'
2
+ require 'test_components'
3
3
 
4
4
  describe "dictionary examples", js: true do
5
5
 
6
6
 
7
- HyperMesh.configuration do |config|
7
+ Hyperloop.configuration do |config|
8
8
  config.transport = :action_cable
9
9
  config.channel_prefix = "synchromesh"
10
10
  end
@@ -1,10 +1,10 @@
1
1
  require 'spec_helper'
2
- require 'synchromesh/integration/test_components'
2
+ require 'test_components'
3
3
 
4
4
  describe "dictionary examples", js: true do
5
5
 
6
6
 
7
- HyperMesh.configuration do |config|
7
+ Hyperloop.configuration do |config|
8
8
  config.transport = :action_cable
9
9
  config.channel_prefix = "synchromesh"
10
10
  end
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require 'synchromesh/integration/test_components'
2
+ require 'test_components'
3
3
 
4
4
  describe "random examples", js: true do
5
5
 
@@ -71,6 +71,7 @@ end
71
71
 
72
72
  if RUBY_ENGINE != 'opal'
73
73
  require 'pry'
74
+ require 'opal-browser'
74
75
  begin
75
76
  require File.expand_path('../test_app/config/environment', __FILE__)
76
77
  rescue LoadError
@@ -104,7 +105,7 @@ if RUBY_ENGINE != 'opal'
104
105
  unless example.exception
105
106
  #Object.send(:remove_const, :Application) rescue nil
106
107
  ObjectSpace.each_object(Class).each do |klass|
107
- if klass < HyperMesh::Regulation
108
+ if klass < Hyperloop::Regulation
108
109
  klass.instance_variables.each { |v| klass.instance_variable_set(v, nil) }
109
110
  end
110
111
  end
@@ -228,7 +229,7 @@ if RUBY_ENGINE != 'opal'
228
229
  end
229
230
 
230
231
  config.before(:each) do |x|
231
- HyperMesh.class_eval do
232
+ Hyperloop.class_eval do
232
233
  def self.on_server?
233
234
  true
234
235
  end
@@ -51,11 +51,16 @@ end
51
51
 
52
52
  gem 'jquery-ui-rails'
53
53
 
54
-
55
- gem 'react-rails', '>= 1.3.0'
54
+ gem 'opal'
55
+ gem 'react-rails', '~> 1.9.0'
56
56
  gem 'opal-rails', '>= 0.8.1'
57
57
  gem 'therubyracer', platforms: :ruby
58
- gem 'react-router-rails', '~> 0.13.3'
58
+ #gem 'react-router-rails', '~> 0.13.3'
59
59
  gem 'reactrb-router'
60
60
  gem 'hyper-mesh', path: '../..'
61
+ # gem 'hyperloop-config', path: '../../../hyperloop-config'
62
+ # gem 'hyper-operation', path: '../../../hyper-operation'
63
+ # gem 'hyper-component', path: '../../../hyper-component'
64
+ # gem 'hyper-react', path: '../../../hyper-react'
65
+ # gem 'hyper-store', path: '../../../hyper-store'
61
66
  gem 'opal-browser'
@@ -1,50 +1,52 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- hyper-mesh (0.4.0)
4
+ hyper-mesh (0.5.4)
5
5
  activerecord (>= 0.3.0)
6
- hyper-react (>= 0.10.0)
6
+ hyper-operation
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.0.0.1)
12
- actionpack (= 5.0.0.1)
13
- nio4r (~> 1.2)
11
+ actioncable (5.0.2)
12
+ actionpack (= 5.0.2)
13
+ nio4r (>= 1.2, < 3.0)
14
14
  websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.0.1)
16
- actionpack (= 5.0.0.1)
17
- actionview (= 5.0.0.1)
18
- activejob (= 5.0.0.1)
15
+ actionmailer (5.0.2)
16
+ actionpack (= 5.0.2)
17
+ actionview (= 5.0.2)
18
+ activejob (= 5.0.2)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.0.0.1)
22
- actionview (= 5.0.0.1)
23
- activesupport (= 5.0.0.1)
21
+ actionpack (5.0.2)
22
+ actionview (= 5.0.2)
23
+ activesupport (= 5.0.2)
24
24
  rack (~> 2.0)
25
25
  rack-test (~> 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.0.1)
29
- activesupport (= 5.0.0.1)
28
+ actionview (5.0.2)
29
+ activesupport (= 5.0.2)
30
30
  builder (~> 3.1)
31
31
  erubis (~> 2.7.0)
32
32
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
- activejob (5.0.0.1)
35
- activesupport (= 5.0.0.1)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.0.2)
35
+ activesupport (= 5.0.2)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.0.0.1)
38
- activesupport (= 5.0.0.1)
39
- activerecord (5.0.0.1)
40
- activemodel (= 5.0.0.1)
41
- activesupport (= 5.0.0.1)
37
+ activemodel (5.0.2)
38
+ activesupport (= 5.0.2)
39
+ activerecord (5.0.2)
40
+ activemodel (= 5.0.2)
41
+ activesupport (= 5.0.2)
42
42
  arel (~> 7.0)
43
- activesupport (5.0.0.1)
43
+ activesupport (5.0.2)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
45
  i18n (~> 0.7)
46
46
  minitest (~> 5.1)
47
47
  tzinfo (~> 1.1)
48
+ addressable (2.5.0)
49
+ public_suffix (~> 2.0, >= 2.0.2)
48
50
  arel (7.1.4)
49
51
  babel-source (5.8.35)
50
52
  babel-transpiler (0.7.0)
@@ -52,7 +54,7 @@ GEM
52
54
  execjs (~> 2.0)
53
55
  binding_of_caller (0.7.2)
54
56
  debug_inspector (>= 0.0.1)
55
- builder (3.2.2)
57
+ builder (3.2.3)
56
58
  byebug (9.0.6)
57
59
  coderay (1.1.1)
58
60
  coffee-rails (4.1.1)
@@ -61,21 +63,55 @@ GEM
61
63
  coffee-script (2.4.1)
62
64
  coffee-script-source
63
65
  execjs
64
- coffee-script-source (1.10.0)
65
- concurrent-ruby (1.0.2)
66
- connection_pool (2.2.0)
66
+ coffee-script-source (1.12.2)
67
+ concurrent-ruby (1.0.5)
68
+ connection_pool (2.2.1)
69
+ cookiejar (0.3.3)
70
+ daemons (1.2.4)
67
71
  debug_inspector (0.0.2)
72
+ em-http-request (1.1.5)
73
+ addressable (>= 2.3.4)
74
+ cookiejar (!= 0.3.1)
75
+ em-socksify (>= 0.3)
76
+ eventmachine (>= 1.0.3)
77
+ http_parser.rb (>= 0.6.0)
78
+ em-socksify (0.3.1)
79
+ eventmachine (>= 1.0.0.beta.4)
80
+ em-websocket (0.5.1)
81
+ eventmachine (>= 0.12.9)
82
+ http_parser.rb (~> 0.6.0)
68
83
  erubis (2.7.0)
84
+ eventmachine (1.2.3)
69
85
  execjs (2.7.0)
70
86
  globalid (0.3.7)
71
87
  activesupport (>= 4.1.0)
72
88
  hike (1.2.3)
73
- hyper-react (0.10.0)
89
+ http_parser.rb (0.6.0)
90
+ httpclient (2.8.3)
91
+ hyper-component (0.12.2)
92
+ hyper-react (>= 0.12.0)
93
+ hyperloop-config (>= 0.9.2)
94
+ opal-rails (~> 0.9.0)
95
+ react-rails (< 1.10.0)
96
+ hyper-operation (0.5.0)
97
+ activerecord (>= 0.3.0)
98
+ hyper-component (>= 0.12.2)
99
+ hyperloop-config (>= 0.9.2)
100
+ mutations
101
+ opal-activesupport
102
+ pusher
103
+ pusher-fake
104
+ hyper-react (0.12.2)
105
+ hyper-store (>= 0.2.1)
106
+ hyperloop-config (>= 0.9.2)
74
107
  opal (>= 0.8.0)
75
108
  opal-activesupport (>= 0.2.0)
76
- react-rails
77
- hyper-trace (0.3.0)
78
- i18n (0.7.0)
109
+ hyper-store (0.2.1)
110
+ hyperloop-config (>= 0.9.2)
111
+ hyper-trace (0.3.1)
112
+ hyperloop-config (0.9.2)
113
+ opal
114
+ i18n (0.8.1)
79
115
  jbuilder (2.6.0)
80
116
  activesupport (>= 3.0.0, < 5.1)
81
117
  multi_json (~> 1.2)
@@ -96,13 +132,15 @@ GEM
96
132
  mime-types-data (~> 3.2015)
97
133
  mime-types-data (3.2016.0521)
98
134
  mini_portile2 (2.1.0)
99
- minitest (5.9.1)
135
+ minitest (5.10.1)
100
136
  multi_json (1.12.1)
137
+ mutations (0.8.1)
138
+ activesupport
101
139
  mysql2 (0.4.5)
102
- nio4r (1.2.1)
103
- nokogiri (1.6.8.1)
140
+ nio4r (2.0.0)
141
+ nokogiri (1.7.0.1)
104
142
  mini_portile2 (~> 2.1.0)
105
- opal (0.10.2)
143
+ opal (0.10.3)
106
144
  hike (~> 1.2)
107
145
  sourcemap (~> 0.1.0)
108
146
  sprockets (~> 3.1)
@@ -126,46 +164,54 @@ GEM
126
164
  coderay (~> 1.1.0)
127
165
  method_source (~> 0.8.1)
128
166
  slop (~> 3.4)
167
+ public_suffix (2.0.5)
129
168
  puma (3.6.0)
169
+ pusher (1.3.1)
170
+ httpclient (~> 2.7)
171
+ multi_json (~> 1.0)
172
+ pusher-signature (~> 0.1.8)
173
+ pusher-fake (1.8.0)
174
+ em-http-request (~> 1.1)
175
+ em-websocket (~> 0.5)
176
+ multi_json (~> 1.6)
177
+ thin (~> 1.5)
178
+ pusher-signature (0.1.8)
130
179
  rack (2.0.1)
131
180
  rack-test (0.6.3)
132
181
  rack (>= 1.0)
133
- rails (5.0.0.1)
134
- actioncable (= 5.0.0.1)
135
- actionmailer (= 5.0.0.1)
136
- actionpack (= 5.0.0.1)
137
- actionview (= 5.0.0.1)
138
- activejob (= 5.0.0.1)
139
- activemodel (= 5.0.0.1)
140
- activerecord (= 5.0.0.1)
141
- activesupport (= 5.0.0.1)
182
+ rails (5.0.2)
183
+ actioncable (= 5.0.2)
184
+ actionmailer (= 5.0.2)
185
+ actionpack (= 5.0.2)
186
+ actionview (= 5.0.2)
187
+ activejob (= 5.0.2)
188
+ activemodel (= 5.0.2)
189
+ activerecord (= 5.0.2)
190
+ activesupport (= 5.0.2)
142
191
  bundler (>= 1.3.0, < 2.0)
143
- railties (= 5.0.0.1)
192
+ railties (= 5.0.2)
144
193
  sprockets-rails (>= 2.0.0)
145
- rails-dom-testing (2.0.1)
194
+ rails-dom-testing (2.0.2)
146
195
  activesupport (>= 4.2.0, < 6.0)
147
- nokogiri (~> 1.6.0)
196
+ nokogiri (~> 1.6)
148
197
  rails-html-sanitizer (1.0.3)
149
198
  loofah (~> 2.0)
150
- railties (5.0.0.1)
151
- actionpack (= 5.0.0.1)
152
- activesupport (= 5.0.0.1)
199
+ railties (5.0.2)
200
+ actionpack (= 5.0.2)
201
+ activesupport (= 5.0.2)
153
202
  method_source
154
203
  rake (>= 0.8.7)
155
204
  thor (>= 0.18.1, < 2.0)
156
- rake (11.3.0)
205
+ rake (12.0.0)
157
206
  rdoc (4.2.2)
158
207
  json (~> 1.4)
159
- react-rails (1.4.2)
208
+ react-rails (1.9.0)
160
209
  babel-transpiler (>= 0.7.0)
161
210
  coffee-script-source (~> 1.8)
162
211
  connection_pool
163
212
  execjs
164
- rails (>= 3.2)
213
+ railties (>= 3.2)
165
214
  tilt
166
- react-router-rails (0.13.3.2)
167
- rails (>= 3.1)
168
- react-rails (~> 1.4.0)
169
215
  reactrb (0.9.0)
170
216
  opal (>= 0.8.0)
171
217
  opal-activesupport (>= 0.2.0)
@@ -189,7 +235,7 @@ GEM
189
235
  sourcemap (0.1.1)
190
236
  spring (2.0.0)
191
237
  activesupport (>= 4.2)
192
- sprockets (3.7.0)
238
+ sprockets (3.7.1)
193
239
  concurrent-ruby (~> 1.0)
194
240
  rack (> 1, < 3)
195
241
  sprockets-rails (2.3.3)
@@ -200,9 +246,13 @@ GEM
200
246
  therubyracer (0.12.2)
201
247
  libv8 (~> 3.16.14.0)
202
248
  ref
203
- thor (0.19.1)
204
- thread_safe (0.3.5)
205
- tilt (2.0.5)
249
+ thin (1.7.0)
250
+ daemons (~> 1.0, >= 1.0.9)
251
+ eventmachine (~> 1.0, >= 1.0.4)
252
+ rack (>= 1, < 3)
253
+ thor (0.19.4)
254
+ thread_safe (0.3.6)
255
+ tilt (2.0.6)
206
256
  turbolinks (5.0.1)
207
257
  turbolinks-source (~> 5)
208
258
  turbolinks-source (5.0.0)
@@ -215,7 +265,7 @@ GEM
215
265
  binding_of_caller (>= 0.7.2)
216
266
  railties (>= 4.0)
217
267
  sprockets-rails (>= 2.0, < 4.0)
218
- websocket-driver (0.6.4)
268
+ websocket-driver (0.6.5)
219
269
  websocket-extensions (>= 0.1.0)
220
270
  websocket-extensions (0.1.2)
221
271
 
@@ -231,13 +281,13 @@ DEPENDENCIES
231
281
  jquery-rails
232
282
  jquery-ui-rails
233
283
  mysql2
284
+ opal
234
285
  opal-browser
235
286
  opal-rails (>= 0.8.1)
236
287
  pry
237
288
  puma
238
289
  rails (~> 5.0.0)
239
- react-rails (>= 1.3.0)
240
- react-router-rails (~> 0.13.3)
290
+ react-rails (~> 1.9.0)
241
291
  reactrb-rails-generator
242
292
  reactrb-router
243
293
  sass-rails (~> 5.0)
@@ -250,4 +300,4 @@ DEPENDENCIES
250
300
  web-console (~> 2.0)
251
301
 
252
302
  BUNDLED WITH
253
- 1.12.5
303
+ 1.14.3
@@ -1,6 +1,5 @@
1
1
  require 'opal'
2
2
  require 'react'
3
- require 'hyper-trace'
4
3
  require 'hyper-mesh'
5
4
 
6
5
  if React::IsomorphicHelpers.on_opal_client?
@@ -8,7 +7,7 @@ if React::IsomorphicHelpers.on_opal_client?
8
7
  #require 'browser' # breaks poltergeist
9
8
  require 'browser/interval'
10
9
  require 'browser/delay'
11
- require 'hyper-mesh/pusher'
10
+ require 'hyperloop/pusher'
12
11
  end
13
12
  require '_react_public_models'
14
13
  require_tree './components'
@@ -15,6 +15,7 @@ module TestApp
15
15
  config.eager_load_paths += %W(#{config.root}/app/models/public)
16
16
  config.autoload_paths += %W(#{config.root}/app/models/public)
17
17
  config.assets.paths << ::Rails.root.join('app', 'models').to_s
18
+ config.hyperloop.auto_config = false
18
19
  config.opal.method_missing = true
19
20
  config.opal.optimized_operators = true
20
21
  config.opal.arity_check = false
@@ -24,6 +25,7 @@ module TestApp
24
25
  config.opal.spec_location = 'spec-opal'
25
26
 
26
27
  config.assets.cache_store = :null_store
28
+ config.hyperloop.auto_config = false
27
29
  # Settings in config/environments/* take precedence over those specified here.
28
30
  # Application configuration should go into files in config/initializers
29
31
  # -- all .rb files in that directory are automatically loaded.