example/drives.rb in rbcdio-0.01 vs example/drives.rb in rbcdio-0.02
- old
+ new
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby
-# $Id: drives.rb,v 1.8 2006/12/16 14:29:06 rocky Exp $
+# $Id: drives.rb,v 1.9 2007/10/13 23:25:41 rocky Exp $
#
# Program to read CD blocks. See read-cd from the libcdio distribution
# for a more complete program.
#
-# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
+# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@@ -25,10 +25,9 @@
if(File::exists?(mypath + "/../lib/cdio.rb"))
$: << File.dirname(__FILE__) + '/../lib'
$: << File.dirname(__FILE__) + '/../ext/cdio'
else
require 'rubygems'
- require_gem "rbcdio"
end
require "cdio"
def print_drive_class(msg, bitmask, any)
cd_drives = Cdio::devices_with_cap(bitmask, any)