pakyow-realtime 1.0.0.rc3 → 1.0.0.rc4

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: deaf1ebc4f5c130f298135f2bdee748c2caa77c13ea323ffcb9ad16c2d1d152c
4
- data.tar.gz: 0b5f04f9f51dc00c12c56dc203f1d0acb443405046936785e9d6322145eb5795
3
+ metadata.gz: 17a07567829de4b1d3c1c1d8afe005a28e354344cb6482c8dbf66a0d1f72a1a8
4
+ data.tar.gz: 88ac5f561113617c600cb7edc0c70ad8454e7e94e90fc87eac4c4142a45561c2
5
5
  SHA512:
6
- metadata.gz: 6e9f89d4158082e3820765a295412e1ccb97d2ecab1aaae81e56cb9d042665b8d33b5a82dd491c6b087ad8f9733908a4d09d9f8e269af37d31662788e189bc8b
7
- data.tar.gz: 3986ce47e2cb77b9be538ad3c3da7a7d70640227c6572aafe0bb0aa8d425d40c260151cf08922958a9e0c5de98ac6a7e15ae3f81b61963eae05c5f61389b61f7
6
+ metadata.gz: 3ce9e7e00b7760a221e235f3799a07d14d7600a42b8d0826a50dd2725d1d0a14d1623df109b8f9ac6a075b1ddfbd02638034b273fbfca16674cbba86c4ac87c0
7
+ data.tar.gz: 1c5e0be97eb0816c0182fe37cae58754d55cfcc04bc1f8278d8054ed651aa21fe333ce3d2d6c7f91a5a3cdcd87cc4d8bd0daf97d27a8f6485389550326e64903
@@ -35,6 +35,7 @@ module Pakyow
35
35
 
36
36
  def shutdown
37
37
  disconnect
38
+ @sockets.each(&:shutdown)
38
39
  @executor.shutdown
39
40
  @executor.wait_for_termination(30)
40
41
  end
@@ -80,13 +80,6 @@ module Pakyow
80
80
  transmit("beat")
81
81
  end
82
82
 
83
- # @api private
84
- def leave
85
- trigger_presence(:leave)
86
- end
87
-
88
- private
89
-
90
83
  def shutdown
91
84
  if open?
92
85
  @server.socket_disconnect(self)
@@ -95,6 +88,13 @@ module Pakyow
95
88
  end
96
89
  end
97
90
 
91
+ # @api private
92
+ def leave
93
+ trigger_presence(:leave)
94
+ end
95
+
96
+ private
97
+
98
98
  def handle_open
99
99
  @server.socket_connect(self)
100
100
  @open = true
@@ -104,7 +104,9 @@ module Pakyow
104
104
  end
105
105
 
106
106
  def handle_message(message)
107
- @logger.internal("< " + message)
107
+ @logger.internal {
108
+ "< " + message
109
+ }
108
110
  end
109
111
 
110
112
  def trigger_presence(event)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pakyow-realtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc3
4
+ version: 1.0.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Powell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-09 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pakyow-core
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc3
19
+ version: 1.0.0.rc4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.rc3
26
+ version: 1.0.0.rc4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pakyow-presenter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0.rc3
33
+ version: 1.0.0.rc4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.0.rc3
40
+ version: 1.0.0.rc4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pakyow-routing
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0.rc3
47
+ version: 1.0.0.rc4
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0.rc3
54
+ version: 1.0.0.rc4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pakyow-support
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.0.rc3
61
+ version: 1.0.0.rc4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.0.rc3
68
+ version: 1.0.0.rc4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: async-websocket
71
71
  requirement: !ruby/object:Gem::Requirement