musa-dsl 0.26.3 → 0.26.4
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 +5 -4
- data/lib/musa-dsl.rb +1 -1
- data/musa-dsl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0631b9bf8dbc0fedbfe7c00bdc5c4da34c3b319ade3de83fa49d08f7b95ea9b0
|
4
|
+
data.tar.gz: 1c258db1cd5105a794e9cbfec73e12fc8e6ec3565395d25c234ec3ac0aed5d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86068de4a4b03eb6615438863fe62302b8d4c899058bf1faba5d2aef00608b91bb61b0a54775736ecf99b7ad91a9b765085f68201daeba537df042634f806c97
|
7
|
+
data.tar.gz: bd321b8c0d140557fd2a747f5e1d8ecdf9335e6865abfc4d1cce2182e6493dd4e8983f0cdc208beefd91f098f589ff566afa33dcb534e7549d1a1e11609b0e8e
|
data/lib/musa-dsl/repl/repl.rb
CHANGED
@@ -13,6 +13,7 @@ module Musa
|
|
13
13
|
port ||= 1327
|
14
14
|
|
15
15
|
@logger = logger || Musa::Logger::Logger.new
|
16
|
+
@highlight_exception = highlight_exception
|
16
17
|
|
17
18
|
@block_source = nil
|
18
19
|
|
@@ -52,7 +53,7 @@ module Musa
|
|
52
53
|
|
53
54
|
rescue StandardError, ScriptError => e
|
54
55
|
@logger.warn('REPL') { 'code execution error' }
|
55
|
-
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
56
|
+
@logger.warn('REPL') { e.full_message(highlight: @highlight_exception, order: :top) }
|
56
57
|
|
57
58
|
send_exception e, output: @connection
|
58
59
|
else
|
@@ -66,7 +67,7 @@ module Musa
|
|
66
67
|
|
67
68
|
rescue IOError, Errno::ECONNRESET, Errno::EPIPE => e
|
68
69
|
@logger.warn('REPL') { 'lost connection' }
|
69
|
-
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
70
|
+
@logger.warn('REPL') { e.full_message(highlight: @highlight_exception, order: :top) }
|
70
71
|
|
71
72
|
ensure
|
72
73
|
@logger.debug("REPL") { "closing connection (running #{@run})" }
|
@@ -77,7 +78,7 @@ module Musa
|
|
77
78
|
end
|
78
79
|
rescue Errno::ECONNRESET, Errno::EPIPE => e
|
79
80
|
@logger.warn('REPL') { 'connection failure while getting server port; will retry...' }
|
80
|
-
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
81
|
+
@logger.warn('REPL') { e.full_message(highlight: @highlight_exception, order: :top) }
|
81
82
|
retry
|
82
83
|
|
83
84
|
end
|
@@ -130,7 +131,7 @@ module Musa
|
|
130
131
|
|
131
132
|
def send_exception(e, output:)
|
132
133
|
|
133
|
-
@logger.error('REPL') { e.full_message(highlight:
|
134
|
+
@logger.error('REPL') { e.full_message(highlight: @highlight_exception, order: :top) }
|
134
135
|
|
135
136
|
send output: output, command: '//error'
|
136
137
|
|
data/lib/musa-dsl.rb
CHANGED
data/musa-dsl.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'musa-dsl'
|
3
|
-
s.version = '0.26.
|
3
|
+
s.version = '0.26.4'
|
4
4
|
s.date = '2022-02-17'
|
5
5
|
s.summary = 'A simple Ruby DSL for making complex music'
|
6
6
|
s.description = 'Musa-DSL: A Ruby framework and DSL for algorithmic sound and musical thinking and composition'
|