Хранилища Subversion geo-modmetar

Сравнить редакции

Не учитывать пробелы Редакция 3 → Редакция 4

/trunk/README
1,4 → 1,4
Readme for Mod::Geo::METAR
Readme for Geo::ModMETAR
 
Accessing Aviation Weather Information with Perl.
 
9,17 → 9,17
 
BACKGROUND
 
This is the README file for the Mod::Geo::METAR Perl module.
This is the README file for the Geo::ModMETAR Perl module.
 
The Mod::Geo::METAR home page is located at:
The Geo::ModMETAR home page is located at:
 
http://astro.uni-altai.ru/~aw/perl/Mod-Geo-METAR/
http://astro.uni-altai.ru/~aw/perl/Geo-ModMETAR/
 
There may be bugs in the code as well as in the documentation. If
you find either, I'd appreciate a patch or at least a mail message
to let me know what's wrong so that I can add it to the TODO list.
 
Mod::Geo::METAR as been developed and tested on Linux and Solaris
Geo::ModMETAR as been developed and tested on Linux and Solaris
as well as Windows NT. It may well work on other platforms. It is
pure Perl. If you install it on another platform, and have trouble
I'd like to hear about it. If you develop patches for that
28,13 → 28,13
REQUIREMENTS
 
You will need Perl 5.005 or newer to install and use
Mod::Geo::METAR. It may work with older versions of Perl, but I
Geo::ModMETAR. It may work with older versions of Perl, but I
make no guarantees.
 
 
INSTALLATION
 
Installing Mod::Geo::METAR is an easy process.
Installing Geo::ModMETAR is an easy process.
 
$ perl Makefile.PL
$ make
44,13 → 44,13
 
DOCUMENTATION
 
The documentation is built-in to the Mod::Geo::METAR module in POD
The documentation is built-in to the Geo::ModMETAR module in POD
format. You can use any of the pod2* converters to translate it
to a more readable format. The three most common formats are
'man', 'html', and 'text'.
 
When you ran the 'make install' above, documentation should have
been installed on your system such that 'perldoc Mod::Geo::METAR'
been installed on your system such that 'perldoc Geo::ModMETAR'
will spit it out. Of course, you can run your favorite pod
converter and generate it in alternative formats.
 
61,7 → 61,7
directory. They are provided as examples. They should provide an
idea of what you can do with this module.
 
simple_dump.pl Process a simple METAR.
simple_dump.pl Process a simple ModMETAR.
fetch_temp.pl Fetch the temperature and print it out.
 
If you develop a good example that would be useful to others, I'd
70,6 → 70,6
 
TODO LIST
 
If you're wondering what will come next in Mod::Geo::METAR, see
If you're wondering what will come next in Geo::ModMETAR, see
the TODO file.
 
/trunk/examples/fetch_temp.pl
1,12 → 1,10
#!/usr/bin/perl -w
 
# $Id: fetch_temp.pl,v 1.1 2007/11/13 21:19:27 koos Exp $
 
# Brief Description
# =================
#
# fetch_temp.pl is a program that demonstrates how to get the current
# temperature from a nearby (or not) airport using Geo::METAR and the
# temperature from a nearby (or not) airport using Geo::ModMETAR and the
# LWP modules.
#
# Given an airport site code on the command line, fetch_temp.pl
/trunk/examples/simple_dump.pl
1,9 → 1,7
#!/usr/bin/perl
 
# $Id: simple_dump.pl,v 1.1 2007/11/13 21:19:27 koos Exp $
# Example script for ModMETAR.pm.
 
# Example script for METAR.pm.
 
use Geo::ModMETAR;
 
my $m = new Geo::ModMETAR;
/trunk/ModMETAR.pm
1,5 → 1,5
# $Id: METAR.pm,v 1.11 2008/01/02 13:47:00 koos Exp $
 
# AW: create fork Geo::METAR as Geo::ModMETAR
#
# KH: fix the parser
# should be a finite state machine
# - metar has rules what comes after what. but codes can be missing.
/trunk/t/metar.t
1,8 → 1,7
#!/usr/bin/perl
#
# $Id: metar.t,v 1.1 2007/11/13 21:19:27 koos Exp $
#
# Test script for METAR installation.
# Test script for ModMETAR installation.
 
use strict;
use Test;
13,13 → 12,13
 
my %tally = (passed => 0, failed => 0, skipped => 0);
 
print "Testing METAR.\n";
print "Testing ModMETAR.\n";
 
my $m = new Geo::ModMETAR;
 
# Create a new instance.
 
if (ref $m eq 'Mod::Geo::METAR') {
if (ref $m eq 'Geo::ModMETAR') {
ok(1);
} else {
ok(0);