collab 0.2.1 → 0.2.2

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: c3f3f1936db40a7ef5a4e74cd9d1f1e691440d385aaf1414b8bc0af99e8dd06d
4
- data.tar.gz: 44c4468e3fbce3c218562a9a9278242a5b6776317b9065fbc6a8a5d88341d0e3
3
+ metadata.gz: 4f8a71ae9b78062335060274fe354cfe2af0dadd83efe5c23509148d4121b4b2
4
+ data.tar.gz: dc1aaa0904bad425bb9f8ec101ec6f760ea64325380ec03a99b1b50194e9072d
5
5
  SHA512:
6
- metadata.gz: 06133afa987cb5d34990f8f0ba82bd7f55fb693c1f47aab9280d13f7c511acdb2b8d64b1b3bfc3e1cb4db0b4eeb948d93caefce28c4aba99c87666d4df94599e
7
- data.tar.gz: 2b8d25e17ca7a08c5e175a75718d8ba758f86db94fc19e58072c886419c308ff059e9fb2370d293201e2af8a98a12d16ca7f3f63d52f7c7c848c376e3d503431
6
+ metadata.gz: 47b8fd7d8996d1b7a417850c88c6c25fe985e02bb71e4e4783f5e36e5758c556295de77a64ac4035282598578dc26c3977e7a7f555811940b4a0e4f8c9423997
7
+ data.tar.gz: 5c2ca0065053132e5348392fca773696700bc326436bdac01aa22b8091734701544dcbbba52456c7f092d7dbf4204a7d077c8326c8ec256d70e459dcc582e2c4
@@ -1,4 +1,4 @@
1
- require "collab/railtie"
1
+ require "collab/engine"
2
2
 
3
3
  module Collab
4
4
  def self.config
@@ -0,0 +1,4 @@
1
+ module Collab
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Collab
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -13,7 +13,7 @@ class CollabDocumentChannel < ApplicationCable::Channel
13
13
 
14
14
  # Called when a client submits a transaction in order to update a document
15
15
  # You should throw an error if unauthorized
16
- def authorize_submit!
16
+ def authorize_submit!(data)
17
17
  raise "authorization failed"
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: collab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Aubin
@@ -57,11 +57,11 @@ files:
57
57
  - lib/collab/bridge.rb
58
58
  - lib/collab/channel.rb
59
59
  - lib/collab/config.rb
60
+ - lib/collab/engine.rb
60
61
  - lib/collab/has_collaborative_document.rb
61
62
  - lib/collab/models/base.rb
62
63
  - lib/collab/models/document.rb
63
64
  - lib/collab/models/document_transaction.rb
64
- - lib/collab/railtie.rb
65
65
  - lib/collab/version.rb
66
66
  - lib/generators/collab/install/install_generator.rb
67
67
  - lib/generators/collab/install/templates/channel.rb
@@ -1,4 +0,0 @@
1
- module Collab
2
- class Railtie < ::Rails::Railtie
3
- end
4
- end