musa-dsl 0.14.29 → 0.14.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/musa-dsl/repl/repl.rb +10 -3
- data/musa-dsl.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0d0e02c2e0316db71806cd4a1370c6f7488d074c7f0c56f9debefa68e041d14
|
4
|
+
data.tar.gz: 4d6e5c5f7dcd225ed5cb4f2f01129fa12a15be16253f5bfcb8cedf07c1bb6296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7872920c8d0b01d28ea8359a7bccb84937820dcb1ce4cb98a158c351ac46f9e5a802d5986b6e7b584f3c527dd9be65e2df75d31dc5fa7394296dc2123ed4b5d
|
7
|
+
data.tar.gz: a2dae59c40f1e713593a691e93ba989ee3aed3fe176b7da81e01aec579db83afc1c91d082c2915150249ab55a124c5f45f15fc99f506cc1cbdc3fb6a5d237d83
|
data/lib/musa-dsl/repl/repl.rb
CHANGED
@@ -19,16 +19,17 @@ module Musa
|
|
19
19
|
end
|
20
20
|
|
21
21
|
@client_threads = []
|
22
|
+
@run = true
|
22
23
|
|
23
24
|
@main_thread = Thread.new do
|
24
25
|
@server = TCPServer.new(port)
|
25
26
|
begin
|
26
|
-
while connection = @server.accept
|
27
|
+
while (connection = @server.accept) && @run
|
27
28
|
@client_threads << Thread.new do
|
28
29
|
buffer = nil
|
29
30
|
|
30
31
|
begin
|
31
|
-
while line = connection.gets
|
32
|
+
while (line = connection.gets) && @run
|
32
33
|
line.chomp!
|
33
34
|
case line
|
34
35
|
when '#begin'
|
@@ -75,7 +76,13 @@ module Musa
|
|
75
76
|
end
|
76
77
|
|
77
78
|
def stop
|
78
|
-
|
79
|
+
@run = false
|
80
|
+
|
81
|
+
@main_thread.terminate
|
82
|
+
@client_threads.each { |t| t.terminate }
|
83
|
+
|
84
|
+
@main_thread = nil
|
85
|
+
@client_threads.clear
|
79
86
|
end
|
80
87
|
|
81
88
|
private
|
data/musa-dsl.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'musa-dsl'
|
3
|
-
s.version = '0.14.
|
4
|
-
s.date = '2019-
|
3
|
+
s.version = '0.14.31'
|
4
|
+
s.date = '2019-10-03'
|
5
5
|
s.summary = 'A simple Ruby DSL for making complex music'
|
6
6
|
s.description = 'Musa-DSL: A Ruby DSL for algorithmic music composition, device language neutral (MIDI, OSC, etc)'
|
7
7
|
s.authors = ['Javier Sánchez Yeste']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: musa-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Sánchez Yeste
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: citrus
|