* [PATCH 1/3] xs: allow taking a string as input
2015-04-13 1:04 4% [PATCH 0/3] filename escaping fixups Eric Wong
@ 2015-04-13 1:04 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-04-13 1:04 UTC (permalink / raw)
To: dtas-all
This allows us to avoid unnecessary Array conversions in
call sites
---
lib/dtas/xs.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dtas/xs.rb b/lib/dtas/xs.rb
index 04ac252..7b3a0c2 100644
--- a/lib/dtas/xs.rb
+++ b/lib/dtas/xs.rb
@@ -9,6 +9,6 @@ require 'shellwords'
# again, filesystems can use any byte value in names except '\0'.
module DTAS::XS # :nodoc:
def xs(ary)
- Shellwords.join(ary.map(&:b))
+ Shellwords.join(Array(ary).map(&:b))
end
end
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] filename escaping fixups
@ 2015-04-13 1:04 4% Eric Wong
2015-04-13 1:04 7% ` [PATCH 1/3] xs: allow taking a string as input Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2015-04-13 1:04 UTC (permalink / raw)
To: dtas-all
There was a problem found while attempting to play a file with the '`'
(backtick) character in it, 2/3 is a critical fix. 1/3 is a minor
preparation cleanup and 3/3 was a following cleanup for existing call
sites.
New release coming in a day or so since this is a user-visible bug
(and we might as well release with some of our new features anyways,
since I might not have time to work on more fadefx processing for
another 2-3 weeks).
[PATCH 1/3] xs: allow taking a string as input
[PATCH 2/3] escape INFILE and related environment variables
[PATCH 3/3] cleanup: avoid redundant Array conversion for escapes
bin/dtas-cueedit | 4 ++--
lib/dtas/partstats.rb | 2 +-
lib/dtas/player.rb | 2 +-
lib/dtas/player/client_handler.rb | 2 +-
lib/dtas/process.rb | 2 +-
lib/dtas/source/av_ff_common.rb | 2 +-
lib/dtas/source/sox.rb | 2 +-
lib/dtas/splitfx.rb | 8 +++++---
lib/dtas/xs.rb | 2 +-
9 files changed, 14 insertions(+), 12 deletions(-)
^ permalink raw reply [relevance 4%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-04-13 1:04 4% [PATCH 0/3] filename escaping fixups Eric Wong
2015-04-13 1:04 7% ` [PATCH 1/3] xs: allow taking a string as input Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).