dtas 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6de1257eadc11120286b1beb71f6aef077a46c7
4
- data.tar.gz: 8e9d46f0a73b1bfb601bbe34b1ebac7978edb6bb
3
+ metadata.gz: 8b0b0d8dd1821f734ace3e87aaa92a223b78ffa7
4
+ data.tar.gz: 5814678e639f987d9d5fb9331b845fdfebfa58ba
5
5
  SHA512:
6
- metadata.gz: 32d01a19f47d8d1ee8c65d127032c923b726fdf91f4d46ef22655189fd2d4066920de7474b76d976955a8cc268a7a10851222e425c097d6feccddc2bb63e9b7e
7
- data.tar.gz: 808dd9c0c49a85bef423a1ee3d9e6a18a117f07d91a91e2ca44fee370dcb62a37dd1efc1439c850d07bef80954ffd601f4876272f1890d1b69af09155d26b93e
6
+ metadata.gz: 394434abb8864ae92fffea854b42aac8323a1ccbb88b8baec124d2debe55edb06164bc94a31af96eea9b5e1fad3d0be45f3160ae9f88b7364bdef6366b18d1da
7
+ data.tar.gz: 9cb48221cf82cc5b1789b7b8778e4b3a06b9e5337767157b691a45a45f24a6a70635aebd916a73b4f10935f1fdd67d7b9e6b08d8510439fd888bdbcaea1697d5
@@ -248,6 +248,10 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
248
248
  currently playing track with the newly-added one.
249
249
  Returns the TRACKID of the newly added track
250
250
 
251
+ * tl current - display the pathname to the currently playing track
252
+
253
+ * tl current-id - display the TRACKID of the currently playing track
254
+
251
255
  * tl remove TRACKID - remove the track with the given TRACKID from
252
256
  the track list
253
257
 
@@ -258,6 +262,10 @@ Commands here should be alphabetized according to `LC_ALL=C sort'
258
262
  An optional timestamp may be added to prevent playing the
259
263
  same part(s) repeated.y
260
264
 
265
+ * tl next - jump to the next track in the tracklist
266
+
267
+ * tl prev - jump to the previous track in the tracklist
268
+
261
269
  * tl repeat [BOOLEAN|1] - show/or change repeat status of the tracklist.
262
270
  With no args, this will show "true", "false", or "1"
263
271
  If set to "1", dtas-player will repeat the current track.
@@ -4,7 +4,7 @@
4
4
  CONSTANT = "DTAS::VERSION"
5
5
  RVF = "lib/dtas/version.rb"
6
6
  GVF = "GIT-VERSION-FILE"
7
- DEF_VER = "v0.8.0"
7
+ DEF_VER = "v0.9.0"
8
8
  vn = DEF_VER
9
9
 
10
10
  # First see if there is a version file (included in release tarballs),
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.1.3.
3
+ The latest stable release or development snapshot of Ruby is recommended.
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/2014/dtas-0.8.0.tar.gz
43
+ http://dtas.80x24.org/2014/dtas-0.9.0.tar.gz
44
44
 
45
- $ tar zxvf dtas-0.8.0.tar.gz
46
- $ cd dtas-0.8.0
45
+ $ tar zxvf dtas-0.9.0.tar.gz
46
+ $ cd dtas-0.9.0
47
47
  $ sudo ruby setup.rb
48
48
 
49
49
  GNU/Linux users may optionally install "io_splice" and
@@ -56,7 +56,8 @@ GNU/Linux users may optionally install "io_splice" and
56
56
 
57
57
  Please do not hesitate to send plain-text mail to <dtas-all@nongnu.org>
58
58
  regarding installation and to share your notes/experiences.
59
- Mailing list archives available at <ftp://lists.gnu.org/dtas-all/>\
59
+ Mailing list archives available at <ftp://lists.gnu.org/dtas-all>
60
+ or <http://80x24.org/dtas-all/>
60
61
  No subscription is necessary to post to the mailing list.
61
62
 
62
63
  # COPYRIGHT
data/README CHANGED
@@ -63,7 +63,7 @@ Coming:
63
63
  Please use git-format-patch(1) and git-send-email(1) distributed with
64
64
  the git(7) suite for generating and sending patches. Please format
65
65
  pull requests with the git-request-pull(1) script (also distributed
66
- with git(7)) and send them via email.
66
+ with git(7)) and send them via email to <dtas-all@nongnu.org>.
67
67
 
68
68
  See http://www.git-scm.com/ for more information on git.
69
69
 
@@ -75,7 +75,8 @@ appreciated.
75
75
 
76
76
  Please send plain-text mail to the list at <dtas-all@nongnu.org>\
77
77
  HTML will not be read. dtas is for GUI-phobes, by GUI-phobes.\
78
- Mailing list archives available at <ftp://lists.gnu.org/dtas-all/>\
78
+ Mailing list archives available at <ftp://lists.gnu.org/dtas-all>
79
+ or <http://80x24.org/dtas-all/>
79
80
  No subscription is necessary to post to the mailing list.
80
81
 
81
82
  ## Copyright
@@ -200,6 +200,8 @@ begin
200
200
  when "0" then c.req_ok("rg preamp+=1")
201
201
  when "F" then c.req_ok("rg fallback_gain+=1")
202
202
  when "f" then c.req_ok("rg fallback_gain-=1")
203
+ when ">" then c.req_ok("tl next")
204
+ when "<" then c.req_ok("tl prev")
203
205
  when " "
204
206
  c.req("play_pause")
205
207
  when "r" # cycle through replaygain modes
@@ -22,18 +22,18 @@ when "cat"
22
22
  get_track_ids(c).each do |track_id|
23
23
  res = c.req("tl get #{track_id}")
24
24
  res.sub!(/\A1 /, '')
25
- puts res
25
+ print "#{res}\n"
26
26
  end
27
27
  when "clear"
28
28
  get_track_ids(c).each do |track_id|
29
- puts "#{track_id} " << c.req("tl remove #{track_id}")
29
+ print("#{track_id} " << c.req("tl remove #{track_id}") << "\n")
30
30
  end
31
31
  when "addhead"
32
32
  ARGV.shift
33
33
  ARGV.reverse.each do |path|
34
34
  path = File.expand_path(path)
35
35
  res = c.req(%W(tl add #{path}))
36
- puts "#{path} #{res}"
36
+ print "#{path} #{res}\n"
37
37
  end
38
38
  when "addtail"
39
39
  ARGV.shift
@@ -44,7 +44,7 @@ when "addtail"
44
44
  req = %W(tl add #{path})
45
45
  req << last_id.to_s if last_id
46
46
  res = c.req(req)
47
- puts "#{path} #{res}"
47
+ print "#{path} #{res}\n"
48
48
  last_id = res if res =~ /\A\d+\z/
49
49
  end
50
50
  when "reto"
@@ -12,6 +12,6 @@ end unless String.method_defined?(:b)
12
12
 
13
13
  def IO # :nodoc:
14
14
  def self.pipe # :nodoc:
15
- super.map! { |io| io.close_on_exec = true; io }
15
+ super.each { |io| io.close_on_exec = true }
16
16
  end
17
17
  end if RUBY_VERSION.to_f <= 1.9
@@ -49,7 +49,8 @@ module DTAS::Process # :nodoc:
49
49
 
50
50
  pid = begin
51
51
  Process.spawn(env, cmd, opts)
52
- rescue Errno::EINTR # Ruby bug?
52
+ rescue Errno::EINTR
53
+ # workaround for older Rubies https://bugs.ruby-lang.org/issues/8770
53
54
  retry
54
55
  end
55
56
  warn [ :spawn, pid, cmd ].inspect if $DEBUG
@@ -77,7 +78,8 @@ module DTAS::Process # :nodoc:
77
78
  env = env_expand(env, opts)
78
79
  pid = begin
79
80
  Process.spawn(env, *cmd, opts)
80
- rescue Errno::EINTR # Ruby bug?
81
+ rescue Errno::EINTR
82
+ # workaround for older Rubies https://bugs.ruby-lang.org/issues/8770
81
83
  retry
82
84
  end
83
85
  w.close
@@ -62,7 +62,7 @@ class DTAS::Tracklist # :nodoc:
62
62
  end
63
63
 
64
64
  def tracks
65
- @list.map { |t| t.object_id }
65
+ @list.map(&:object_id)
66
66
  end
67
67
 
68
68
  def advance_track(repeat_ok = true)
@@ -56,7 +56,7 @@ class DTAS::UNIXAccepted # :nodoc:
56
56
 
57
57
  begin
58
58
  begin
59
- msg, _, _ = io.recvmsg_nonblock(nread)
59
+ msg, _, _ = io.recvmsg_nonblock(nread, 0, 0)
60
60
  rescue Errno::EAGAIN
61
61
  return :wait_readable
62
62
  rescue EOFError, SystemCallError
@@ -38,9 +38,9 @@ class DTAS::UNIXClient # :nodoc:
38
38
  end
39
39
 
40
40
  def res_wait(timeout = nil)
41
- @to_io.wait(timeout)
41
+ IO.select([@to_io], nil, nil, timeout)
42
42
  nr = @to_io.nread
43
43
  nr > 0 or raise EOFError, "unexpected EOF from server"
44
- @to_io.recvmsg[0]
44
+ @to_io.recvmsg(nr, 0, 0)[0]
45
45
  end
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dtas hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Free Software command-line tools for audio playback, mastering, and
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.2
183
+ rubygems_version: 2.4.5
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: duct tape audio suite for *nix