Commit 75ead53f authored by Mattias Päivirinta's avatar Mattias Päivirinta
Browse files

Merge pull request #10 in PDT/whois-selftest-tool from...

Merge pull request #10 in PDT/whois-selftest-tool from ~MATTIASP/whois-selftest-tool:releasenotes to develop

* commit 'badec81e':
  Tidy
  Updated installation information.
  Corrected release information. Updated installation information.
  Updated .gitignore.
  Updated release notes for v1.2.0 release.
parents d30593ae badec81e
......@@ -14,3 +14,5 @@ PDT-TS-Whois-*
Makefile.PL
META.json
META.yml
*~
.DS_Store
......@@ -24,9 +24,12 @@ Version history
===============
* v1.0.0 - Initial public release (2015-12-03)
* v1.1.0 - Updated public release (2016-01-08)
* v1.2.0 - Updated public release (2016-02-02)
The v1.1.0 release primarily matches the updates to the PDT Whois TP and TCs in the version 2.9 document release. It also handles the issue with IDN in the v1.0.0 release and corrects found bugs.
The v1.2.0 release primarily matches the updates to the PDT Whois TP in the the version 2.10 document release. It also corrects found bugs.
Specification compatibility matrix
----------------------------------
Refer to this compatibility matrix when deciding which version of Whois Selftest
......@@ -45,6 +48,10 @@ Tool to use.
<td>v1.1.0</td>
<td>v.2.9</td>
</tr>
<tr>
<td>v1.2.0</td>
<td>v.2.10</td>
</tr>
</table>
Roadmap
......@@ -96,7 +103,7 @@ other OSs.
Installation
============
Clone the project repository and choose version according to the specification
compatibility matrix.
compatibility matrix. In the normal case, choose the latest version.
$> git clone https://github.com/dotse/Whois-Selftest-Tool.git <srcdir>
$> cd <srcdir>
......@@ -109,10 +116,12 @@ Install Whois Selftest Tool scripts and libraries.
$> ./Build test
$> ./Build install
To check the installation run the scripts with `--help`.
To check the installation run the scripts with `--help`. Before the whois-test
script can be run, the EPP database must be fetched.
$> whois-test --help
$> whois-fetch-epp-repo-ids --help
$> whois-fetch-epp-repo-ids
$> whois-test --help
After installing, you can find documentation for this module with the
perldoc command.
......
libwhois-selftest-tool-perl (1.2.0-1) unstable; urgency=low
* Matches the updates to the PDT Whois TP in the version 2.10 document release
* Corrects found bugs
-- Mattias Päivärinta <mattias.paivarinta@doxwork.com> Tue, 02 Feb 2016 16:00:00 +0100
libwhois-selftest-tool-perl (1.1.0-1) unstable; urgency=low
* Matches the updates to the PDT Whois TP and TCs in the version 2.9 document release
......
......@@ -4,7 +4,7 @@ use strict;
use warnings;
use 5.014;
use version; our $VERSION = qv( 1.1.0 );
use version; our $VERSION = qv( 1.2.0 );
=pod
......
......@@ -50,8 +50,8 @@ sub extract_roid {
}
elsif ( $token eq 'roid line' ) {
ref $value eq 'ARRAY' or croak "'roid line' value expected to be arrayref";
defined $value->[0] or croak "'roid line' value expected to have roid at position 0";
defined $value->[1] or croak "'hostname' value expected to have roid at position 1";
defined $value->[0] or croak "'roid line' value expected to have roid at position 0";
defined $value->[1] or croak "'hostname' value expected to have roid at position 1";
my ( $roid, $hostname ) = @{$value};
my @errors;
push @errors, grep { $_ ne 'expected roid suffix to be a registered epp repo id' } $types->validate_type( 'roid', $roid );
......@@ -95,7 +95,8 @@ sub scrub_u_label {
);
defined $ascii or croak 'unexpected return value';
return lc( $ascii =~ s/\.?$//r );
$ascii =~ s/\.?$//;
return lc( $ascii );
}
1;
......@@ -429,7 +429,7 @@ sub _line {
return;
}
ref $errors eq 'ARRAY' or confess;
ref $errors eq 'ARRAY' or confess;
ref $token_value eq 'ARRAY' or confess;
my ( $field_key, $field_translations, $field_value ) = @$token_value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment