Commits

Toby Inkster committed c0cb149

Released 1.002

Comments (0)

Files changed (5)

+* Moosify (perhaps Any::Moose).
+* On error, instead of returning undef from constructor, throw exception.
+* Perhaps release as 2.000 due to inevitable API changes,
+  or take a new distribution name (e.g. Web::ID).
+* Remove dependency on CGI.pm.
+* Cookie stuff could get moved into an optional Moose::Role.

examples/testing.pl

 use CGI::Auth::FOAF_SSL;
-use Data::Dumper;
+use Data::Printer;
 
 my $cert = '-----BEGIN CERTIFICATE-----
 MIIDwjCCAyugAwIBAgIBADANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMCR0Ix
 -----END CERTIFICATE-----';
 
 my $auth = CGI::Auth::FOAF_SSL->new($cert);
-print Dumper($auth);
+p $auth;
 
 #print $auth->account->identity . "\n";
 #print $auth->account->name . "\n";

lib/CGI/Auth/FOAF_SSL.pm

 	$ua_string = sprintf('%s/%s ', __PACKAGE__, $VERSION);	
 
 	$WWW_Finger = 0;
+	if (0) # DISABLED
 	{
 		local $@ = undef;
 		eval
 @prefix dcs:     <http://ontologi.es/doap-changeset#> .
 @prefix dc:      <http://purl.org/dc/terms/> .
 @prefix foaf:    <http://xmlns.com/foaf/0.1/> .
-@prefix my:      <https://metacpan.org/release/CGI-Auth-FOAF_SSL#> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/CGI-Auth-FOAF_SSL/> .
 @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix toby:    <http://tobyinkster.co.uk/#> .
 @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
 	rdfs:label      "Stable release."@en .
 
 my:project :release my:v_1-002 .
-my:v_1-000
+my:v_1-002
 	a               :Version ;
 	dc:issued       "2011-11-21"^^xsd:date ;
 	:revision       "1.002"^^xsd:string ;
 			[ rdfs:label "Minor cleanups."@en ] ,
 			[ rdfs:label "use 5.010"@en ; a dcs:Update ] ,
 			[ rdfs:label "Scalar::Util::refaddr unreliable for identifying objects; use Object::ID::object_id instead."@en ] ,
-			[ rdfs:label "Module::Package::RDF"@en ; a dcs:Packaging ]
+			[ rdfs:label "Module::Package::RDF"@en ; a dcs:Packaging ] ,
+			[ rdfs:label "Temporarily disable WWW::Finger stuff, as it's grown very stale." ; a dcs:Removal ]
 		] .
 @prefix dcs:     <http://ontologi.es/doap-changeset#> .
 @prefix dc:      <http://purl.org/dc/terms/> .
 @prefix foaf:    <http://xmlns.com/foaf/0.1/> .
-@prefix my:      <https://metacpan.org/release/CGI-Auth-FOAF_SSL#> .
+@prefix my:      <http://purl.org/NET/cpan-uri/dist/CGI-Auth-FOAF_SSL/> .
 @prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
 @prefix toby:    <http://tobyinkster.co.uk/#> .
 @prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .