Permalink
Browse files

Version 2.1. Added POD and Build.PL. Renamed load to get.

  • Loading branch information...
1 parent 2e8224e commit 2d4ce0609513a5e40fd4d182f530dc9187880741 Tim Totten committed Nov 13, 2011
Showing with 320 additions and 46 deletions.
  1. +4 −1 .gitignore
  2. +21 −0 Build.PL
  3. +2 −1 README
  4. +292 −43 lib/Disc/Info.pm
  5. +1 −1 t/20-object-api.t
View
@@ -1,2 +1,5 @@
*.swp
-*~
+*~
+Build
+_build
+MYMETA.*
View
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use Module::Build;
+
+Module::Build->new(
+ dist_author => "Timothy Totten",
+ module_name => 'Disc::Info',
+ license => 'artistic_2',
+ requires => {
+ 'DateTime' => 0,
+ },
+ build_requires => {
+ 'Test::More' => 0,
+ 'Test::Exception' => 0,
+ },
+ create_makefile_pl => 'traditional',
+)->create_build_script;
+
View
3 README
@@ -14,7 +14,7 @@ let me know. Using it on an .iso file should work on any OS.
Create an object, that offers methods you can query.
use Disc::Info;
- my $disc = Disc::Info->load("/dev/cdrom");
+ my $disc = Disc::Info->get("/dev/cdrom");
say $disc->name." was created in the year ".$disc->date->year;
It offers the following methods:
@@ -81,3 +81,4 @@ https://github.com/supernovus/
= License =
Artistic License 2.0
+
Oops, something went wrong.

0 comments on commit 2d4ce06

Please sign in to comment.