dtas 0.7.0 → 0.8.0

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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/Documentation/.gitignore +1 -1
  4. data/Documentation/GNUmakefile +1 -1
  5. data/Documentation/dtas-console.txt +1 -1
  6. data/Documentation/dtas-ctl.txt +1 -1
  7. data/Documentation/dtas-cueedit.txt +1 -1
  8. data/Documentation/dtas-enq.txt +1 -1
  9. data/Documentation/dtas-msinkctl.txt +1 -1
  10. data/Documentation/dtas-player.txt +1 -1
  11. data/Documentation/dtas-player_effects.txt +1 -1
  12. data/Documentation/dtas-player_protocol.txt +3 -3
  13. data/Documentation/dtas-player_sink_examples.txt +1 -1
  14. data/Documentation/dtas-sinkedit.txt +1 -1
  15. data/Documentation/dtas-sourceedit.txt +1 -1
  16. data/Documentation/dtas-splitfx.txt +1 -1
  17. data/Documentation/dtas-tl.txt +2 -1
  18. data/Documentation/dtas-xdelay.txt +1 -1
  19. data/GIT-VERSION-GEN +2 -2
  20. data/GNUmakefile +1 -1
  21. data/HACKING +1 -1
  22. data/INSTALL +5 -5
  23. data/README +1 -1
  24. data/Rakefile +2 -2
  25. data/TODO +1 -1
  26. data/bin/dtas-console +18 -3
  27. data/bin/dtas-ctl +1 -1
  28. data/bin/dtas-cueedit +1 -3
  29. data/bin/dtas-enq +2 -3
  30. data/bin/dtas-msinkctl +1 -1
  31. data/bin/dtas-partstats +1 -1
  32. data/bin/dtas-player +3 -4
  33. data/bin/dtas-sinkedit +1 -1
  34. data/bin/dtas-sourceedit +1 -1
  35. data/bin/dtas-splitfx +1 -1
  36. data/bin/dtas-tl +3 -3
  37. data/bin/dtas-xdelay +1 -1
  38. data/dtas-linux.gemspec +1 -1
  39. data/dtas-mpris.gemspec +1 -1
  40. data/dtas.gemspec +1 -1
  41. data/examples/trimfx.sample.yml +2 -5
  42. data/lib/dtas.rb +1 -1
  43. data/lib/dtas/buffer.rb +1 -1
  44. data/lib/dtas/buffer/read_write.rb +1 -1
  45. data/lib/dtas/buffer/splice.rb +1 -1
  46. data/lib/dtas/command.rb +1 -1
  47. data/lib/dtas/compat_onenine.rb +1 -1
  48. data/lib/dtas/compat_rbx.rb +1 -1
  49. data/lib/dtas/cue_index.rb +1 -1
  50. data/lib/dtas/disclaimer.rb +1 -1
  51. data/lib/dtas/edit_client.rb +1 -1
  52. data/lib/dtas/format.rb +1 -1
  53. data/lib/dtas/parse_time.rb +1 -1
  54. data/lib/dtas/partstats.rb +1 -1
  55. data/lib/dtas/pipe.rb +1 -1
  56. data/lib/dtas/player.rb +2 -2
  57. data/lib/dtas/player/client_handler.rb +5 -5
  58. data/lib/dtas/process.rb +1 -1
  59. data/lib/dtas/replaygain.rb +1 -1
  60. data/lib/dtas/rg_state.rb +1 -1
  61. data/lib/dtas/serialize.rb +1 -1
  62. data/lib/dtas/sigevent.rb +1 -1
  63. data/lib/dtas/sigevent/efd.rb +1 -1
  64. data/lib/dtas/sigevent/pipe.rb +1 -1
  65. data/lib/dtas/sink.rb +2 -2
  66. data/lib/dtas/source.rb +1 -1
  67. data/lib/dtas/source/av.rb +1 -1
  68. data/lib/dtas/source/av_ff_common.rb +1 -1
  69. data/lib/dtas/source/cmd.rb +1 -1
  70. data/lib/dtas/source/common.rb +1 -1
  71. data/lib/dtas/source/ff.rb +1 -1
  72. data/lib/dtas/source/file.rb +1 -1
  73. data/lib/dtas/source/mp3gain.rb +1 -1
  74. data/lib/dtas/source/sox.rb +1 -1
  75. data/lib/dtas/splitfx.rb +1 -1
  76. data/lib/dtas/state_file.rb +1 -1
  77. data/lib/dtas/tracklist.rb +1 -1
  78. data/lib/dtas/trimfx.rb +64 -3
  79. data/lib/dtas/unix_accepted.rb +3 -1
  80. data/lib/dtas/unix_client.rb +2 -2
  81. data/lib/dtas/unix_server.rb +8 -2
  82. data/lib/dtas/util.rb +1 -1
  83. data/lib/dtas/writable_iter.rb +1 -1
  84. data/lib/dtas/xs.rb +2 -2
  85. data/perl/dtas-graph +1 -1
  86. data/test/covshow.rb +1 -1
  87. data/test/helper.rb +24 -3
  88. data/test/player_integration.rb +1 -1
  89. data/test/test_buffer.rb +1 -1
  90. data/test/test_env.rb +1 -1
  91. data/test/test_format.rb +1 -1
  92. data/test/test_format_change.rb +1 -1
  93. data/test/test_player.rb +1 -1
  94. data/test/test_player_client_handler.rb +1 -1
  95. data/test/test_player_integration.rb +1 -1
  96. data/test/test_process.rb +1 -1
  97. data/test/test_rg_integration.rb +1 -1
  98. data/test/test_rg_state.rb +1 -1
  99. data/test/test_sink.rb +1 -1
  100. data/test/test_sink_pipe_size.rb +1 -1
  101. data/test/test_sink_tee_integration.rb +1 -1
  102. data/test/test_source_av.rb +1 -1
  103. data/test/test_source_sox.rb +1 -1
  104. data/test/test_splitfx.rb +8 -12
  105. data/test/test_tracklist.rb +1 -1
  106. data/test/test_trimfx.rb +33 -2
  107. data/test/test_unixserver.rb +1 -1
  108. data/test/test_util.rb +1 -1
  109. metadata +3 -5
  110. data/lib/dtas/fadefx.rb +0 -32
  111. data/test/test_fadefx.rb +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 161846cfdf7681efdb615adfff1fbdf0fff1efe7
4
- data.tar.gz: c3c4c03f5f66ba0df0d26f59d216f0e0d4046e4d
3
+ metadata.gz: c6de1257eadc11120286b1beb71f6aef077a46c7
4
+ data.tar.gz: 8e9d46f0a73b1bfb601bbe34b1ebac7978edb6bb
5
5
  SHA512:
6
- metadata.gz: 6df024d59f87441b02c45cd1461c3598afcc80e0fe34b138531b9ad657fe01836cdfe6438d560607ae0642c23accbbd5fb89d17305fd60200f714b6467ea9082
7
- data.tar.gz: 82dcabe750e95a1650ec1e4c83da1fc25e1752a75bbb4670982f73b813965e3729c4f59197174df16de68cf4c53877436b91b9b208ab92b002fced1a0abdff29
6
+ metadata.gz: 32d01a19f47d8d1ee8c65d127032c923b726fdf91f4d46ef22655189fd2d4066920de7474b76d976955a8cc268a7a10851222e425c097d6feccddc2bb63e9b7e
7
+ data.tar.gz: 808dd9c0c49a85bef423a1ee3d9e6a18a117f07d91a91e2ca44fee370dcb62a37dd1efc1439c850d07bef80954ffd601f4876272f1890d1b69af09155d26b93e
data/.gitignore CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
1
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
2
2
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
3
3
  /GIT-VERSION-FILE
4
4
  /Manifest.txt
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
1
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
2
2
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
3
3
  *.1
4
4
  *.5
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
1
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
2
2
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
3
3
  all::
4
4
 
@@ -59,7 +59,7 @@ No subscription is necessary to post to the mailing list.
59
59
 
60
60
  # COPYRIGHT
61
61
 
62
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
62
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
63
63
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
64
64
 
65
65
  # SEE ALSO
@@ -66,7 +66,7 @@ No subscription is necessary to post to the mailing list.
66
66
 
67
67
  # COPYRIGHT
68
68
 
69
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
69
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
70
70
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
71
71
 
72
72
  # SEE ALSO
@@ -27,7 +27,7 @@ No subscription is necessary to post to the mailing list.
27
27
 
28
28
  # COPYRIGHT
29
29
 
30
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
30
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
31
31
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
32
32
 
33
33
  # SEE ALSO
@@ -32,7 +32,7 @@ No subscription is necessary to post to the mailing list.
32
32
 
33
33
  # COPYRIGHT
34
34
 
35
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
35
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
36
36
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
37
37
 
38
38
  # SEE ALSO
@@ -48,7 +48,7 @@ No subscription is necessary to post to the mailing list.
48
48
 
49
49
  # COPYRIGHT
50
50
 
51
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
51
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
52
52
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
53
53
 
54
54
  # SEE ALSO
@@ -113,7 +113,7 @@ No subscription is necessary to post to the mailing list.
113
113
 
114
114
  # COPYRIGHT
115
115
 
116
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
116
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
117
117
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
118
118
 
119
119
  # SEE ALSO
@@ -52,5 +52,5 @@ No subscription is necessary to post to the mailing list.
52
52
 
53
53
  # COPYRIGHT
54
54
 
55
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
55
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
56
56
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
@@ -22,7 +22,7 @@ shell in disguise, after all.
22
22
 
23
23
  Protocol feedback greatly appreciated email me at
24
24
 
25
- normalperson@yhbt.net
25
+ e@80x24.org
26
26
 
27
27
  *********************************************************
28
28
 
@@ -252,7 +252,7 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
252
252
  the track list
253
253
 
254
254
  * tl get [TRACKIDS]
255
- returns a list of TRACKIDS mapped to filenames.
255
+ returns a list of TRACKIDS mapped to shell-escaped filenames.
256
256
 
257
257
  * tl goto TRACKID [TIMESTAMP] - plays the given TRACKID
258
258
  An optional timestamp may be added to prevent playing the
@@ -277,5 +277,5 @@ No subscription is necessary to post to the mailing list.
277
277
 
278
278
  # COPYRIGHT
279
279
 
280
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
280
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
281
281
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
@@ -73,7 +73,7 @@ No subscription is necessary to post to the mailing list.
73
73
 
74
74
  # COPYRIGHT
75
75
 
76
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
76
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
77
77
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
78
78
 
79
79
  # SEE ALSO
@@ -44,7 +44,7 @@ No subscription is necessary to post to the mailing list.
44
44
 
45
45
  # COPYRIGHT
46
46
 
47
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
47
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
48
48
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
49
49
 
50
50
  # SEE ALSO
@@ -51,7 +51,7 @@ No subscription is necessary to post to the mailing list.
51
51
 
52
52
  # COPYRIGHT
53
53
 
54
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
54
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
55
55
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
56
56
 
57
57
  # SEE ALSO
@@ -163,7 +163,7 @@ For reference, the "opusenc" default target is implemented as follows:
163
163
 
164
164
  # COPYRIGHT
165
165
 
166
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
166
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
167
167
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
168
168
 
169
169
  # SEE ALSO
@@ -24,6 +24,7 @@ client).
24
24
  * current-id - display the TRACKID of the current track
25
25
  "NONE" if not playing
26
26
  * cat - display a newline-delimited list of TRACK_ID=PATH output
27
+ Note: this is shell-escaped, multibyte characters may not show up properly.
27
28
  * clear - remove all tracks from the tracklist
28
29
  * goto TRACKID [POS] - play TRACKID immediately, optionally seek to POS
29
30
  TRACKID may be looked up via cat, and POS should be a timestamp in
@@ -69,7 +70,7 @@ No subscription is necessary to post to the mailing list.
69
70
 
70
71
  # COPYRIGHT
71
72
 
72
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
73
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
73
74
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
74
75
 
75
76
  # SEE ALSO
@@ -67,7 +67,7 @@ No subscription is necessary to post to the mailing list.
67
67
 
68
68
  # COPYRIGHT
69
69
 
70
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
70
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
71
71
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
72
72
 
73
73
  # SEE ALSO
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  CONSTANT = "DTAS::VERSION"
5
5
  RVF = "lib/dtas/version.rb"
6
6
  GVF = "GIT-VERSION-FILE"
7
- DEF_VER = "v0.7.0"
7
+ DEF_VER = "v0.8.0"
8
8
  vn = DEF_VER
9
9
 
10
10
  # First see if there is a version file (included in release tarballs),
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
1
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
2
2
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
3
3
  all::
4
4
  pkg = dtas
data/HACKING CHANGED
@@ -22,5 +22,5 @@ No subscription is necessary to post to the mailing list.
22
22
 
23
23
  # COPYRIGHT
24
24
 
25
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
25
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
26
26
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
data/INSTALL CHANGED
@@ -1,6 +1,6 @@
1
1
  Uncommon for audio software, dtas is implemented in Ruby.
2
2
 
3
- The latest stable release of Ruby is recommended, currently 2.0.0-p247.
3
+ The latest stable release of Ruby is recommended, currently 2.1.3.
4
4
  However, Ruby 1.9.3 should work, too. Older versions of Ruby are not
5
5
  recommended.
6
6
 
@@ -40,10 +40,10 @@ For future upgrades of dtas (upgrades to dtas-linux will be infrequent)
40
40
 
41
41
  Grab the latest tarball from our HTTP site:
42
42
 
43
- http://dtas.80x24.org/2013/dtas-0.7.0.tar.gz
43
+ http://dtas.80x24.org/2014/dtas-0.8.0.tar.gz
44
44
 
45
- $ tar zxvf dtas-0.7.0.tar.gz
46
- $ cd dtas-0.7.0
45
+ $ tar zxvf dtas-0.8.0.tar.gz
46
+ $ cd dtas-0.8.0
47
47
  $ sudo ruby setup.rb
48
48
 
49
49
  GNU/Linux users may optionally install "io_splice" and
@@ -61,5 +61,5 @@ No subscription is necessary to post to the mailing list.
61
61
 
62
62
  # COPYRIGHT
63
63
 
64
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
64
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
65
65
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
data/README CHANGED
@@ -80,7 +80,7 @@ No subscription is necessary to post to the mailing list.
80
80
 
81
81
  ## Copyright
82
82
 
83
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
83
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
84
84
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
85
85
 
86
86
  dtas is copyrighted Free Software by all contributors, see logs
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
1
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
2
2
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
3
3
  require 'tempfile'
4
4
  include Rake::DSL
@@ -23,7 +23,7 @@ task "NEWS" do
23
23
  end
24
24
  fp.puts "Unreleased" unless fp.size > 0
25
25
  fp.puts "# COPYRIGHT"
26
- bdfl = 'Eric Wong <normalperson@yhbt.net>'
26
+ bdfl = 'Eric Wong <e@80x24.org>'
27
27
  fp.puts "Copyright (C) 2013, #{bdfl} and all contributors"
28
28
  fp.puts "License: GPLv3 or later (http://www.gnu.org/licenses/gpl-3.0.txt)"
29
29
  fp.rewind
data/TODO CHANGED
@@ -5,5 +5,5 @@
5
5
 
6
6
  # COPYRIGHT
7
7
 
8
- Copyright 2013, Eric Wong <normalperson@yhbt.net> and all contributors.\
8
+ Copyright 2013-2014, Eric Wong <e@80x24.org> and all contributors.\
9
9
  License: GPLv3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>
@@ -1,13 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  #
5
5
  # Note: no idea what I'm doing, especially w.r.t. curses
6
6
  require 'dtas/unix_client'
7
7
  require 'dtas/rg_state'
8
8
  require 'dtas/sigevent'
9
- require 'curses'
10
9
  require 'yaml'
10
+ begin
11
+ require 'curses'
12
+ rescue LoadError
13
+ abort "please install the 'curses' RubyGem to use #$0"
14
+ end
11
15
 
12
16
  se = DTAS::Sigevent.new
13
17
  trap(:WINCH) { se.signal }
@@ -100,6 +104,9 @@ def rg_string(rg, current)
100
104
  rv
101
105
  end
102
106
 
107
+ enc_locale = Encoding.find("locale")
108
+ $stdout.set_encoding(enc_locale)
109
+ enc_opts = { undef: :replace, invalid: :replace, replace: '?' }
103
110
  begin
104
111
  Curses.init_screen
105
112
  Curses.nonl
@@ -114,7 +121,15 @@ begin
114
121
  if current = cur['current']
115
122
  Curses.setpos(lineno += 1, 0)
116
123
  Curses.clrtoeol
117
- Curses.addstr(current['infile'] || current['command'])
124
+ if infile = current['infile']
125
+ # FS encoding != locale encoding, but we need to display an FS path
126
+ # name to whatever locale the terminal is encoded to, so force
127
+ # it and risk mojibake...
128
+ infile.encode(enc_locale, enc_opts)
129
+ Curses.addstr(infile)
130
+ else
131
+ Curses.addstr(current['command'])
132
+ end
118
133
 
119
134
  elapsed = Time.now.to_f - current['spawn_at']
120
135
  if (nr = cur['current_initial']) && (current_format = current['format'])
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'dtas/unix_client'
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'tempfile'
5
5
  require 'dtas/xs'
@@ -24,8 +24,6 @@ def tmpfile(file, suffix)
24
24
  end
25
25
 
26
26
  ARGV.each do |file|
27
- # Unix paths are encoding agnostic
28
- file = file.b
29
27
  file =~ /\.flac\z/i or warn "Unsupported suffix, assuming FLAC"
30
28
  tmp = tmpfile(file, '.cue')
31
29
  begin
@@ -1,12 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'dtas/unix_client'
5
5
  c = DTAS::UNIXClient.new
6
6
 
7
7
  ARGV.each do |path|
8
- # Unix paths are encoding agnostic
9
- path = File.expand_path(path.b)
8
+ path = File.expand_path(path)
10
9
  res = c.req_ok(%W(enq #{path}))
11
10
  puts "#{path} #{res}"
12
11
  end
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'yaml'
5
5
  require 'dtas/unix_client'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  # TODO
5
5
  # - option parsing: sox effects, stats effect options
@@ -1,13 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  Thread.abort_on_exception = $stderr.sync = $stdout.sync = true
5
5
  require 'yaml'
6
6
  require 'dtas/player'
7
- sock = (ENV["DTAS_PLAYER_SOCK"] ||
8
- File.expand_path("~/.dtas/player.sock")).b
7
+ sock = (ENV["DTAS_PLAYER_SOCK"] || File.expand_path("~/.dtas/player.sock"))
9
8
  state = (ENV["DTAS_PLAYER_STATE"] ||
10
- File.expand_path("~/.dtas/player_state.yml")).b
9
+ File.expand_path("~/.dtas/player_state.yml"))
11
10
  [ sock, state ].each do |file|
12
11
  dir = File.dirname(file)
13
12
  next if File.directory?(dir)
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'dtas/edit_client'
5
5
  include DTAS::EditClient
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'dtas/edit_client'
5
5
  include DTAS::EditClient
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  require 'yaml'
5
5
  require 'optparse'
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
2
+ # Copyright (C) 2013-2014, Eric Wong <e@80x24.org> and all contributors
3
3
  # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
4
4
  #
5
5
  # WARNING: totally unstable API, use dtas-ctl for scripting (but the protocol
@@ -31,7 +31,7 @@ when "clear"
31
31
  when "addhead"
32
32
  ARGV.shift
33
33
  ARGV.reverse.each do |path|
34
- path = File.expand_path(path.b)
34
+ path = File.expand_path(path)
35
35
  res = c.req(%W(tl add #{path}))
36
36
  puts "#{path} #{res}"
37
37
  end
@@ -40,7 +40,7 @@ when "addtail"
40
40
  track_ids = get_track_ids(c)
41
41
  last_id = track_ids.pop
42
42
  ARGV.each do |path|
43
- path = File.expand_path(path.b)
43
+ path = File.expand_path(path)
44
44
  req = %W(tl add #{path})
45
45
  req << last_id.to_s if last_id
46
46
  res = c.req(req)