hyper-mesh 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -13
  3. data/docs/action_cable_quickstart.md +9 -7
  4. data/docs/activerecord_api.md +73 -0
  5. data/docs/client_side_scoping.md +5 -5
  6. data/docs/configuration_details.md +11 -0
  7. data/docs/pusher_faker_quickstart.md +95 -6
  8. data/docs/pusher_quickstart.md +96 -8
  9. data/docs/simple_poller_quickstart.md +21 -55
  10. data/docs/todo-example.md +2 -0
  11. data/docs/words-example.md +3 -0
  12. data/examples/action-cable/Gemfile +7 -8
  13. data/examples/action-cable/Gemfile.lock +28 -46
  14. data/examples/{simple-poller/app/assets/javascripts/channels → action-cable/app/assets/images}/.keep +0 -0
  15. data/examples/action-cable/app/assets/javascripts/application.js +5 -3
  16. data/examples/action-cable/app/assets/javascripts/cable.js +13 -0
  17. data/examples/{simple-poller/app/controllers/concerns → action-cable/app/assets/javascripts/channels}/.keep +0 -0
  18. data/examples/{simple-poller → action-cable}/app/channels/application_cable/channel.rb +0 -0
  19. data/examples/{simple-poller → action-cable}/app/channels/application_cable/connection.rb +0 -0
  20. data/examples/action-cable/app/controllers/test_controller.rb +0 -1
  21. data/examples/{simple-poller/app/models/concerns → action-cable/app/models/public}/.keep +0 -0
  22. data/examples/action-cable/app/policies/application_policy.rb +9 -1
  23. data/examples/action-cable/app/views/components.rb +2 -3
  24. data/examples/action-cable/bin/spring +4 -3
  25. data/examples/action-cable/config/application.rb +1 -11
  26. data/examples/action-cable/config/environments/development.rb +12 -1
  27. data/examples/action-cable/config/initializers/hyper_mesh.rb +4 -0
  28. data/examples/action-cable/config/routes.rb +1 -1
  29. data/examples/action-cable/config/secrets.yml +2 -2
  30. data/examples/action-cable/db/migrate/{20160921223808_create_words.rb → 20161114213840_create_words.rb} +0 -0
  31. data/examples/action-cable/db/schema.rb +14 -1
  32. data/examples/action-cable/db/seeds.rb +7 -0
  33. data/examples/{simple-poller/app/views/components → action-cable/lib/assets}/.keep +0 -0
  34. data/examples/action-cable/lib/tasks/.keep +0 -0
  35. data/examples/action-cable/test/controllers/.keep +0 -0
  36. data/examples/action-cable/test/fixtures/.keep +0 -0
  37. data/examples/action-cable/test/fixtures/files/.keep +0 -0
  38. data/examples/action-cable/test/fixtures/words.yml +7 -0
  39. data/examples/action-cable/test/helpers/.keep +0 -0
  40. data/examples/action-cable/test/integration/.keep +0 -0
  41. data/examples/action-cable/test/mailers/.keep +0 -0
  42. data/examples/action-cable/test/models/.keep +0 -0
  43. data/examples/action-cable/test/models/word_test.rb +7 -0
  44. data/examples/action-cable/test/test_helper.rb +10 -0
  45. data/examples/pusher-fake/.gitignore +21 -0
  46. data/examples/pusher-fake/Gemfile +59 -0
  47. data/examples/pusher-fake/Gemfile.lock +262 -0
  48. data/examples/pusher-fake/README.md +24 -0
  49. data/examples/pusher-fake/Rakefile +6 -0
  50. data/examples/pusher-fake/app/assets/config/manifest.js +3 -0
  51. data/examples/pusher-fake/app/assets/images/.keep +0 -0
  52. data/examples/pusher-fake/app/assets/javascripts/application.js +21 -0
  53. data/examples/pusher-fake/app/assets/stylesheets/application.css +15 -0
  54. data/examples/pusher-fake/app/controllers/application_controller.rb +3 -0
  55. data/examples/pusher-fake/app/controllers/test_controller.rb +5 -0
  56. data/examples/pusher-fake/app/models/models.rb +2 -0
  57. data/examples/pusher-fake/app/models/public/.keep +0 -0
  58. data/examples/pusher-fake/app/models/public/application_record.rb +3 -0
  59. data/examples/pusher-fake/app/models/public/word.rb +2 -0
  60. data/examples/pusher-fake/app/policies/application_policy.rb +14 -0
  61. data/examples/pusher-fake/app/views/components.rb +16 -0
  62. data/examples/pusher-fake/app/views/components/app.rb +18 -0
  63. data/examples/pusher-fake/app/views/layouts/application.html.erb +14 -0
  64. data/examples/pusher-fake/app/views/layouts/mailer.html.erb +13 -0
  65. data/examples/pusher-fake/app/views/layouts/mailer.text.erb +1 -0
  66. data/examples/pusher-fake/bin/bundle +3 -0
  67. data/examples/pusher-fake/bin/rails +9 -0
  68. data/examples/pusher-fake/bin/rake +9 -0
  69. data/examples/pusher-fake/bin/setup +34 -0
  70. data/examples/pusher-fake/bin/spring +16 -0
  71. data/examples/pusher-fake/bin/update +29 -0
  72. data/examples/pusher-fake/config.ru +5 -0
  73. data/examples/pusher-fake/config/application.rb +20 -0
  74. data/examples/pusher-fake/config/boot.rb +3 -0
  75. data/examples/pusher-fake/config/database.yml +25 -0
  76. data/examples/pusher-fake/config/environment.rb +5 -0
  77. data/examples/pusher-fake/config/environments/development.rb +56 -0
  78. data/examples/pusher-fake/config/environments/production.rb +86 -0
  79. data/examples/pusher-fake/config/environments/test.rb +42 -0
  80. data/examples/pusher-fake/config/initializers/application_controller_renderer.rb +6 -0
  81. data/examples/pusher-fake/config/initializers/assets.rb +11 -0
  82. data/examples/pusher-fake/config/initializers/backtrace_silencers.rb +7 -0
  83. data/examples/pusher-fake/config/initializers/cookies_serializer.rb +5 -0
  84. data/examples/pusher-fake/config/initializers/filter_parameter_logging.rb +4 -0
  85. data/examples/pusher-fake/config/initializers/hyper_mesh.rb +21 -0
  86. data/examples/pusher-fake/config/initializers/inflections.rb +16 -0
  87. data/examples/pusher-fake/config/initializers/mime_types.rb +4 -0
  88. data/examples/pusher-fake/config/initializers/new_framework_defaults.rb +24 -0
  89. data/examples/pusher-fake/config/initializers/session_store.rb +3 -0
  90. data/examples/pusher-fake/config/initializers/wrap_parameters.rb +14 -0
  91. data/examples/pusher-fake/config/locales/en.yml +23 -0
  92. data/examples/pusher-fake/config/puma.rb +47 -0
  93. data/examples/pusher-fake/config/routes.rb +5 -0
  94. data/examples/pusher-fake/config/secrets.yml +22 -0
  95. data/examples/pusher-fake/config/spring.rb +6 -0
  96. data/examples/{simple-poller/db/migrate/20161013220135_create_words.rb → pusher-fake/db/migrate/20161114213840_create_words.rb} +0 -0
  97. data/examples/pusher-fake/db/schema.rb +34 -0
  98. data/examples/pusher-fake/db/seeds.rb +7 -0
  99. data/examples/pusher-fake/lib/assets/.keep +0 -0
  100. data/examples/pusher-fake/lib/tasks/.keep +0 -0
  101. data/examples/pusher-fake/log/.keep +0 -0
  102. data/examples/pusher-fake/public/404.html +67 -0
  103. data/examples/pusher-fake/public/422.html +67 -0
  104. data/examples/pusher-fake/public/500.html +66 -0
  105. data/examples/pusher-fake/public/apple-touch-icon-precomposed.png +0 -0
  106. data/examples/pusher-fake/public/apple-touch-icon.png +0 -0
  107. data/examples/pusher-fake/public/favicon.ico +0 -0
  108. data/examples/pusher-fake/public/robots.txt +5 -0
  109. data/examples/pusher-fake/test/controllers/.keep +0 -0
  110. data/examples/pusher-fake/test/fixtures/.keep +0 -0
  111. data/examples/pusher-fake/test/fixtures/files/.keep +0 -0
  112. data/examples/pusher-fake/test/fixtures/words.yml +7 -0
  113. data/examples/pusher-fake/test/helpers/.keep +0 -0
  114. data/examples/pusher-fake/test/integration/.keep +0 -0
  115. data/examples/pusher-fake/test/mailers/.keep +0 -0
  116. data/examples/pusher-fake/test/models/.keep +0 -0
  117. data/examples/pusher-fake/test/models/word_test.rb +7 -0
  118. data/examples/pusher-fake/test/test_helper.rb +10 -0
  119. data/examples/pusher-fake/tmp/.keep +0 -0
  120. data/examples/pusher-fake/vendor/assets/javascripts/.keep +0 -0
  121. data/examples/pusher-fake/vendor/assets/stylesheets/.keep +0 -0
  122. data/examples/pusher/.gitignore +21 -0
  123. data/examples/pusher/Gemfile +58 -0
  124. data/examples/pusher/Gemfile.lock +236 -0
  125. data/examples/pusher/README.md +24 -0
  126. data/examples/pusher/Rakefile +6 -0
  127. data/examples/pusher/app/assets/config/manifest.js +3 -0
  128. data/examples/pusher/app/assets/images/.keep +0 -0
  129. data/examples/pusher/app/assets/javascripts/application.js +21 -0
  130. data/examples/pusher/app/assets/stylesheets/application.css +15 -0
  131. data/examples/pusher/app/controllers/application_controller.rb +3 -0
  132. data/examples/pusher/app/controllers/test_controller.rb +5 -0
  133. data/examples/pusher/app/models/models.rb +2 -0
  134. data/examples/pusher/app/models/public/.keep +0 -0
  135. data/examples/pusher/app/models/public/application_record.rb +3 -0
  136. data/examples/pusher/app/models/public/word.rb +2 -0
  137. data/examples/pusher/app/policies/application_policy.rb +14 -0
  138. data/examples/pusher/app/views/components.rb +16 -0
  139. data/examples/pusher/app/views/components/app.rb +18 -0
  140. data/examples/pusher/app/views/layouts/application.html.erb +14 -0
  141. data/examples/pusher/app/views/layouts/mailer.html.erb +13 -0
  142. data/examples/pusher/app/views/layouts/mailer.text.erb +1 -0
  143. data/examples/pusher/bin/bundle +3 -0
  144. data/examples/pusher/bin/rails +9 -0
  145. data/examples/pusher/bin/rake +9 -0
  146. data/examples/pusher/bin/setup +34 -0
  147. data/examples/pusher/bin/spring +16 -0
  148. data/examples/pusher/bin/update +29 -0
  149. data/examples/pusher/config.ru +5 -0
  150. data/examples/pusher/config/application.rb +20 -0
  151. data/examples/pusher/config/boot.rb +3 -0
  152. data/examples/pusher/config/database.yml +25 -0
  153. data/examples/pusher/config/environment.rb +5 -0
  154. data/examples/pusher/config/environments/development.rb +56 -0
  155. data/examples/pusher/config/environments/production.rb +86 -0
  156. data/examples/pusher/config/environments/test.rb +42 -0
  157. data/examples/pusher/config/initializers/application_controller_renderer.rb +6 -0
  158. data/examples/pusher/config/initializers/assets.rb +11 -0
  159. data/examples/pusher/config/initializers/backtrace_silencers.rb +7 -0
  160. data/examples/pusher/config/initializers/cookies_serializer.rb +5 -0
  161. data/examples/pusher/config/initializers/filter_parameter_logging.rb +4 -0
  162. data/examples/pusher/config/initializers/hyper_mesh.rb +10 -0
  163. data/examples/pusher/config/initializers/inflections.rb +16 -0
  164. data/examples/pusher/config/initializers/mime_types.rb +4 -0
  165. data/examples/pusher/config/initializers/new_framework_defaults.rb +24 -0
  166. data/examples/pusher/config/initializers/session_store.rb +3 -0
  167. data/examples/pusher/config/initializers/wrap_parameters.rb +14 -0
  168. data/examples/pusher/config/locales/en.yml +23 -0
  169. data/examples/pusher/config/puma.rb +47 -0
  170. data/examples/pusher/config/routes.rb +5 -0
  171. data/examples/pusher/config/secrets.yml +22 -0
  172. data/examples/pusher/config/spring.rb +6 -0
  173. data/examples/pusher/db/migrate/20161114213840_create_words.rb +9 -0
  174. data/examples/pusher/db/schema.rb +34 -0
  175. data/examples/pusher/db/seeds.rb +7 -0
  176. data/examples/pusher/lib/assets/.keep +0 -0
  177. data/examples/pusher/lib/tasks/.keep +0 -0
  178. data/examples/pusher/log/.keep +0 -0
  179. data/examples/pusher/public/404.html +67 -0
  180. data/examples/pusher/public/422.html +67 -0
  181. data/examples/pusher/public/500.html +66 -0
  182. data/examples/pusher/public/apple-touch-icon-precomposed.png +0 -0
  183. data/examples/pusher/public/apple-touch-icon.png +0 -0
  184. data/examples/pusher/public/favicon.ico +0 -0
  185. data/examples/pusher/public/robots.txt +5 -0
  186. data/examples/pusher/test/controllers/.keep +0 -0
  187. data/examples/pusher/test/fixtures/.keep +0 -0
  188. data/examples/pusher/test/fixtures/files/.keep +0 -0
  189. data/examples/pusher/test/fixtures/words.yml +7 -0
  190. data/examples/pusher/test/helpers/.keep +0 -0
  191. data/examples/pusher/test/integration/.keep +0 -0
  192. data/examples/pusher/test/mailers/.keep +0 -0
  193. data/examples/pusher/test/models/.keep +0 -0
  194. data/examples/pusher/test/models/word_test.rb +7 -0
  195. data/examples/pusher/test/test_helper.rb +10 -0
  196. data/examples/pusher/tmp/.keep +0 -0
  197. data/examples/pusher/vendor/assets/javascripts/.keep +0 -0
  198. data/examples/pusher/vendor/assets/stylesheets/.keep +0 -0
  199. data/examples/simple-poller/Gemfile +7 -14
  200. data/examples/simple-poller/Gemfile.lock +23 -66
  201. data/examples/simple-poller/app/assets/javascripts/application.js +5 -4
  202. data/examples/simple-poller/app/controllers/test_controller.rb +0 -1
  203. data/examples/simple-poller/app/policies/application_policy.rb +10 -1
  204. data/examples/simple-poller/app/views/components.rb +4 -6
  205. data/examples/simple-poller/app/views/components/app.rb +2 -24
  206. data/examples/simple-poller/app/views/layouts/application.html.erb +1 -1
  207. data/examples/simple-poller/bin/bundle +0 -0
  208. data/examples/simple-poller/bin/rails +0 -0
  209. data/examples/simple-poller/bin/rake +0 -0
  210. data/examples/simple-poller/bin/setup +0 -0
  211. data/examples/simple-poller/bin/spring +0 -0
  212. data/examples/simple-poller/bin/update +0 -0
  213. data/examples/simple-poller/config/application.rb +1 -1
  214. data/examples/simple-poller/config/environments/development.rb +13 -1
  215. data/examples/simple-poller/config/environments/production.rb +1 -1
  216. data/examples/simple-poller/config/initializers/hyper_mesh.rb +9 -0
  217. data/examples/simple-poller/config/initializers/session_store.rb +1 -1
  218. data/examples/simple-poller/config/routes.rb +1 -1
  219. data/examples/simple-poller/config/secrets.yml +2 -2
  220. data/examples/simple-poller/db/migrate/20161114213840_create_words.rb +9 -0
  221. data/examples/simple-poller/db/schema.rb +14 -1
  222. data/lib/hypermesh/version.rb +1 -1
  223. data/lib/reactive_record/active_record/reactive_record/dummy_value.rb +2 -0
  224. data/spec/synchromesh/{connection_spec.rb → unit_tests/connection_spec.rb} +0 -0
  225. data/spec/synchromesh/unit_tests/dummy_value_spec.rb +26 -0
  226. metadata +184 -20
  227. data/examples/action-cable/config/initializers/synchromesh.rb +0 -5
  228. data/examples/action-cable/rails_cache_dir2/C91/480/synchromesh_active_connections +0 -0
  229. data/examples/simple-poller/app/helpers/application_helper.rb +0 -2
  230. data/examples/simple-poller/app/jobs/application_job.rb +0 -2
  231. data/examples/simple-poller/app/mailers/application_mailer.rb +0 -4
  232. data/examples/simple-poller/config/cable.yml +0 -9
  233. data/examples/simple-poller/config/initializers/synchromesh.rb +0 -15
  234. data/hyper-mesh-0.4.0.gem +0 -0
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>SimplePoller</title>
4
+ <title>ActionCable</title>
5
5
  <%= csrf_meta_tags %>
6
6
 
7
7
  <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -6,7 +6,7 @@ require 'rails/all'
6
6
  # you've limited to :test, :development, or :production.
7
7
  Bundler.require(*Rails.groups)
8
8
 
9
- module SimplePoller
9
+ module ActionCable
10
10
  class Application < Rails::Application
11
11
  config.eager_load_paths += %W(#{config.root}/app/models/public)
12
12
  config.eager_load_paths += %W(#{config.root}/app/views/components)
@@ -14,7 +14,19 @@ Rails.application.configure do
14
14
  # Show full error reports.
15
15
  config.consider_all_requests_local = true
16
16
 
17
- config.cache_store = :file_store, './rails_cache_dir'
17
+ # Enable/disable caching. By default caching is disabled.
18
+ if Rails.root.join('tmp/caching-dev.txt').exist?
19
+ config.action_controller.perform_caching = true
20
+
21
+ config.cache_store = :memory_store
22
+ config.public_file_server.headers = {
23
+ 'Cache-Control' => 'public, max-age=172800'
24
+ }
25
+ else
26
+ config.action_controller.perform_caching = false
27
+
28
+ config.cache_store = :null_store
29
+ end
18
30
 
19
31
  # Don't care if the mailer can't send.
20
32
  config.action_mailer.raise_delivery_errors = false
@@ -54,7 +54,7 @@ Rails.application.configure do
54
54
 
55
55
  # Use a real queuing backend for Active Job (and separate queues per environment)
56
56
  # config.active_job.queue_adapter = :resque
57
- # config.active_job.queue_name_prefix = "simple-poller_#{Rails.env}"
57
+ # config.active_job.queue_name_prefix = "action-cable_#{Rails.env}"
58
58
  config.action_mailer.perform_caching = false
59
59
 
60
60
  # Ignore bad email addresses and do not raise email delivery errors.
@@ -0,0 +1,9 @@
1
+ #config/initializers/synchromesh.rb
2
+ HyperMesh.configuration do |config|
3
+ config.transport = :simple_poller
4
+ # options
5
+ # config.opts = {
6
+ # seconds_between_poll: 5, # default is 0.5 you may need to increase if testing with Selenium
7
+ # seconds_polled_data_will_be_retained: 1.hour # clears channel data after this time, default is 5 minutes
8
+ # }
9
+ end
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Rails.application.config.session_store :cookie_store, key: '_simple-poller_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_action-cable_session'
@@ -1,5 +1,5 @@
1
1
  Rails.application.routes.draw do
2
2
  get 'test', to: 'test#app'
3
- mount ReactiveRecord::Engine => '/rr'
3
+ mount HyperMesh::Engine => '/rr'
4
4
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
5
5
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: b3ae3981b1aa18eb7a7a0fe2b78a8ce8e35ebd4fa236f4cfc452e1de7b6485fdad0ac30387d63806f4fd32f93319f1020f0247f7df39f5db8bbb869164c4b553
14
+ secret_key_base: ee1aa7002f86244721981841f0ffcf089cf11bd102dd10067c33c80472070a64e7ef116f267d93e9226de18842f946eb537949e1e0b94235bd8c952c34e80cc4
15
15
 
16
16
  test:
17
- secret_key_base: 72a9b14584fc3ad3fc2876c12311f716470bd8c9c58ce21a0f602864965754cc459f39e2200cbed57a71615a95b45e2534213e532d11253366c6d60ecf7bf4da
17
+ secret_key_base: 2f38b435308d899cffff6653e5d4778d886f94ac1fa33cd04d9f99d43a306e7051f2f1abe236c6f04d5c114c90c3d0007b5958e4f8af7ec467221a82e4f59c09
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -0,0 +1,9 @@
1
+ class CreateWords < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :words do |t|
4
+ t.string :text
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -10,7 +10,20 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20161013220135) do
13
+ ActiveRecord::Schema.define(version: 20161114213840) do
14
+
15
+ create_table "synchromesh_connections", force: :cascade do |t|
16
+ t.string "channel"
17
+ t.string "session"
18
+ t.datetime "created_at"
19
+ t.datetime "expires_at"
20
+ t.datetime "refresh_at"
21
+ end
22
+
23
+ create_table "synchromesh_queued_messages", force: :cascade do |t|
24
+ t.text "data"
25
+ t.integer "connection_id"
26
+ end
14
27
 
15
28
  create_table "words", force: :cascade do |t|
16
29
  t.string "text"
@@ -1,3 +1,3 @@
1
1
  module Hypermesh
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -155,6 +155,8 @@ module ReactiveRecord
155
155
 
156
156
  alias inspect to_s
157
157
 
158
+ `#{self}.$$proto.toString = #{Object}.$$proto.toString`
159
+
158
160
  def to_f
159
161
  notify
160
162
  return @object.to_f if @object
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+ require 'synchromesh/integration/test_components'
3
+ require 'reactive_record/factory'
4
+ require 'rspec-steps'
5
+
6
+ RSpec::Steps.steps 'DummyValue', js: true do
7
+ before(:step) do
8
+ # spec_helper resets the policy system after each test so we have to setup
9
+ # before each test
10
+ # stub_const 'TestApplication', Class.new
11
+ # stub_const 'TestApplicationPolicy', Class.new
12
+ # TestApplicationPolicy.class_eval do
13
+ # always_allow_connection
14
+ # regulate_all_broadcasts { |policy| policy.send_all }
15
+ # allow_change(to: :all, on: [:create, :update, :destroy]) { true }
16
+ # end
17
+ size_window(:small, :portrait)
18
+ end
19
+
20
+ it 'works with string interpolation (defines a JS .toString method)' do
21
+ expect_evaluate_ruby do
22
+ column_hash = { default: 'foo', sql_type_metadata: { type: 'text' } }
23
+ "value = #{ReactiveRecord::Base::DummyValue.new(column_hash)}"
24
+ end.to eq('value = foo')
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyper-mesh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch VanDuyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-14 00:00:00.000000000 Z
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -598,6 +598,7 @@ files:
598
598
  - codeship.database.yml
599
599
  - config/routes.rb
600
600
  - docs/action_cable_quickstart.md
601
+ - docs/activerecord_api.md
601
602
  - docs/authorization-policies.md
602
603
  - docs/client_side_scoping.md
603
604
  - docs/configuration_details.md
@@ -612,11 +613,17 @@ files:
612
613
  - examples/action-cable/README.md
613
614
  - examples/action-cable/Rakefile
614
615
  - examples/action-cable/app/assets/config/manifest.js
616
+ - examples/action-cable/app/assets/images/.keep
615
617
  - examples/action-cable/app/assets/javascripts/application.js
618
+ - examples/action-cable/app/assets/javascripts/cable.js
619
+ - examples/action-cable/app/assets/javascripts/channels/.keep
616
620
  - examples/action-cable/app/assets/stylesheets/application.css
621
+ - examples/action-cable/app/channels/application_cable/channel.rb
622
+ - examples/action-cable/app/channels/application_cable/connection.rb
617
623
  - examples/action-cable/app/controllers/application_controller.rb
618
624
  - examples/action-cable/app/controllers/test_controller.rb
619
625
  - examples/action-cable/app/models/models.rb
626
+ - examples/action-cable/app/models/public/.keep
620
627
  - examples/action-cable/app/models/public/application_record.rb
621
628
  - examples/action-cable/app/models/public/word.rb
622
629
  - examples/action-cable/app/policies/application_policy.rb
@@ -645,19 +652,22 @@ files:
645
652
  - examples/action-cable/config/initializers/backtrace_silencers.rb
646
653
  - examples/action-cable/config/initializers/cookies_serializer.rb
647
654
  - examples/action-cable/config/initializers/filter_parameter_logging.rb
655
+ - examples/action-cable/config/initializers/hyper_mesh.rb
648
656
  - examples/action-cable/config/initializers/inflections.rb
649
657
  - examples/action-cable/config/initializers/mime_types.rb
650
658
  - examples/action-cable/config/initializers/new_framework_defaults.rb
651
659
  - examples/action-cable/config/initializers/session_store.rb
652
- - examples/action-cable/config/initializers/synchromesh.rb
653
660
  - examples/action-cable/config/initializers/wrap_parameters.rb
654
661
  - examples/action-cable/config/locales/en.yml
655
662
  - examples/action-cable/config/puma.rb
656
663
  - examples/action-cable/config/routes.rb
657
664
  - examples/action-cable/config/secrets.yml
658
665
  - examples/action-cable/config/spring.rb
659
- - examples/action-cable/db/migrate/20160921223808_create_words.rb
666
+ - examples/action-cable/db/migrate/20161114213840_create_words.rb
660
667
  - examples/action-cable/db/schema.rb
668
+ - examples/action-cable/db/seeds.rb
669
+ - examples/action-cable/lib/assets/.keep
670
+ - examples/action-cable/lib/tasks/.keep
661
671
  - examples/action-cable/log/.keep
662
672
  - examples/action-cable/public/404.html
663
673
  - examples/action-cable/public/422.html
@@ -666,10 +676,173 @@ files:
666
676
  - examples/action-cable/public/apple-touch-icon.png
667
677
  - examples/action-cable/public/favicon.ico
668
678
  - examples/action-cable/public/robots.txt
669
- - examples/action-cable/rails_cache_dir2/C91/480/synchromesh_active_connections
679
+ - examples/action-cable/test/controllers/.keep
680
+ - examples/action-cable/test/fixtures/.keep
681
+ - examples/action-cable/test/fixtures/files/.keep
682
+ - examples/action-cable/test/fixtures/words.yml
683
+ - examples/action-cable/test/helpers/.keep
684
+ - examples/action-cable/test/integration/.keep
685
+ - examples/action-cable/test/mailers/.keep
686
+ - examples/action-cable/test/models/.keep
687
+ - examples/action-cable/test/models/word_test.rb
688
+ - examples/action-cable/test/test_helper.rb
670
689
  - examples/action-cable/tmp/.keep
671
690
  - examples/action-cable/vendor/assets/javascripts/.keep
672
691
  - examples/action-cable/vendor/assets/stylesheets/.keep
692
+ - examples/pusher-fake/.gitignore
693
+ - examples/pusher-fake/Gemfile
694
+ - examples/pusher-fake/Gemfile.lock
695
+ - examples/pusher-fake/README.md
696
+ - examples/pusher-fake/Rakefile
697
+ - examples/pusher-fake/app/assets/config/manifest.js
698
+ - examples/pusher-fake/app/assets/images/.keep
699
+ - examples/pusher-fake/app/assets/javascripts/application.js
700
+ - examples/pusher-fake/app/assets/stylesheets/application.css
701
+ - examples/pusher-fake/app/controllers/application_controller.rb
702
+ - examples/pusher-fake/app/controllers/test_controller.rb
703
+ - examples/pusher-fake/app/models/models.rb
704
+ - examples/pusher-fake/app/models/public/.keep
705
+ - examples/pusher-fake/app/models/public/application_record.rb
706
+ - examples/pusher-fake/app/models/public/word.rb
707
+ - examples/pusher-fake/app/policies/application_policy.rb
708
+ - examples/pusher-fake/app/views/components.rb
709
+ - examples/pusher-fake/app/views/components/app.rb
710
+ - examples/pusher-fake/app/views/layouts/application.html.erb
711
+ - examples/pusher-fake/app/views/layouts/mailer.html.erb
712
+ - examples/pusher-fake/app/views/layouts/mailer.text.erb
713
+ - examples/pusher-fake/bin/bundle
714
+ - examples/pusher-fake/bin/rails
715
+ - examples/pusher-fake/bin/rake
716
+ - examples/pusher-fake/bin/setup
717
+ - examples/pusher-fake/bin/spring
718
+ - examples/pusher-fake/bin/update
719
+ - examples/pusher-fake/config.ru
720
+ - examples/pusher-fake/config/application.rb
721
+ - examples/pusher-fake/config/boot.rb
722
+ - examples/pusher-fake/config/database.yml
723
+ - examples/pusher-fake/config/environment.rb
724
+ - examples/pusher-fake/config/environments/development.rb
725
+ - examples/pusher-fake/config/environments/production.rb
726
+ - examples/pusher-fake/config/environments/test.rb
727
+ - examples/pusher-fake/config/initializers/application_controller_renderer.rb
728
+ - examples/pusher-fake/config/initializers/assets.rb
729
+ - examples/pusher-fake/config/initializers/backtrace_silencers.rb
730
+ - examples/pusher-fake/config/initializers/cookies_serializer.rb
731
+ - examples/pusher-fake/config/initializers/filter_parameter_logging.rb
732
+ - examples/pusher-fake/config/initializers/hyper_mesh.rb
733
+ - examples/pusher-fake/config/initializers/inflections.rb
734
+ - examples/pusher-fake/config/initializers/mime_types.rb
735
+ - examples/pusher-fake/config/initializers/new_framework_defaults.rb
736
+ - examples/pusher-fake/config/initializers/session_store.rb
737
+ - examples/pusher-fake/config/initializers/wrap_parameters.rb
738
+ - examples/pusher-fake/config/locales/en.yml
739
+ - examples/pusher-fake/config/puma.rb
740
+ - examples/pusher-fake/config/routes.rb
741
+ - examples/pusher-fake/config/secrets.yml
742
+ - examples/pusher-fake/config/spring.rb
743
+ - examples/pusher-fake/db/migrate/20161114213840_create_words.rb
744
+ - examples/pusher-fake/db/schema.rb
745
+ - examples/pusher-fake/db/seeds.rb
746
+ - examples/pusher-fake/lib/assets/.keep
747
+ - examples/pusher-fake/lib/tasks/.keep
748
+ - examples/pusher-fake/log/.keep
749
+ - examples/pusher-fake/public/404.html
750
+ - examples/pusher-fake/public/422.html
751
+ - examples/pusher-fake/public/500.html
752
+ - examples/pusher-fake/public/apple-touch-icon-precomposed.png
753
+ - examples/pusher-fake/public/apple-touch-icon.png
754
+ - examples/pusher-fake/public/favicon.ico
755
+ - examples/pusher-fake/public/robots.txt
756
+ - examples/pusher-fake/test/controllers/.keep
757
+ - examples/pusher-fake/test/fixtures/.keep
758
+ - examples/pusher-fake/test/fixtures/files/.keep
759
+ - examples/pusher-fake/test/fixtures/words.yml
760
+ - examples/pusher-fake/test/helpers/.keep
761
+ - examples/pusher-fake/test/integration/.keep
762
+ - examples/pusher-fake/test/mailers/.keep
763
+ - examples/pusher-fake/test/models/.keep
764
+ - examples/pusher-fake/test/models/word_test.rb
765
+ - examples/pusher-fake/test/test_helper.rb
766
+ - examples/pusher-fake/tmp/.keep
767
+ - examples/pusher-fake/vendor/assets/javascripts/.keep
768
+ - examples/pusher-fake/vendor/assets/stylesheets/.keep
769
+ - examples/pusher/.gitignore
770
+ - examples/pusher/Gemfile
771
+ - examples/pusher/Gemfile.lock
772
+ - examples/pusher/README.md
773
+ - examples/pusher/Rakefile
774
+ - examples/pusher/app/assets/config/manifest.js
775
+ - examples/pusher/app/assets/images/.keep
776
+ - examples/pusher/app/assets/javascripts/application.js
777
+ - examples/pusher/app/assets/stylesheets/application.css
778
+ - examples/pusher/app/controllers/application_controller.rb
779
+ - examples/pusher/app/controllers/test_controller.rb
780
+ - examples/pusher/app/models/models.rb
781
+ - examples/pusher/app/models/public/.keep
782
+ - examples/pusher/app/models/public/application_record.rb
783
+ - examples/pusher/app/models/public/word.rb
784
+ - examples/pusher/app/policies/application_policy.rb
785
+ - examples/pusher/app/views/components.rb
786
+ - examples/pusher/app/views/components/app.rb
787
+ - examples/pusher/app/views/layouts/application.html.erb
788
+ - examples/pusher/app/views/layouts/mailer.html.erb
789
+ - examples/pusher/app/views/layouts/mailer.text.erb
790
+ - examples/pusher/bin/bundle
791
+ - examples/pusher/bin/rails
792
+ - examples/pusher/bin/rake
793
+ - examples/pusher/bin/setup
794
+ - examples/pusher/bin/spring
795
+ - examples/pusher/bin/update
796
+ - examples/pusher/config.ru
797
+ - examples/pusher/config/application.rb
798
+ - examples/pusher/config/boot.rb
799
+ - examples/pusher/config/database.yml
800
+ - examples/pusher/config/environment.rb
801
+ - examples/pusher/config/environments/development.rb
802
+ - examples/pusher/config/environments/production.rb
803
+ - examples/pusher/config/environments/test.rb
804
+ - examples/pusher/config/initializers/application_controller_renderer.rb
805
+ - examples/pusher/config/initializers/assets.rb
806
+ - examples/pusher/config/initializers/backtrace_silencers.rb
807
+ - examples/pusher/config/initializers/cookies_serializer.rb
808
+ - examples/pusher/config/initializers/filter_parameter_logging.rb
809
+ - examples/pusher/config/initializers/hyper_mesh.rb
810
+ - examples/pusher/config/initializers/inflections.rb
811
+ - examples/pusher/config/initializers/mime_types.rb
812
+ - examples/pusher/config/initializers/new_framework_defaults.rb
813
+ - examples/pusher/config/initializers/session_store.rb
814
+ - examples/pusher/config/initializers/wrap_parameters.rb
815
+ - examples/pusher/config/locales/en.yml
816
+ - examples/pusher/config/puma.rb
817
+ - examples/pusher/config/routes.rb
818
+ - examples/pusher/config/secrets.yml
819
+ - examples/pusher/config/spring.rb
820
+ - examples/pusher/db/migrate/20161114213840_create_words.rb
821
+ - examples/pusher/db/schema.rb
822
+ - examples/pusher/db/seeds.rb
823
+ - examples/pusher/lib/assets/.keep
824
+ - examples/pusher/lib/tasks/.keep
825
+ - examples/pusher/log/.keep
826
+ - examples/pusher/public/404.html
827
+ - examples/pusher/public/422.html
828
+ - examples/pusher/public/500.html
829
+ - examples/pusher/public/apple-touch-icon-precomposed.png
830
+ - examples/pusher/public/apple-touch-icon.png
831
+ - examples/pusher/public/favicon.ico
832
+ - examples/pusher/public/robots.txt
833
+ - examples/pusher/test/controllers/.keep
834
+ - examples/pusher/test/fixtures/.keep
835
+ - examples/pusher/test/fixtures/files/.keep
836
+ - examples/pusher/test/fixtures/words.yml
837
+ - examples/pusher/test/helpers/.keep
838
+ - examples/pusher/test/integration/.keep
839
+ - examples/pusher/test/mailers/.keep
840
+ - examples/pusher/test/models/.keep
841
+ - examples/pusher/test/models/word_test.rb
842
+ - examples/pusher/test/test_helper.rb
843
+ - examples/pusher/tmp/.keep
844
+ - examples/pusher/vendor/assets/javascripts/.keep
845
+ - examples/pusher/vendor/assets/stylesheets/.keep
673
846
  - examples/simple-poller/.gitignore
674
847
  - examples/simple-poller/Gemfile
675
848
  - examples/simple-poller/Gemfile.lock
@@ -678,24 +851,15 @@ files:
678
851
  - examples/simple-poller/app/assets/config/manifest.js
679
852
  - examples/simple-poller/app/assets/images/.keep
680
853
  - examples/simple-poller/app/assets/javascripts/application.js
681
- - examples/simple-poller/app/assets/javascripts/channels/.keep
682
854
  - examples/simple-poller/app/assets/stylesheets/application.css
683
- - examples/simple-poller/app/channels/application_cable/channel.rb
684
- - examples/simple-poller/app/channels/application_cable/connection.rb
685
855
  - examples/simple-poller/app/controllers/application_controller.rb
686
- - examples/simple-poller/app/controllers/concerns/.keep
687
856
  - examples/simple-poller/app/controllers/test_controller.rb
688
- - examples/simple-poller/app/helpers/application_helper.rb
689
- - examples/simple-poller/app/jobs/application_job.rb
690
- - examples/simple-poller/app/mailers/application_mailer.rb
691
- - examples/simple-poller/app/models/concerns/.keep
692
857
  - examples/simple-poller/app/models/models.rb
693
858
  - examples/simple-poller/app/models/public/.keep
694
859
  - examples/simple-poller/app/models/public/application_record.rb
695
860
  - examples/simple-poller/app/models/public/word.rb
696
861
  - examples/simple-poller/app/policies/application_policy.rb
697
862
  - examples/simple-poller/app/views/components.rb
698
- - examples/simple-poller/app/views/components/.keep
699
863
  - examples/simple-poller/app/views/components/app.rb
700
864
  - examples/simple-poller/app/views/layouts/application.html.erb
701
865
  - examples/simple-poller/app/views/layouts/mailer.html.erb
@@ -709,7 +873,6 @@ files:
709
873
  - examples/simple-poller/config.ru
710
874
  - examples/simple-poller/config/application.rb
711
875
  - examples/simple-poller/config/boot.rb
712
- - examples/simple-poller/config/cable.yml
713
876
  - examples/simple-poller/config/database.yml
714
877
  - examples/simple-poller/config/environment.rb
715
878
  - examples/simple-poller/config/environments/development.rb
@@ -720,18 +883,18 @@ files:
720
883
  - examples/simple-poller/config/initializers/backtrace_silencers.rb
721
884
  - examples/simple-poller/config/initializers/cookies_serializer.rb
722
885
  - examples/simple-poller/config/initializers/filter_parameter_logging.rb
886
+ - examples/simple-poller/config/initializers/hyper_mesh.rb
723
887
  - examples/simple-poller/config/initializers/inflections.rb
724
888
  - examples/simple-poller/config/initializers/mime_types.rb
725
889
  - examples/simple-poller/config/initializers/new_framework_defaults.rb
726
890
  - examples/simple-poller/config/initializers/session_store.rb
727
- - examples/simple-poller/config/initializers/synchromesh.rb
728
891
  - examples/simple-poller/config/initializers/wrap_parameters.rb
729
892
  - examples/simple-poller/config/locales/en.yml
730
893
  - examples/simple-poller/config/puma.rb
731
894
  - examples/simple-poller/config/routes.rb
732
895
  - examples/simple-poller/config/secrets.yml
733
896
  - examples/simple-poller/config/spring.rb
734
- - examples/simple-poller/db/migrate/20161013220135_create_words.rb
897
+ - examples/simple-poller/db/migrate/20161114213840_create_words.rb
735
898
  - examples/simple-poller/db/schema.rb
736
899
  - examples/simple-poller/db/seeds.rb
737
900
  - examples/simple-poller/lib/assets/.keep
@@ -820,7 +983,6 @@ files:
820
983
  - examples/words/tmp/.keep
821
984
  - examples/words/vendor/assets/javascripts/.keep
822
985
  - examples/words/vendor/assets/stylesheets/.keep
823
- - hyper-mesh-0.4.0.gem
824
986
  - hyper-mesh.gemspec
825
987
  - lib/active_record_base.rb
826
988
  - lib/enumerable/pluck.rb
@@ -971,7 +1133,6 @@ files:
971
1133
  - spec/spec_helper.rb
972
1134
  - spec/support/component_helpers.rb
973
1135
  - spec/synchromesh/column_types/column_type_spec.rb
974
- - spec/synchromesh/connection_spec.rb
975
1136
  - spec/synchromesh/crud_access_regulation/broadcast_controls_access_spec.rb
976
1137
  - spec/synchromesh/crud_access_regulation/model_policies_spec.rb
977
1138
  - spec/synchromesh/examples/dictionary.rb
@@ -993,6 +1154,8 @@ files:
993
1154
  - spec/synchromesh/policies/regulate_broadcast_spec.rb
994
1155
  - spec/synchromesh/policies/regulate_class_connection_spec.rb
995
1156
  - spec/synchromesh/policies/regulate_instance_connection_spec.rb
1157
+ - spec/synchromesh/unit_tests/connection_spec.rb
1158
+ - spec/synchromesh/unit_tests/dummy_value_spec.rb
996
1159
  - spec/test_app/Gemfile
997
1160
  - spec/test_app/Gemfile.lock
998
1161
  - spec/test_app/Rakefile
@@ -1097,7 +1260,6 @@ test_files:
1097
1260
  - spec/spec_helper.rb
1098
1261
  - spec/support/component_helpers.rb
1099
1262
  - spec/synchromesh/column_types/column_type_spec.rb
1100
- - spec/synchromesh/connection_spec.rb
1101
1263
  - spec/synchromesh/crud_access_regulation/broadcast_controls_access_spec.rb
1102
1264
  - spec/synchromesh/crud_access_regulation/model_policies_spec.rb
1103
1265
  - spec/synchromesh/examples/dictionary.rb
@@ -1119,6 +1281,8 @@ test_files:
1119
1281
  - spec/synchromesh/policies/regulate_broadcast_spec.rb
1120
1282
  - spec/synchromesh/policies/regulate_class_connection_spec.rb
1121
1283
  - spec/synchromesh/policies/regulate_instance_connection_spec.rb
1284
+ - spec/synchromesh/unit_tests/connection_spec.rb
1285
+ - spec/synchromesh/unit_tests/dummy_value_spec.rb
1122
1286
  - spec/test_app/Gemfile
1123
1287
  - spec/test_app/Gemfile.lock
1124
1288
  - spec/test_app/Rakefile