wwl-websocket-rails 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +26 -9
- data/lib/websocket_rails/version.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0431596649f89fa94c70d26e11cae078271a552d
|
4
|
+
data.tar.gz: d5c5097e33354a252caf1ff46137bb3b20e42b45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 101f1861d7c9b1ed9fada1223bbcbf6a5117aa586fbfeac412336333a1bf3df10854c5d7d4257c5d09f27f9994ec2cf2dc1ffcb31fcb9bd01ba3600823a05b47
|
7
|
+
data.tar.gz: 88b8606abef3b425ad461b1ac23efd563cce316bfaeece437399638796d685d0831f4d9962b1269d7bc16b8275064c58585672bd7e013eb15aff1ae3d69619f6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,26 @@
|
|
1
1
|
# Websocket-Rails
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
4
|
-
[![Gem Version](https://badge.fury.io/rb/websocket-rails.png)](http://badge.fury.io/rb/websocket-rails)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/
|
3
|
+
[![Build Status](https://travis-ci.org/wonderweblabs/websocket-rails.png?branch=master)](https://travis-ci.org/wonderweblabs/websocket-rails)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/wwl-websocket-rails.png)](http://badge.fury.io/rb/wwl-websocket-rails)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/wonderweblabs/websocket-rails.png)](https://codeclimate.com/github/websocket-rails/websocket-rails)
|
6
6
|
|
7
|
+
This gem is a fork from [websocket-rails](https://github.com/websocket-rails/websocket-rails).
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
### Installation
|
12
|
+
|
13
|
+
Require in your Gemfile:
|
14
|
+
|
15
|
+
```bash
|
16
|
+
gem 'wwl-websocket-rails', '~> 0.7.2'
|
17
|
+
```
|
18
|
+
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
|
23
|
+
**Original content from websocket-rails with small changes**
|
7
24
|
|
8
25
|
If you haven't done so yet, check out the [Project
|
9
26
|
Page](http://websocket-rails.github.io) to get a feel for the project direction. Feedback is very much appreciated. Post an issue on the issue tracker or [shoot us an email](mailto:support@threedotloft.com) to give us your thoughts.
|
@@ -53,13 +70,13 @@ Map events to controller actions using an Event Router.
|
|
53
70
|
````ruby
|
54
71
|
WebsocketRails::EventMap.describe do
|
55
72
|
namespace :tasks do
|
56
|
-
|
73
|
+
|
57
74
|
# using a Hash to specify the target
|
58
75
|
subscribe :create, :to => TaskController, :with_method => :create
|
59
|
-
|
76
|
+
|
60
77
|
# using the same syntax as routes.rb
|
61
78
|
subscribe :update, 'task#update'
|
62
|
-
|
79
|
+
|
63
80
|
# if your controller is not a top-level object
|
64
81
|
subscribe :create_admin, :to => Admin::TaskController, :with_method => :create
|
65
82
|
|
@@ -188,7 +205,7 @@ WebsocketRails[:posts].trigger 'new', latest_post
|
|
188
205
|
## Private Channel Support
|
189
206
|
|
190
207
|
Need to restrict access to a particular channel? No problem. We've got
|
191
|
-
that.
|
208
|
+
that.
|
192
209
|
|
193
210
|
Private channels give you the ability to authorize a user's
|
194
211
|
subscription using the authorization mechanism of your choice.
|
@@ -199,11 +216,11 @@ Then handle the channel authorization by subscribing to the `websocket_rails.sub
|
|
199
216
|
````ruby
|
200
217
|
WebsocketRails::EventMap.describe do
|
201
218
|
private_channel :secret_posts
|
202
|
-
|
219
|
+
|
203
220
|
namespace :websocket_rails
|
204
221
|
subscribe :subscribe_private, :to => AuthorizationController, :with_method => :authorize_channels
|
205
222
|
end
|
206
|
-
````
|
223
|
+
````
|
207
224
|
|
208
225
|
Or you can always mark any channel as private later on.
|
209
226
|
|
metadata
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wwl-websocket-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
- Three Dot Loft LLC
|
7
|
+
- Alexander Schrot
|
8
|
+
- Sascha Hillig
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
@@ -166,9 +165,10 @@ dependencies:
|
|
166
165
|
- - ">="
|
167
166
|
- !ruby/object:Gem::Version
|
168
167
|
version: '0'
|
169
|
-
description: Seamless Ruby on Rails websocket integration.
|
168
|
+
description: Seamless Ruby on Rails websocket integration. Forked from websocket-rails
|
169
|
+
by wonderweblabs.
|
170
170
|
email:
|
171
|
-
-
|
171
|
+
- email@wonderweblabs.com
|
172
172
|
executables:
|
173
173
|
- thin-socketrails
|
174
174
|
extensions: []
|
@@ -292,11 +292,11 @@ files:
|
|
292
292
|
- spec/unit/synchronization_spec.rb
|
293
293
|
- spec/unit/target_validator_spec.rb
|
294
294
|
- spec/unit/user_manager_spec.rb
|
295
|
-
homepage:
|
295
|
+
homepage: https://github.com/wonderweblabs/websocket-rails
|
296
296
|
licenses:
|
297
297
|
- MIT
|
298
298
|
metadata: {}
|
299
|
-
post_install_message: Welcome to WebsocketRails v0.7.
|
299
|
+
post_install_message: Welcome to WebsocketRails v0.7.2!
|
300
300
|
rdoc_options: []
|
301
301
|
require_paths:
|
302
302
|
- lib
|
@@ -316,5 +316,6 @@ rubygems_version: 2.2.2
|
|
316
316
|
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: Plug and play websocket support for ruby on rails. Includes event router
|
319
|
-
for mapping javascript events to controller actions.
|
319
|
+
for mapping javascript events to controller actions. Forked from websocket-rails
|
320
|
+
by wonderweblabs.
|
320
321
|
test_files: []
|