perl-Data-Sah-Coerce-0.033-alt1.noarch.rpm


Advertisement

Description

perl-Data-Sah-Coerce - Coercion rules for Data::Sah

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Data-Sah-Coerce-0.033-alt1.noarch.rpm
Package name perl-Data-Sah-Coerce
Package version 0.033
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 140.19 KB
Installed size 140.19 KB
This distribution contains a standard set of coercion rules for the Data::Sah manpage. It
is separated from the `Data-Sah' distribution and can be used independently.
A coercion rule is put in
`Data::Sah::Coerce::$COMPILER::$TARGET_TYPE::$SOURCE_TYPE_AND_EXTRA_DESCRIPTION'
module, for example: the Data::Sah::Coerce::perl::date::float_epoch manpage for
converting date from integer (Unix epoch) or
the Data::Sah::Coerce::perl::date::str_iso8601 manpage for converting date from ISO8601
strings like "2016-05-15".
Basically, a coercion rule will provide an expression (`expr_match') that
evaluates to true when data can be coerced, and an expression (`expr_coerce')
to actually coerce/convert data to the target type. This rule can be combined
with other rules to form the final coercion code.
The module must contain `meta' subroutine which must return a hashref that has
the following keys (`*' marks that the key is required):
=over
=item * v* => int (default: 1)
Metadata specification version. Currently at 2 (bumped from 1 to exclude old
module names).
=item * enable_by_default* => bool
Whether the rule should be used by default. Some rules might be useful in
certain situations only and can set this key's value to 0.
To explicitly enable a disabled-by-default rule or explicitly disable an
enabled-by-default rule, a Sah schema can set the attribute `x.coerce_rules' or
`x.perl.coerce_rules' to something like `["!str_iso8601", "str_alami"]'
(this means to exclude the `str_iso8601' rule but enable the `str_alami'
rule).
=item * might_die => bool (default: 0)
Whether the rule will generate code that might die (e.g. does not trap failure
in a conversion process). An example of a rule like this is coercing from string
in the form of "YYYY-MM-DD" to a DateTime object. The rule might match any
string in the form of `/\A(\d{4})-(\d{2})-(\d{2})\z/' and feed it to `DateTime->new', without checking of a valid date, so the DateTime object
construction might die.
An example of rule that "might not die" is coercing fro...

Alternatives

Package Version Architecture Repository
perl-Data-Sah-Coerce - - -

Requires

Name Value
/usr/share/perl5 -
perl(File/Temp.pm) -
perl(IPC/System/Options.pm) >= 0.331
perl(JSON.pm) -
perl(Log/ger.pm) >= 0.023
perl(Nodejs/Util.pm) >= 0.007
perl(subroutines.pm) -
perl-base >= 1:5.10.1
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Data/Sah/Coerce.pm) = 0.033
perl(Data/Sah/Coerce/js/bool/float.pm) = 0.033
perl(Data/Sah/Coerce/js/bool/str.pm) = 0.033
perl(Data/Sah/Coerce/js/date/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/js/date/obj_Date.pm) = 0.033
perl(Data/Sah/Coerce/js/date/str.pm) = 0.033
perl(Data/Sah/Coerce/js/datenotime/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/js/datenotime/obj_Date.pm) = 0.033
perl(Data/Sah/Coerce/js/datenotime/str.pm) = 0.033
perl(Data/Sah/Coerce/js/datetime/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/js/datetime/obj_Date.pm) = 0.033
perl(Data/Sah/Coerce/js/datetime/str.pm) = 0.033
perl(Data/Sah/Coerce/js/duration/float_secs.pm) = 0.033
perl(Data/Sah/Coerce/js/duration/str_iso8601.pm) = 0.033
perl(Data/Sah/Coerce/js/timeofday/str_hms.pm) = 0.033
perl(Data/Sah/Coerce/perl/bool/str.pm) = 0.033
perl(Data/Sah/Coerce/perl/date/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/perl/date/float_epoch_always.pm) = 0.033
perl(Data/Sah/Coerce/perl/date/obj_DateTime.pm) = 0.033
perl(Data/Sah/Coerce/perl/date/obj_TimeMoment.pm) = 0.033
perl(Data/Sah/Coerce/perl/date/str_iso8601.pm) = 0.033
perl(Data/Sah/Coerce/perl/datenotime/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/perl/datenotime/float_epoch_always.pm) = 0.033
perl(Data/Sah/Coerce/perl/datenotime/obj_DateTime.pm) = 0.033
perl(Data/Sah/Coerce/perl/datenotime/obj_TimeMoment.pm) = 0.033
perl(Data/Sah/Coerce/perl/datenotime/str_iso8601.pm) = 0.033
perl(Data/Sah/Coerce/perl/datetime/float_epoch.pm) = 0.033
perl(Data/Sah/Coerce/perl/datetime/float_epoch_always.pm) = 0.033
perl(Data/Sah/Coerce/perl/datetime/obj_DateTime.pm) = 0.033
perl(Data/Sah/Coerce/perl/datetime/obj_TimeMoment.pm) = 0.033
perl(Data/Sah/Coerce/perl/datetime/str_iso8601.pm) = 0.033
perl(Data/Sah/Coerce/perl/duration/float_secs.pm) = 0.033
perl(Data/Sah/Coerce/perl/duration/obj_DateTimeDuration.pm) = 0.033
perl(Data/Sah/Coerce/perl/duration/str_human.pm) = 0.033
perl(Data/Sah/Coerce/perl/duration/str_iso8601.pm) = 0.033
perl(Data/Sah/Coerce/perl/float/str_percent.pm) = 0.033
perl(Data/Sah/Coerce/perl/int/str_percent.pm) = 0.033
perl(Data/Sah/Coerce/perl/timeofday/obj_DateTimeOfDay.pm) = 0.033
perl(Data/Sah/Coerce/perl/timeofday/str_hms.pm) = 0.033
perl(Data/Sah/CoerceCommon.pm) = 0.033
perl(Data/Sah/CoerceJS.pm) = 0.033
perl-Data-Sah-Coerce = 0.033-alt1

Download

Type URL
Mirror ftp.altlinux.org
Binary Package perl-Data-Sah-Coerce-0.033-alt1.noarch.rpm
Source Package perl-Data-Sah-Coerce-0.033-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Data-Sah-Coerce rpm package:
    # sudo apt-get install perl-Data-Sah-Coerce

Files

Path
/usr/share/doc/perl-Data-Sah-Coerce-0.033/Changes
/usr/share/doc/perl-Data-Sah-Coerce-0.033/LICENSE
/usr/share/doc/perl-Data-Sah-Coerce-0.033/README
/usr/share/perl5/Data/
/usr/share/perl5/Data/Sah/Coerce.pm
/usr/share/perl5/Data/Sah/CoerceCommon.pm
/usr/share/perl5/Data/Sah/CoerceJS.pm
/usr/share/perl5/Data/Sah/Coerce/
/usr/share/perl5/Data/Sah/Coerce/js/
/usr/share/perl5/Data/Sah/Coerce/js/bool/float.pm
/usr/share/perl5/Data/Sah/Coerce/js/bool/str.pm
/usr/share/perl5/Data/Sah/Coerce/js/date/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/js/date/obj_Date.pm
/usr/share/perl5/Data/Sah/Coerce/js/date/str.pm
/usr/share/perl5/Data/Sah/Coerce/js/datenotime/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/js/datenotime/obj_Date.pm
/usr/share/perl5/Data/Sah/Coerce/js/datenotime/str.pm
/usr/share/perl5/Data/Sah/Coerce/js/datetime/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/js/datetime/obj_Date.pm
/usr/share/perl5/Data/Sah/Coerce/js/datetime/str.pm
/usr/share/perl5/Data/Sah/Coerce/js/duration/float_secs.pm
/usr/share/perl5/Data/Sah/Coerce/js/duration/str_iso8601.pm
/usr/share/perl5/Data/Sah/Coerce/js/timeofday/str_hms.pm
/usr/share/perl5/Data/Sah/Coerce/perl/
/usr/share/perl5/Data/Sah/Coerce/perl/bool/str.pm
/usr/share/perl5/Data/Sah/Coerce/perl/date/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/perl/date/float_epoch_always.pm
/usr/share/perl5/Data/Sah/Coerce/perl/date/obj_DateTime.pm
/usr/share/perl5/Data/Sah/Coerce/perl/date/obj_TimeMoment.pm
/usr/share/perl5/Data/Sah/Coerce/perl/date/str_iso8601.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datenotime/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datenotime/float_epoch_always.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datenotime/obj_DateTime.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datenotime/obj_TimeMoment.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datenotime/str_iso8601.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datetime/float_epoch.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datetime/float_epoch_always.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datetime/obj_DateTime.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datetime/obj_TimeMoment.pm
/usr/share/perl5/Data/Sah/Coerce/perl/datetime/str_iso8601.pm
/usr/share/perl5/Data/Sah/Coerce/perl/duration/float_secs.pm
/usr/share/perl5/Data/Sah/Coerce/perl/duration/obj_DateTimeDuration.pm
/usr/share/perl5/Data/Sah/Coerce/perl/duration/str_human.pm
/usr/share/perl5/Data/Sah/Coerce/perl/duration/str_iso8601.pm
/usr/share/perl5/Data/Sah/Coerce/perl/float/str_percent.pm
/usr/share/perl5/Data/Sah/Coerce/perl/int/str_percent.pm
/usr/share/perl5/Data/Sah/Coerce/perl/timeofday/obj_DateTimeOfDay.pm
/usr/share/perl5/Data/Sah/Coerce/perl/timeofday/str_hms.pm

See Also

Package Description
perl-Data-Sah-Coerce-perl-date-str_alami-0.010-alt1.noarch.rpm Coerce date from string parsed by DateTime::Format::Alami
perl-Data-Sah-Coerce-perl-date-str_alami_en-0.010-alt1.noarch.rpm Coerce date from string parsed by DateTime::Format::Alami::EN
perl-Data-Sah-Coerce-perl-date-str_alami_id-0.010-alt1.noarch.rpm Coerce date from string parsed by DateTime::Format::Alami::ID
perl-Data-Sah-Coerce-perl-date-str_flexible-0.004-alt1.noarch.rpm Coerce date from string parsed by DateTime::Format::Flexible
perl-Data-Sah-Coerce-perl-date-str_natural-0.008-alt1.noarch.rpm Coerce date from string parsed by DateTime::Format::Natural
perl-Data-Sah-Coerce-perl-duration-str_alami_en-0.005-alt1.noarch.rpm Coerce duration from string parsed by DateTime::Format::Alami::EN
perl-Data-Sah-Coerce-perl-duration-str_alami_id-0.005-alt1.noarch.rpm Coerce duration from string parsed by DateTime::Format::Alami::ID
perl-Data-Sah-Coerce-perl-str-str_to_cryptocurrency_code-0.005-alt1.noarch.rpm Coerce string containing cryptocurrency code/name/safename to code
perl-Data-Sah-Coerce-perl-str-str_to_cryptocurrency_safename-0.005-alt1.noarch.rpm Coerce string containing cryptocurrency code/name/safename to safename
perl-Data-Sah-Coerce-perl-str-str_to_cryptoexchange_currency_pair-0.003-alt1.noarch.rpm Coerce string into cryptoexchange currency pair, e.g. LTC/USD
perl-Data-Sah-Coerce-perl-str-str_to_cryptoexchange_safename-0.005-alt1.noarch.rpm Coerce string containing cryptoexchange code/name/safename to safename
perl-Data-Sah-Coerce-perl-str-str_to_currency_pair-0.003-alt1.noarch.rpm Coerce string into currency pair, e.g. USD/IDR
perl-Data-Sah-Coerce-perl-str-str_to_fiat_or_cryptocurrency_code-0.003-alt1.noarch.rpm Coerce string containing fiat/cryptocurrency code/name/safename to uppercase code
perl-Data-Sah-Coerce-perl-str-str_toupper-0.004-alt1.noarch.rpm Coerce string to upper case
perl-Data-Sah-Coerce-perl-str-str_trim-0.004-alt1.noarch.rpm Trim whitespaces at the beginning and end of string
Advertisement
Advertisement