Oops, a Perlism crept in :x --- bin/dtas-readahead | 2 +- lib/dtas/mlib.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 6a8edf7..913bf07 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -75,7 +75,7 @@ def seek_to_cur_pos(cur_pid, fp) end def children_of(ppid) - `ps h -o pid --ppid=#{ppid}`.split(/\s+/s).map(&:to_i) + `ps h -o pid --ppid=#{ppid}`.split(/\s+/).map(&:to_i) end def expand_pid(pid) diff --git a/lib/dtas/mlib.rb b/lib/dtas/mlib.rb index 0945153..24393d5 100644 --- a/lib/dtas/mlib.rb +++ b/lib/dtas/mlib.rb @@ -66,7 +66,7 @@ def initialize(db) end def init_suffixes - `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/s + `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/ re = $1.split(/\s+/).map! { |x| Regexp.quote(x) }.join('|') @suffixes = Regexp.new("\\.(?:#{re}|yml)\\z", Regexp::IGNORECASE) end -- EW
Free Software command-line tools for audio playback, mastering, and whatever else related to audio. dtas follows the worse-is-better philosophy and acts as duct tape to combine existing command-line tools for flexibility and ease-of-development. dtas is currently implemented in Ruby (and some embedded shell), but may use other languages in the future. Changes: A bunch of minor fixes and cleanups accumulating for the past two years since the last release. It's tough to remember to make releases when I'm always running the latest version from git :x Most notably, "io_splice" is no longer used for dtas-linux users since "sleepy_penguin" includes all the functionality we use. This is to reduce memory overhead from extra DSOs(*) There's also some deprecation warning fixes for the still-undocumented "dtas-mlib" command. 12 changes since v0.15.0 (2017-04-07): pipeline: new module for running process pipelines console: ensure time calculations are done in UTC Rakefile: update path for uploads player: support guessing encodings for comments get rid of Windows-31J regexps mlib: compatibility with Sequel 5.x mlib: remove redundant tag massaging and encoding mlib: use flock to get around SQLite busy errors mlib: ignore files with nil times dtas/watchable: check SystemCallError mlib: fix unused variable warning use sleepy_penguin 3.5+ for splice and tee support (*) https://udrepper.livejournal.com/8790.html * homepage: https://80x24.org/dtas/README * https://80x24.org/dtas/INSTALL * https://80x24.org/dtas/dtas-player.txt * https://80x24.org/dtas/NEWS.atom * git clone https://80x24.org/dtas.git * dtas-all@nongnu.org (plain-text only, no HTML mail, please) * mailing list archives: https://80x24.org/dtas-all/ nntp://news.public-inbox.org/inbox.comp.audio.dtas https://80x24.org/dtas-all/new.atom