sleeproom 0.9.0.pre1 → 0.9.0.pre3

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: 1164a0ff4adcb7d05b1a089972e1d895a10a334eb0d42be870a13198efbeec65
4
- data.tar.gz: a22e22bc58e4db57da69b233d81026f6449645a4755a93c2353cb40430ab3ad9
3
+ metadata.gz: 956fca834c6e55be44ea2a98e8f60bde9b8237854a73aeb5dad33712460496a4
4
+ data.tar.gz: fbb1e1d569efb7fc8529f9ddbcd1bdb49e5f636b95b178d33500d77cad086351
5
5
  SHA512:
6
- metadata.gz: 2999e46c33eaf5eed3fe5687e7815f74fcf0b0b702a9fc25113f10234c4d8e2d54d4023d460e7fb54a1f84a02b266c3d3f27dfb823ec0e16a0db2292ae6e8dad
7
- data.tar.gz: 284d500d464e090b83dc7d72a4e1ed1e6db3322095e60f93e079359a0c25a8cef12804b3c9eb3f3a0a7a6fd45aaf32dbd684b03284eacd3317cbb33df367e968
6
+ metadata.gz: df00d43f3f15ae510ad531b1b4a2d36e1fe8d3d0cfacbc0b103dfdbfa1dc31b6fdb8a809e938fce0a6c5525a7013981ef93d4ddb091ec2bf9c0d03a0c5778949
7
+ data.tar.gz: 9440f9cc2465eb1adbc9e02ffebf26475c253b1ccec6ac3175812a27edff622eefdf6b2189848f9085e0677ee056490810cb89e7ec5681e2062a4ec91b4fd6ea
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sleeproom (0.9.0.pre1)
4
+ sleeproom (0.9.0.pre3)
5
5
  async (~> 1.26.0)
6
6
  async-http-faraday (~> 0.9.0)
7
7
  async-websocket (~> 0.15.0)
@@ -18,7 +18,7 @@ module SleepRoom
18
18
  end
19
19
 
20
20
  # Record Room
21
- def recore
21
+ def record
22
22
  set_room_info
23
23
  if @is_live
24
24
  log("Status: broadcast.")
@@ -128,7 +128,7 @@ module SleepRoom
128
128
  # Call time
129
129
  call_time = Time.now
130
130
  pid = SleepRoom::Record.call_minyami(url: streaming_url, output: output)
131
- @status.downloading(room: @room, url: streaming_url, pid: pid, start_time: call_time)
131
+ @status.downloading(room: @room, url: streaming_url, pid: pid, start_time: call_time, output: output)
132
132
  log("Waiting for download process.")
133
133
  # Status
134
134
  task.async do |t|
@@ -189,7 +189,7 @@ module SleepRoom
189
189
  end
190
190
 
191
191
  def update_status
192
- @status.waiting(room: @room, group: @group, room_name: @room_name)
192
+ @status.waiting(room: @room, group: @group, room_name: @room_name, key: @broadcast_key)
193
193
  end
194
194
  end
195
195
  end
@@ -32,8 +32,12 @@ module SleepRoom
32
32
  ping_task = task.async do |sub|
33
33
  while @running
34
34
  sub.sleep 60
35
- connection.write("PING\tshowroom")
36
- connection.flush
35
+ begin
36
+ connection.write("PING\tshowroom")
37
+ connection.flush
38
+ rescue => e
39
+ log(e.message)
40
+ end
37
41
  end
38
42
  end
39
43
 
@@ -34,7 +34,7 @@ module SleepRoom
34
34
  end
35
35
  end
36
36
 
37
- def downloading(room:, url:, pid:, start_time:)
37
+ def downloading(room:, url:, pid:, start_time:, output:)
38
38
  add(
39
39
  {
40
40
  room: room,
@@ -47,7 +47,7 @@ module SleepRoom
47
47
  )
48
48
  end
49
49
 
50
- def waiting(room:, group:, room_name:)
50
+ def waiting(room:, group:, room_name:, key:)
51
51
  add(
52
52
  {
53
53
  room: room,
@@ -55,6 +55,9 @@ module SleepRoom
55
55
  group: group,
56
56
  name: room_name,
57
57
  status: :waiting,
58
+ websocket: {
59
+ key: key
60
+ }
58
61
  }
59
62
  )
60
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SleepRoom
4
- VERSION = "0.9.0.pre1"
4
+ VERSION = "0.9.0.pre3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sleeproom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.pre1
4
+ version: 0.9.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koell