From bc374a76530826e7f701c6643a59423a2c912be1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Dec 2015 05:05:09 +0000 Subject: enable "frozen_string_literal: true" While we're in the area, make a wording change from "GPLv3 or later" to "GPL-3.0+", as the latter is favored by SPDX.org --- bin/dtas-archive | 3 ++- bin/dtas-console | 5 +++-- bin/dtas-ctl | 3 ++- bin/dtas-cueedit | 3 ++- bin/dtas-enq | 3 ++- bin/dtas-mlib | 3 ++- bin/dtas-msinkctl | 3 ++- bin/dtas-partstats | 3 ++- bin/dtas-player | 3 ++- bin/dtas-readahead | 3 ++- bin/dtas-sinkedit | 3 ++- bin/dtas-sourceedit | 3 ++- bin/dtas-splitfx | 3 ++- bin/dtas-tl | 6 +++--- bin/dtas-xdelay | 3 ++- 15 files changed, 32 insertions(+), 18 deletions(-) (limited to 'bin') diff --git a/bin/dtas-archive b/bin/dtas-archive index 89ca6cc..93eddaa 100755 --- a/bin/dtas-archive +++ b/bin/dtas-archive @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true usage = "#$0 SOURCE DESTINATION" # We could use the equivalent sox command here, but some folks working on diff --git a/bin/dtas-console b/bin/dtas-console index a8e1838..2d39e13 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true # # Note: no idea what I'm doing, especially w.r.t. curses require 'dtas' @@ -99,7 +100,7 @@ def fmt_to_s(f) end def rg_string(rg, current) - rv = "rg mode=#{rg['mode']||'off'}" + rv = "rg mode=#{rg['mode']||'off'}".dup defaults = DTAS::RGState::RG_DEFAULT # don't show things that are too rare %w(preamp fallback_gain).each do |param| diff --git a/bin/dtas-ctl b/bin/dtas-ctl index 4bc4dd9..3408f0c 100755 --- a/bin/dtas-ctl +++ b/bin/dtas-ctl @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'dtas/unix_client' c = DTAS::UNIXClient.new diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit index 5e6970f..75c8a59 100755 --- a/bin/dtas-cueedit +++ b/bin/dtas-cueedit @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'tempfile' require 'dtas/xs' usage = "Usage: #$0 FILENAME" diff --git a/bin/dtas-enq b/bin/dtas-enq index e164c58..4c010a6 100755 --- a/bin/dtas-enq +++ b/bin/dtas-enq @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'dtas/unix_client' c = DTAS::UNIXClient.new diff --git a/bin/dtas-mlib b/bin/dtas-mlib index e85c950..9c0b01a 100755 --- a/bin/dtas-mlib +++ b/bin/dtas-mlib @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true usage = "#$0 [-d DATABASE-URI] ACTION [ARGS]" Thread.abort_on_exception = $stderr.sync = $stdout.sync = true trap(:INT, 'SYSTEM_DEFAULT') diff --git a/bin/dtas-msinkctl b/bin/dtas-msinkctl index 75770e1..17a5956 100755 --- a/bin/dtas-msinkctl +++ b/bin/dtas-msinkctl @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'yaml' require 'dtas/unix_client' usage = "#$0 SINK" diff --git a/bin/dtas-partstats b/bin/dtas-partstats index ca3ccfa..40bc622 100755 --- a/bin/dtas-partstats +++ b/bin/dtas-partstats @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true # TODO # - option parsing: sox effects, stats effect options # - support piping out to external processes diff --git a/bin/dtas-player b/bin/dtas-player index 7f77544..0a14390 100755 --- a/bin/dtas-player +++ b/bin/dtas-player @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true Thread.abort_on_exception = $stderr.sync = $stdout.sync = true require 'yaml' require 'dtas/player' diff --git a/bin/dtas-readahead b/bin/dtas-readahead index a4664ad..c02353a 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true # # Really janky readahead script. Requires dtas-player to be # running and unlikely to work outside of Linux as it depends on diff --git a/bin/dtas-sinkedit b/bin/dtas-sinkedit index f0b222c..8176a53 100755 --- a/bin/dtas-sinkedit +++ b/bin/dtas-sinkedit @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'optparse' require 'dtas/edit_client' require 'dtas/sigevent' diff --git a/bin/dtas-sourceedit b/bin/dtas-sourceedit index fba0511..713d424 100755 --- a/bin/dtas-sourceedit +++ b/bin/dtas-sourceedit @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'optparse' require 'dtas/edit_client' require 'dtas/sigevent' diff --git a/bin/dtas-splitfx b/bin/dtas-splitfx index 08c0111..7a2ea79 100755 --- a/bin/dtas-splitfx +++ b/bin/dtas-splitfx @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true require 'yaml' require 'optparse' require 'dtas/splitfx' diff --git a/bin/dtas-tl b/bin/dtas-tl index f48c6ef..11beea9 100755 --- a/bin/dtas-tl +++ b/bin/dtas-tl @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) -# +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true # WARNING: totally unstable API, use dtas-ctl for scripting (but the protocol # itself is also unstable, but better than this one probably). require 'dtas/unix_client' @@ -10,7 +10,7 @@ require 'shellwords' def get_track_ids(c) track_ids = c.req("tl tracks") # we could get more, but SEQPACKET limits size... - track_ids = track_ids.split(/ /) + track_ids = track_ids.split(' ') track_ids.shift track_ids end diff --git a/bin/dtas-xdelay b/bin/dtas-xdelay index 05e2537..4d48e50 100755 --- a/bin/dtas-xdelay +++ b/bin/dtas-xdelay @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # Copyright (C) 2013-2015 all contributors -# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true USAGE = "Usage: #$0 [-x FREQ] [-l] /dev/fd/LO /dev/fd/HI DELAY [DELAY ...]" require 'optparse' dryrun = false -- cgit v1.2.3-24-ge0c7