opal-phoenix 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 14182af3573c1c320f20812eeb4218b3992dce76
4
- data.tar.gz: 0392ca37fb6c10f395207260aa4cd8298147b5c3
3
+ metadata.gz: 8c26feb52c3a27d3bb723b42bb51a727e8d050ca
4
+ data.tar.gz: 8d9ddacdbc1be2f9369e53e038fe0c1db9d2565b
5
5
  SHA512:
6
- metadata.gz: 059793cded3808cdccfc672ef41ee1fc7e1a2fedb40722e381a73e9b3bcfd8cf18cc6fe8be0f4e687821a79ac2c245d13edf247fbf7aeb6c92662b915187d16c
7
- data.tar.gz: f7a28a3cb85d4d25cc98a107bf1c414bdc6cdce08106990a6f00d525157eee1e8654aa2174108da6ec511d98f24518e8db05743c8364edb09997b0928d660fe1
6
+ metadata.gz: 09c0823a5cb69aa81d9065cc01dcba3749adc5b3b8b954438effb56f77e6d222b49683ce37efa737be87061af79baae5d2e1007a0d447b2b80e0ac12aa0ef7b0
7
+ data.tar.gz: 637f489583d0ae58458f5c360cc2b6cdf414a8b48f4da38f039c511ac77f4aec318ef32666d3e276c1d03ac8be8012866c8a2eb5c5833a58cd4688169dd1e570
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Michał Kalbarczyk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -23,7 +23,7 @@ gem 'opal-phoenix'
23
23
  require 'phoenix'
24
24
 
25
25
  # setup socket
26
- socket = Phoenix::Socket.new('ws://localhost:4000/ws')
26
+ socket = Phoenix::Socket.new('ws://localhost:4000/ws', params: {some: 'param'})
27
27
 
28
28
  socket.on_error do
29
29
  $console.log 'socket error!'
@@ -37,7 +37,7 @@ end
37
37
  socket.connect
38
38
 
39
39
  # setup channel
40
- channel = socket.channel('lobby', params: {asd: 'xcvxcv'})
40
+ channel = socket.channel('lobby', other: 'param')
41
41
 
42
42
  channel.on_error do
43
43
  $console.log 'channel error!'
data/opal-phoenix.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opal-phoenix'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.authors = ['Michał Kalbarczyk']
5
5
  s.email = 'fazibear@gmail.com'
6
6
  s.homepage = 'http://github.com/fazibear/opal-phoenix'
@@ -8,7 +8,7 @@ module Phoenix
8
8
  super(`new Phoenix.Socket(#{url.to_s}, #{params.to_n})`)
9
9
  end
10
10
 
11
- def channel(topic, *params)
11
+ def channel(topic, params)
12
12
  chan = Channel.new(topic, params, @native)
13
13
  `#{@native}.channels.push(#{chan.to_n})`
14
14
  chan
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-phoenix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Kalbarczyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -47,6 +47,7 @@ files:
47
47
  - ".codeclimate.yml"
48
48
  - ".gitignore"
49
49
  - Gemfile
50
+ - LICENSE.md
50
51
  - README.md
51
52
  - Rakefile
52
53
  - lib/opal-phoenix.rb