view release on metacpan or search on metacpan
lib/Anki/Import.pm view on Meta::CPAN
version 0.030
=head1 OVERVIEW
Efficiently generate formatted Anki notes with your
text editor for easy import into Anki.
=head1 SYNOPSIS
# Step 1: Create the source file
lib/Anki/Import.pm view on Meta::CPAN
# Step 3: Import the resultant files into Anki
=head1 DESCRIPTION
Inputting notes into Anki can be a tedious chore. C<Anki::Import> lets you
you generate Anki notes with your favorite text editor (e.g. vim, BBEdit, Atom,
etc.) so you can enter formatted notes into Anki's database more efficiently.
At a minimum, you should have basic familiarity with using your computer's
command line terminal to make use of this program.
=head2 Steps for creating, processing and imorting new notes
=head3 Step 1: Generate the notes with your text editor
First, you create a specially formatted source file which
C<Anki::Import> will process. The source file is a simple text file with
basic formatting rules you must follow.
lib/Anki/Import.pm view on Meta::CPAN
=head3 Source file requirements and limitations
=head4 Use UTF-8 encoding
The source file should be a plain text file with UTF-8 encoding. UTF-8
is likely the default encoding method for your editor but check your editor's
settings and documentation for further details.
=head4 Avoid tabs
Since tab characters are used by Anki to split your fields, you should
lib/Anki/Import.pm view on Meta::CPAN
=head3 Getting the most from C<Anki::Import>
By itself, C<Anki::Import> will make it easier for you to format and
input your notes especially if you do a lot of basic HTML formatting. However,
the huge productivity gains of C<Anki::Import> can only be unlocked by getting
proficient wih your text editor of choice.
For example, you can generate templates for each of the note types you use to
make data entry exceptionally painless. And with a text editor like vim, you
can automate the generation of the formatting codes used by C<Anki::Import>
and make Anki note creation joyful, or at least much less tedious.
Teaching you how to use and optimize your text editor for C<Anki::Import> is
well beyond the scope of this document. But if you take the time now and do the
up front work of learning your text editor and tweaking it for use with
C<Anki::Import>, you will save a lot of time in the long run.
In the future, vim configurations and plugins for use with C<Anki::Import>
may be released as they are developed to help you get going faster with vim.
Unfortunately, other text editors cannot be supported as there are far too many
and far too little time to get familiar with all their features.
=head1 USAGE
C<anki_import> can be run from the command line or from within another perl
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnnoCPAN/Control.pm view on Meta::CPAN
}, "show_dist");
}
=item $obj->Edit
The edit screen (like Show, but includes the edit form).
=cut
sub Edit {
my ($self, $vars) = @_;
lib/AnnoCPAN/Control.pm view on Meta::CPAN
({
podver => $notepos->podver,
note => $notepos->note,
%$vars,
#message => "here ($section, $podver)" . $podver->pod->name,
}, "edit");
}
sub Raw_note {
my ($self, $vars) = @_;
my $notepos = $self->param_obj('NotePos');
lib/AnnoCPAN/Control.pm view on Meta::CPAN
sub Create {
my ($self, $vars) = @_;
$vars ||= {};
# get user, see if can edit
my $user = $self->user
or return $self->error("Not logged in; can't create note");
my $section = $self->param_obj('Section');
my $podver = $section->podver;
({
podver => $podver,
section => $section,
%$vars,
#message => "here ($section, $podver)" . $podver->name,
}, "edit");
}
sub _search_podver {
my ($self, $vars) = @_;
$vars ||= {};
lib/AnnoCPAN/Control.pm view on Meta::CPAN
my ($self) = @_;
my $notepos = $self->param_obj('NotePos');
my $section = $self->param_obj('Section');
# get user, see if can edit
my $user = $self->user
or return $self->_error("Not logged in; can't move");
$user->can_move($notepos->note)
or return $self->_error("Move not authorized");
lib/AnnoCPAN/Control.pm view on Meta::CPAN
my $notepos = $self->param_obj('NotePos');
my $note = $notepos->note;
my $section = $notepos->section;
# get user, see if can edit
my $user = $self->user
or return $self->_error("not logged in; can't move");
$user->can_hide($note)
or return $self->_error("move not authorized");
lib/AnnoCPAN/Control.pm view on Meta::CPAN
return $self->Main($vars) if $vars->{error};
$self->Show($vars);
}
# to save new note, need section and note text
# to save edited note, need notepos and note text
sub _save {
my ($self) = @_;
my $note_text = $self->param('note_text');
my ($note, $podver);
# get user, see if can edit
my $user = $self->user
or return $self->_error("Not logged in; can't save note");
if ($self->param('notepos')) { # edit existing note
my $notepos = $self->param_obj('NotePos');
$podver = $notepos->podver;
$note = $notepos->note;
$user->can_edit($note)
or return $self->_error("Edit not authorized");
$note->note($note_text);
$note->ip($ENV{REMOTE_ADDR});
#$note->time(time);
$note->update;
lib/AnnoCPAN/Control.pm view on Meta::CPAN
#$self->Main({message => "You have logged out"});
}
sub Prefs {
my ($self) = @_;
return $self->error("Can't edit prefs without logging in first!")
unless $self->user;
({}, 'prefs');
}
sub Save_prefs {
my ($self) = @_;
# XXX untaint
my $user = $self->user;
return $self->error("Can't edit prefs without logging in first!")
unless $user;
AnnoCPAN::DBI::Prefs->search(user => $user)->delete_all;
for my $name (@{AnnoCPAN::Config->option('prefs')}) {
AnnoCPAN::DBI::Prefs->create({user => $user, name => $name,
value => $self->param($name) || '' });
view all matches for this distribution
view release on metacpan or search on metacpan
t/ansible-test1/ansible.cfg view on Meta::CPAN
# If set, configures the path to the Vault password file as an alternative to
# specifying --vault-password-file on the command line.
#vault_password_file = /path/to/vault_password_file
# format of string {{ ansible_managed }} available within Jinja2
# templates indicates to users editing templates files will be replaced.
# replacing {file}, {host} and {uid} and strftime codes with proper values.
#ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
# {file}, {host}, {uid}, and the timestamp can all interfere with idempotence
# in some situations so the default is a static string:
#ansible_managed = Ansible managed
view all matches for this distribution
view release on metacpan or search on metacpan
src/ppport.h view on Meta::CPAN
ppport.h -- Perl/Pollution/Portability Version 3.24
Automatically created by Devel::PPPort running under perl 5.020000.
Do NOT edit this file directly! -- Edit PPPort_pm.PL and the
includes in parts/inc/ instead.
Use 'perldoc ppport.h' to view the documentation below.
----------------------------------------------------------------------
src/ppport.h view on Meta::CPAN
sub strip
{
my $self = do { local(@ARGV,$/)=($0); <> };
my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy =~ s/^(?=\S+)/ /gms;
$self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
$self =~ s/^SKIP.*(?=^__DATA__)/SKIP
if (\@ARGV && \$ARGV[0] eq '--unstrip') {
eval { require Devel::PPPort };
\$@ and die "Cannot require Devel::PPPort, please install.\\n";
if (eval \$Devel::PPPort::VERSION < $VERSION) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ante/Deluvian/Dialog.pm view on Meta::CPAN
$self->listbox(\@lines, input => "text");
}
1;
__END__
# Below is stub documentation for your module. You'd better edit it!
=head1 NAME
Ante::Deluvian::Dialog - Perl extension for very old style user interaction
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Any/Template/ProcessDir.pm view on Meta::CPAN
unlink($readme_file);
write_file(
$readme_file,
"Files in this directory generated from "
. $self->source_dir . ".\n",
"Do not edit files here, as they will be overwritten. Edit the source instead!"
);
}
}
sub generate_source_symlink {
lib/Any/Template/ProcessDir.pm view on Meta::CPAN
0775. No effect if you are using a single directory.
=item file_create_mode
Permissions mode to use when creating destination files. Defaults to 0444
(read-only), so that destination files are not accidentally edited.
=item ignore_files
Coderef which takes a full pathname and returns true if the file should be
ignored. By default, all files will be considered.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyData/Format/Mp3.pm view on Meta::CPAN
$str =~ s/^TAG(.*)/$1/;
my $genre = $str;
$genre =~ s/^.*(.)$/$1/g;
$str =~ s/(.)$//g;
$genre = unpack( 'C', $genre );
my @genres =("Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge", "Hip-Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "Pop", "R&B", "Rap", "Reggae", "Rock", "Techno", "Industrial", "Alternative", "Ska", "Death Metal", "Pranks...
$genre = $genres[$genre] || '';
my @cols = unpack 'A30 A30 A30 A4 A30', $str;
my $comment = pop @cols;
#print $comment;
@cols = map{$_ || ''} @cols;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Campfire.pm view on Meta::CPAN
1;
=head1 DESCRIPTION
L<http://campfirenow.com/> API required C<token> to `authorization`.
you can check it out on L<https://E<lt>usernameE<gt>.campfirenow.com/member/edit>.
=head2 ATTRIBUTES
=over
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/CouchDB/Database.pm view on Meta::CPAN
sub bulk_docs {
my ( $self, $docs, $options ) = @_;
my ( $cv, $cb ) = cvcb( $options, undef, $self->json_encoder );
my %props = (); ## _bulk_docs properties go to the request body
foreach my $property (qw(all_or_nothing new_edits)) {
if (my $value = delete $options->{$property}) {
## convert the respective value to the JSON boolean type
$props{$property} = $value eq 'false' ? JSON::false() : JSON::true();
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
MANIFEST.SKIP view on Meta::CPAN
\.deb$
\bdebian
\bDebian_CPANTS.txt$
-stamp$
# Avoid editors files
^.cproject\b
^.includepath\b
^.project\b
^.settings\b
^.vscode\b
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/EC2/Tiny.pm view on Meta::CPAN
=back
=head1 CREDITS
Credit goes to Mark Allen for L<Net::EC2::Tiny>.
=head1 AUTHOR
Sawyer X <xsawyerx@cpan.org>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/EditText.pm view on Meta::CPAN
our %READER;
our @EDITOR = ("rxvt", "-e", "vim");
=head1 NAME
AnyEvent::EditText - An easy way to startup a text editor
=head1 VERSION
Version 0.2
lib/AnyEvent/EditText.pm view on Meta::CPAN
=head1 SYNOPSIS
my $content = "Hello There!";
AnyEvent::EditText::edit ($content, sub {
my ($newcontent, $has_changed) = @_;
if ($has_changed) {
print "the content was edited";
}
});
=head1 DESCRIPTION
This little module will start a text editor in a seperate process without
stopping the current process. Usually something like a terminal with a vim
instance running in it will be started, but also a graphical editor could be
used (like I<gedit> or I<gvim>).
The editor will get the content passed to the C<edit> routine as temporary
file, and after you are done editing it (closed the editor) the callback
will be called with the possibly new content.
=head1 FUNCTIONS
=head2 set_editor (@sysargs)
This function configures the editor used. C<@sysargs> is a list of
arguments for the C<system> function, which will be called like this
by C<edit>:
system (@sysargs, $filename);
The default editor used will be:
AnyEvent::EditText::set_editor ("rxvt", "-e", "vim");
=cut
sub set_editor {
@EDITOR = @_;
}
=head2 edit ($content, $callback)
This routine will write C<$content> to a temporary file, fork
and call the editing process. After the process terminates the
temporary file is read and erased.
After that the content is sent back to the calling process, where the
C<$callback> is called with two arguments: The first will be the new content
and the second a flag indicating whether the content has changed.
=cut
sub edit {
my ($content, $finish) = @_;
pipe (my $par_rdr, my $child_wtr);
$par_rdr->autoflush (1);
$child_wtr->autoflush (1);
lib/AnyEvent/EditText.pm view on Meta::CPAN
});
} else {
$par_rdr->close;
die "couldn't fork: $!" unless defined $pid;
my ($fh, $filename) = tempfile ("text_edit_XXXXX", DIR => "/tmp");
print $fh $content;
close $fh;
my $ex = system (@EDITOR, $filename);
unless ($ex == 0) {
lib/AnyEvent/EditText.pm view on Meta::CPAN
Robin Redeker, C<< <elmex at ta-sa.org> >>
=head1 TODO
This module should probably first look in the environment to determine
which editor and terminal to use. This will be fixed in the next release.
=head1 BUGS
Please report any bugs or feature requests to
C<bug-text-edit at rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Edit>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
=head1 SUPPORT
view all matches for this distribution
view release on metacpan or search on metacpan
0.0.3 Fri Nov 30 10:04:43 2012 KST
- depend `Host` req header to `AnyEvent::HTTP`
0.0.2 Thu Oct 11 10:59:18 2012 KST
- support editing multiple header at once
- enhancement test
- tidied all source code
view all matches for this distribution
view release on metacpan or search on metacpan
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.033
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
requires "AnyEvent" => "0";
requires "AnyEvent::I3" => "0.19";
requires "Carp" => "0";
requires "Data::Compare" => "0";
view all matches for this distribution
view release on metacpan or search on metacpan
C<set> prefix.
All configuration data is stored in a human-readable (JSON) config file
stored in F<~/.perl-anyevent-mp> (or F<%appdata%/perl-anyevent-mp> on
loser systems, or wherever C<$ENV{PERL_ANYEVENT_MP_RC}> points to). Feel
free to look at it or edit it, the format is relatively simple.
=head2 SPECIFYING ARGUMENTS
Arguments can be specified just as with any other shell command, with a
few special cases:
my $node = shift @ARGV || $NODE;
$| = 1;
print <<EOF;
Entering interactive shell - no commandline editing of course (use rlfe etc.).
\= display a list of nodes
\=name switch to another node
package P switch to package P when evaluating
\$ECHO contains the name of a port that echos everything sent to it
view all matches for this distribution
view release on metacpan or search on metacpan
t/02_changing.t view on Meta::CPAN
my $cv = AE::cv;
my @dictionary = (qw(FINE â â CLOUD RAIN â â â â
⬠⪠â«));
diag("This test rewrite your current pasteboard. And do not edit pasteboard on running this test.");
### stash pasteboard content.
my $tmp_file = File::Temp->new( SUFFIX => '.pb' );
my $tmp_filename = $tmp_file->filename;
print {$tmp_file} `pbpaste`;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyEvent/Net/Amazon/S3/Bucket.pm view on Meta::CPAN
# TODO: _content_sub might become more async manner?
use Module::AnyEvent::Helper::Filter -as => __PACKAGE__, -target => 'Net::Amazon::S3::Bucket',
-transformer => 'Net::Amazon::S3',
-translate_func => [qw(add_key add_key_filename copy_key edit_metadata head_key get_key get_key_filename delete_key delete_bucket list list_all get_acl set_acl get_location_constraint)],
-replace_func => [qw(_send_request_expect_nothing_probed list_bucket list_bucket_all _do_http _send_request_expect_nothing _send_request)]
;
1;
lib/AnyEvent/Net/Amazon/S3/Bucket.pm view on Meta::CPAN
=item add_key_filename_async
=item copy_key_async
=item edit_metadata_async
=item head_key_async
=item get_key_async
view all matches for this distribution
view release on metacpan or search on metacpan
- Fixed 'Attempt to free unreferenced scalar: SV 0xdeadbeef during global
destruction.' in t/01-net-curl-compatibility.t (Stanislaw Pusep)
- Changes (Stanislaw Pusep)
0.009 2011-10-23T12:50:02
- max connections editable on-fly (Stanislaw Pusep)
- retry CodeRef fix (Stanislaw Pusep)
- eg/ fix (Stanislaw Pusep)
- Changes (Stanislaw Pusep)
0.008 2011-10-23T00:47:12
view all matches for this distribution
view release on metacpan or search on metacpan
Porttracker/protocol.pod view on Meta::CPAN
=item ageing_interval - ping sweep interval for this realm.
=back
=item "realm_info_modify" - edits the given realm
> [<id>, "realm_info_modify", <realm-gid>, {<prop>:<value>,...}]
< [<id>, 1]
A property hash followed by a realm gid. Keys of the hash are name,
Porttracker/protocol.pod view on Meta::CPAN
> [1, "poller_modify", "385611201213", ["98456723211"], [["test1",
"Test poller", "127.0.0.1", "test"]]]
< [1, 1]
=item "poller_info_modify - edits the given poller
This request edits the given poller with new values.
> [<id>, "poller_info_modify", <poller-gid>, {<prop>:<value>,...}]
< [<id>, 1]
A property hash followed by a poller gid. Keys expected in the hash
Porttracker/protocol.pod view on Meta::CPAN
> [1, "security_authentication_method_list", ["name"], ["90194313753", "90194313603"]]
< [1,1,[["RADIUS"],["Active Directory (LDAPS)"]]]
=item "security_authentication_modify" - modifies given authentication methods
This request edits given authentication method.
First argument is the authentication method gid.
All new values should be mentioned in a hash.
Valid properties are
Porttracker/protocol.pod view on Meta::CPAN
> [1, "group_settings", "98784248728", ["Add Realms", "Assign Devices"]]
< [1,1,[[["Add Realms",2]],[["3865500631171652",[["Assign Devices",0]]],
["3865500631171517",[["Assign Devices",0]]]]]]
=item "group_settings_modify" - edits group properties and permissions
> [<id>, "group_settings_modify", <group-gid>
, {"name":<group-name>, "description":<group description>}
, [[<system-role>, <permission>], ...], [[<realm-gid>,
[[<realm-role>, <permission>], ...]], ...] ]
view all matches for this distribution
view release on metacpan or search on metacpan
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.015
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
requires "AnyEvent::Fork" => "0";
requires "AnyEvent::Fork::RPC" => "0";
requires "AnyEvent::RabbitMQ" => "1.18";
requires "Carp" => "0";
view all matches for this distribution
view release on metacpan or search on metacpan
share/fixed_amqp0-9-1.xml view on Meta::CPAN
-->
<!--
Copyright Notice
================
Copyright (c) 2006-2008 Cisco Systems, Credit Suisse, Deutsche Boerse
Systems, Envoy Technologies, Inc., Goldman Sachs, IONA Technologies PLC,
iMatix Corporation, JPMorgan Chase Bank Inc. N.A, Novell, Rabbit
Technologies Ltd., Red Hat, Inc., TWIST Process Innovations Ltd, WS02
Inc. and 29West Inc. All rights reserved.
License
=======
Cisco Systems, Credit Suisse, Deutsche Boerse Systems, Envoy Technologies,
Inc., Goldman Sachs, IONA Technologies PLC, iMatix Corporation, JPMorgan
Chase Bank Inc. N.A, Novell, Rabbit Technologies Ltd., Red Hat, Inc.,
TWIST Process Innovations Ltd, WS02, Inc. and 29West Inc. (collectively,
the "Authors") each hereby grants to you a worldwide, perpetual,
royalty-free, nontransferable, nonexclusive license to (i) copy, display,
view all matches for this distribution
view release on metacpan or search on metacpan
bin/rltelnet view on Meta::CPAN
rltelnet unix/ /path/to/socket
=head1 DESCRIPTION
This program connects to a socket using AnyEvent::Socket::tcp_connect, prints
everything it receives from the socket and offers a readline editing interface
to send lines to the socket.
This is very remotely what telnet does when used on a non-telnet socket,
except that it uses readline and supports more types of socketsd (e.g.
unix domain sockets).
view all matches for this distribution
view release on metacpan or search on metacpan
- E_COMMAND_EXEC renamed to E_OPRN_ERROR.
- E_CLIENT renamed to E_UNEXPECTED_DATA,
- Changes in POD.
1.112 Fri Oct 27 15:30:25 MSK 2012
- POD edited.
1.111 Fri Oct 27 15:30:25 MSK 2012
- Minor changes in POD.
- Slight improvement in unit test.
- Minor internal changes.
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# the same terms as the Perl 5 programming language system itself.
#
# This Makefile.PL for AnyEvent-Riak was generated by
# Dist::Zilla::Plugin::MakeMaker::Fallback 0.005
# and Dist::Zilla::Plugin::MakeMaker::Awesome 0.33.
# Don't edit it but the dist.ini and plugins used to construct it.
use strict;
use warnings;
BEGIN {
view all matches for this distribution
view release on metacpan or search on metacpan
of utf-8 mode
* Add unicode test
* Document error handling with Callback::Frame
* Remove scary "the api might change" warning. I think we're
pretty much stable now
* Misc doc edits
0.602 2012-12-13
* Exceptions in setup callback are now propagated to client
* Minor doc updates (more coming)
view all matches for this distribution
view release on metacpan or search on metacpan
ppport.h -- Perl/Pollution/Portability Version 3.36
Automatically created by Devel::PPPort running under perl 5.018002.
Do NOT edit this file directly! -- Edit PPPort_pm.PL and the
includes in parts/inc/ instead.
Use 'perldoc ppport.h' to view the documentation below.
----------------------------------------------------------------------
dump_trie_interim_table|||
dump_trie|||
dump_vindent||5.006000|
dumpuntil|||
dup_attrlist|||
edit_distance|||n
emulate_cop_io|||
eval_pv|5.006000||p
eval_sv|5.006000||p
exec_failed|||
expect_number|||
sub strip
{
my $self = do { local(@ARGV,$/)=($0); <> };
my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy =~ s/^(?=\S+)/ /gms;
$self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
$self =~ s/^SKIP.*(?=^__DATA__)/SKIP
if (\@ARGV && \$ARGV[0] eq '--unstrip') {
eval { require Devel::PPPort };
\$@ and die "Cannot require Devel::PPPort, please install.\\n";
if (eval \$Devel::PPPort::VERSION < $VERSION) {
view all matches for this distribution
view release on metacpan or search on metacpan
ppport.h -- Perl/Pollution/Portability Version 3.20
Automatically created by Devel::PPPort running under perl 5.016003.
Do NOT edit this file directly! -- Edit PPPort_pm.PL and the
includes in parts/inc/ instead.
Use 'perldoc ppport.h' to view the documentation below.
----------------------------------------------------------------------
sub strip
{
my $self = do { local(@ARGV,$/)=($0); <> };
my($copy) = $self =~ /^=head\d\s+COPYRIGHT\s*^(.*?)^=\w+/ms;
$copy =~ s/^(?=\S+)/ /gms;
$self =~ s/^$HS+Do NOT edit.*?(?=^-)/$copy/ms;
$self =~ s/^SKIP.*(?=^__DATA__)/SKIP
if (\@ARGV && \$ARGV[0] eq '--unstrip') {
eval { require Devel::PPPort };
\$@ and die "Cannot require Devel::PPPort, please install.\\n";
if (eval \$Devel::PPPort::VERSION < $VERSION) {
view all matches for this distribution
view release on metacpan or search on metacpan
keysize (reported by Paul Howarth).
- documented Rocco fabricating statements about AnyEvent and me.
6.14 Tue Jan 31 20:00:24 CET 2012
- AnyEvent::Impl::Tk was broken due to a mysterious "die" inside,
probably an editing mistake (reported by Darin McBride).
6.13 Thu Jan 12 07:27:01 CET 2012
- AnyEvent::Util::fork_call checked for POSIX availability in the wrong way,
causing it to fail if POSIX wasn't loaded already (analysed by Rock Power).
- AnyEvent::Handle::push_read (line => did pass $1 directly, so
view all matches for this distribution
view release on metacpan or search on metacpan
lib/AnyMerchant/Gateway.pm view on Meta::CPAN
package AnyMerchant::Gateway;
use Moo::Role;
requires qw(debit authorize capture credit void);
1;
__END__
lib/AnyMerchant/Gateway.pm view on Meta::CPAN
=head1 METHODS
The param C<$amount> is an integer representing cents.
An amount of 1000 corresponds to $10.00.
The param C<$source> refers to either a credit card or a bank account.
It may be a proper object or a hashref.
=head2 debit
debit($amount, $source, %params)
Charge a credit card or debit a bank account.
=head2 authorize
authorize($amount, $source, %params)
lib/AnyMerchant/Gateway.pm view on Meta::CPAN
capture($amount, $id, %params)
Capture an authorized transaction.
=head2 credit
credit($amount, $target, %params)
Credit account.
=head2 void
void($id, %params)
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# This Makefile.PL for was generated by Dist::Zilla.
# Don't edit it but the dist.ini used to construct it.
use strict;
use warnings;
use ExtUtils::MakeMaker 6.31;
view all matches for this distribution