musa-dsl 0.26.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/musa-dsl/repl/repl.rb +4 -4
- data/lib/musa-dsl.rb +1 -1
- 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: 352f6dee11662b71425f87b48adf528b1e9e00990b32fa30746308afc29c0e20
|
4
|
+
data.tar.gz: d39f1245d2f8468d7c04ba852986c50a704cb5150a16031646fecbefc8e119fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a0aeaee5d2a199c7eb3ddf7c7d3ea2078d93fdb413911a116c8438c5830302731dbf57a3f5778e525864e377aa86db7a5f2f7972455cdf60d29ae3d352a64fa
|
7
|
+
data.tar.gz: b755db2dfbaac9477329d8ce902be044d68161eca86e6a10ac0cfd50814899ce66c1c1d4b5959600d0cbe4317e7174cd9c2f66830e6e4a114a24f83b16615860
|
data/lib/musa-dsl/repl/repl.rb
CHANGED
@@ -6,7 +6,7 @@ module Musa
|
|
6
6
|
class REPL
|
7
7
|
@@repl_mutex = Mutex.new
|
8
8
|
|
9
|
-
def initialize(binder = nil, port: nil, after_eval: nil, logger: nil)
|
9
|
+
def initialize(binder = nil, port: nil, after_eval: nil, logger: nil, highlight_exception: true)
|
10
10
|
|
11
11
|
self.binder = binder
|
12
12
|
|
@@ -52,7 +52,7 @@ module Musa
|
|
52
52
|
|
53
53
|
rescue StandardError, ScriptError => e
|
54
54
|
@logger.warn('REPL') { 'code execution error' }
|
55
|
-
@logger.warn('REPL') { e.full_message(highlight:
|
55
|
+
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
56
56
|
|
57
57
|
send_exception e, output: @connection
|
58
58
|
else
|
@@ -66,7 +66,7 @@ module Musa
|
|
66
66
|
|
67
67
|
rescue IOError, Errno::ECONNRESET, Errno::EPIPE => e
|
68
68
|
@logger.warn('REPL') { 'lost connection' }
|
69
|
-
@logger.warn('REPL') { e.full_message(highlight:
|
69
|
+
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
70
70
|
|
71
71
|
ensure
|
72
72
|
@logger.debug("REPL") { "closing connection (running #{@run})" }
|
@@ -77,7 +77,7 @@ module Musa
|
|
77
77
|
end
|
78
78
|
rescue Errno::ECONNRESET, Errno::EPIPE => e
|
79
79
|
@logger.warn('REPL') { 'connection failure while getting server port; will retry...' }
|
80
|
-
@logger.warn('REPL') { e.full_message(highlight:
|
80
|
+
@logger.warn('REPL') { e.full_message(highlight: highlight_exception, order: :top) }
|
81
81
|
retry
|
82
82
|
|
83
83
|
end
|
data/lib/musa-dsl.rb
CHANGED
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.26.
|
4
|
-
s.date = '
|
3
|
+
s.version = '0.26.3'
|
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'
|
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.26.
|
4
|
+
version: 0.26.3
|
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:
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|