view release on metacpan or search on metacpan
},
"runtime" : {
"requires" : {
"Crypt::RSA" : "0",
"Encode::Locale" : "0",
"IO::Socket::SSL" : "1.94",
"Mojolicious" : "6.11"
}
}
},
"release_status" : "stable",
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mojo/SlackRTM.pm view on Meta::CPAN
package Mojo::SlackRTM;
use Mojo::Base 'Mojo::EventEmitter';
use IO::Socket::SSL;
use Mojo::IOLoop;
use Mojo::JSON ();
use Mojo::Log;
use Mojo::UserAgent;
use Scalar::Util ();
view all matches for this distribution
view release on metacpan or search on metacpan
requires 'Devel::Cover::Report::Coveralls' => '0.11';
requires 'Devel::Cover::Report::Kritika' => '0.05';
};
on test => sub {
requires 'IO::Socket::SSL' => '2.009' if $ENV{CI};
};
if ($ENV{AUTHOR_RELEASE}) {
requires 'App::git::ship';
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/mojo/user_agent.t view on Meta::CPAN
ok !Mojo::IOLoop::Client->can_socks, 'no SOCKS5 support';
# HTTPS request without TLS support
$ua = Mojo::UserAgent::Cached->new;
$tx = $ua->get($ua->server->url->scheme('https'));
like $tx->error->{message}, qr/IO::Socket::SSL/, 'right error';
ok !Mojo::IOLoop::TLS->can_tls, 'no TLS support';
# Promises (rejected)
my $error;
$ua->get_p($ua->server->url->scheme('https'))->catch(sub { $error = shift })->wait;
like $error, qr/IO::Socket::SSL/, 'right error';
# No non-blocking name resolution
ok !Mojo::IOLoop::Client->can_nnr, 'no non-blocking name resolution support';
# Blocking
view all matches for this distribution
view release on metacpan or search on metacpan
- Fix broken dist.ini
1.23 2016-04-13 14:44:41-05:00 America/Chicago
- Update tests to deal with failures due to missing / old versions of
IO::Socket::SSL
1.22 2016-04-13 13:03:44-05:00 America/Chicago
- Auto-add "provides" to META.* by means of
Dist::Zilla::Plugin::MetaProvides::Package. Submitted by Mohammad Anwar
view all matches for this distribution
view release on metacpan or search on metacpan
.travis.yml view on Meta::CPAN
- "5.16"
- "5.10"
env:
- "HARNESS_OPTIONS=j4"
install:
- "cpanm -n Test::Pod Test::Pod::Coverage IO::Socket::SSL CHI"
- "cpanm -n --installdeps ."
notifications:
email: false
view all matches for this distribution
view release on metacpan or search on metacpan
t/02_multiple_ua.t view on Meta::CPAN
use Mojo::Base -strict;
use Test::More;
use Mojo::UserAgent;
use Mojo::Promise;
plan skip_all => "Test requires IO::Socket::SSL 2.009+"
unless (Mojo::IOLoop::TLS->can_tls);
# test that ua isn't acting as a singleton when this role is applied,
# based on examples/tyldum.pl (from github issue #4)
# this test should pass in version 1.11+ but fail in 1.10
view all matches for this distribution
view release on metacpan or search on metacpan
0.04 2022-02-13T10:53:53+0900
- Increased expiration date for the certs used by t/secure-server.t
0.03 2021-06-17T09:13:31+0900
- Add missing dependency IO::Socket::SSL
0.02 2021-01-12T16:50:50+0900
- Fix documentation
0.01 2021-01-12T13:05:07+0900
view all matches for this distribution
view release on metacpan or search on metacpan
"module_name" => "Mojo::WebService::Twitter",
"recursive_test_files" => 1,
"requires" => {
"Carp" => 0,
"Exporter" => 0,
"IO::Socket::SSL" => "1.94",
"Mojolicious" => "7.62",
"Scalar::Util" => 0,
"Time::Piece" => "1.17",
"WWW::OAuth" => 0,
"perl" => "5.010001"
view all matches for this distribution
view release on metacpan or search on metacpan
script/check_dependencies.pl view on Meta::CPAN
'Time::Piece' => undef,
'Time::Seconds' => undef,
'Digest::SHA' => undef,
'Digest::MD5' => undef,
'Encode::Locale' => undef,
'IO::Socket::SSL' => undef,
'Term::ANSIColor' => undef,
);
print "Checking dependencies ...\n";
print "--------------------------------\n";
for my $module (keys %dependent_modules){
view all matches for this distribution
view release on metacpan or search on metacpan
script/check_dependencies.pl view on Meta::CPAN
'Time::Piece' => undef,
'Time::Seconds' => undef,
'Digest::SHA' => undef,
'Digest::MD5' => undef,
'Encode::Locale' => undef,
'IO::Socket::SSL' => undef,
'Term::ANSIColor' => undef,
);
print "Checking dependencies ...\n";
print "--------------------------------\n";
for my $module (keys %dependent_modules){
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MojoX/CPAN/Uploader.pm view on Meta::CPAN
use File::Basename;
use Mojo::Base '-base';
require Mojo::UserAgent;
require IO::Socket::SSL;
has client => sub { Mojo::UserAgent->new };
has [qw/user pass/];
has url => sub { Mojo::URL->new('https://pause.perl.org/pause/authenquery') };
has defaults => sub {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MojoX/HTTP/Async.pm view on Meta::CPAN
use 5.020;
use warnings;
use bytes ();
use Socket qw/ inet_aton pack_sockaddr_in AF_INET SOCK_STREAM SOL_SOCKET SO_KEEPALIVE SO_OOBINLINE IPPROTO_TCP TCP_KEEPIDLE TCP_KEEPINTVL TCP_KEEPCNT /;
#use IO::Socket::IP ();
use IO::Socket::SSL ();
use Fcntl qw/ F_SETFL O_NONBLOCK FD_CLOEXEC O_NOINHERIT /;
use experimental qw/ signatures /;
use Carp qw/ croak /;
use List::Util qw/ first /;
use Time::HiRes qw/ time /;
lib/MojoX/HTTP/Async.pm view on Meta::CPAN
Sets the scheme of requests: HTTP or HTTPS.
=item ssl_opts
It's a HashRef with options to control SSL Layer.
See C<IO::Socket::SSL> constructor arguments for details.
=item connect_timeout
By default it's equal to 1.
Sets connection timeout in seconds.
lib/MojoX/HTTP/Async.pm view on Meta::CPAN
$slot->{'connected_ts'} = time();
$slot->{'reader'} = $slot->{'writer'} = $slot->{'socket'} = $socket;
$slot->{'sock_no'} = fileno($socket);
if ($self->{'ssl'}) {
my $ssl_socket = IO::Socket::SSL->new_from_fd($socket, ($self->{'ssl_opts'} // {})->%*);
croak("error=$!, ssl_error=" . $IO::Socket::SSL::SSL_ERROR) if (!$ssl_socket);
$ssl_socket->blocking(0); # just to be sure
$slot->{'reader'} = $slot->{'writer'} = $ssl_socket;
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/MojoX/IOLoop/Server/StartTLS.pm view on Meta::CPAN
package MojoX::IOLoop::Server::StartTLS;
use IO::Socket::SSL;
# We'll use the version of Mojolicious this was written against
# but we'll add two digits for flexibility
our $VERSION = '5.1401';
lib/MojoX/IOLoop/Server/StartTLS.pm view on Meta::CPAN
my ($server, $stream, $options, $callback) = @_;
$stream->on(drain => sub {
my $handle = $stream->steal_handle;
$stream->handle(IO::Socket::SSL->start_SSL($handle,
# Useful defaults
SSL_cert_file => $CERT,
SSL_cipher_list => '!aNULL:!eNULL:!EXPORT:!DSS:!DES:!SSLv2:!LOW:RC4-SHA:RC4-MD5:ALL',
SSL_honor_cipher_order => 1,
SSL_key_file => $KEY,
view all matches for this distribution
view release on metacpan or search on metacpan
requires => {
'Mojolicious' => '7.13', # is_success
'File::HomeDir' => 0,
},
recommends => {
'IO::Socket::SSL' => '1.94', # Mojolicious SSL support
},
meta_merge => {
resources => {
repository => 'https://github.com/jberger/Mojolicious-Command-nopaste',
bugtracker => 'https://github.com/jberger/Mojolicious-Command-nopaste/issues',
view all matches for this distribution
view release on metacpan or search on metacpan
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"IO::Socket::SSL" : "2.066",
"Mojolicious" : "8.23"
}
}
},
"release_status" : "stable",
view all matches for this distribution
view release on metacpan or search on metacpan
}
},
"runtime" : {
"requires" : {
"Digest::SHA" : "6.01",
"IO::Socket::SSL" : "2.066",
"Mojolicious" : "8.23"
}
}
},
"release_status" : "stable",
view all matches for this distribution
view release on metacpan or search on metacpan
.travis.yml view on Meta::CPAN
packages:
- libpng12-dev
env:
- 'HARNESS_OPTIONS=j1 TEST_ONLINE=1'
install:
- 'cpanm -n Test::Pod Test::Pod::Coverage IO::Socket::SSL'
- 'cpanm -n CSS::Minifier::XS Imager::File::PNG JavaScript::Minifier::XS'
- 'cpanm -n --installdeps .'
notifications:
email: false
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mojolicious/Plugin/AssetPack/Guides/Developing.pod view on Meta::CPAN
=item * L<CSS::Sass>
Used by L<Mojolicious::Plugin::AssetPack::Pipe::Sass>.
=item * L<IO::Socket::SSL>
Required if you want to download assets served over SSL.
=item * L<JavaScript::Minifier::XS>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mojolicious/Plugin/BasicAuthPlus.pm view on Meta::CPAN
my $socket_type = ref $ldap->{net_ldap_socket};
$c->app->log->warn("LDAP socket type: $socket_type") if $logging;
unless (
# SSL connection already established
($socket_type eq 'IO::Socket::SSL')
# Or user doesn't want TLS
|| (defined($params->{start_tls}) && $params->{start_tls} == 0)
)
{
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mojolicious/Plugin/Captcha/reCAPTCHA.pm view on Meta::CPAN
Mojolicious::Plugin::Captcha::reCAPTCHA is deprecated and you should consider
switching to L<Mojolicious::Plugin::ReCAPTCHAv2>.
The latter one uses the newer v2 API of Googles reCAPTCHA service and also has
no dependencies besides Mojolicious (and IO::Socket::SSL, which again is a
dependency of Mojolicious itself).
=head1 METHODS/HELPERS
=head2 recaptcha
view all matches for this distribution
view release on metacpan or search on metacpan
.travis.yml view on Meta::CPAN
- "5.12"
- "5.10"
env:
- "HARNESS_OPTIONS=j9"
install:
- "cpanm -n Test::Pod Test::Pod::Coverage IO::Socket::SSL"
- "cpanm -n --installdeps ."
notifications:
email: false
view all matches for this distribution
view release on metacpan or search on metacpan
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"IO::Socket::SSL" : "1.75",
"Mojolicious" : "4.82",
"Mozilla::CA" : "20141217"
}
}
},
view all matches for this distribution
view release on metacpan or search on metacpan
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"IO::Socket::SSL" : "1.75",
"Mojolicious" : "5.48"
}
}
},
"release_status" : "stable",
view all matches for this distribution
view release on metacpan or search on metacpan
.github/workflows/linux.yml view on Meta::CPAN
- name: Fix ExtUtils::MakeMaker (for Perl 5.16 and 5.18)
run: cpanm -n App::cpanminus ExtUtils::MakeMaker
- name: Install dependencies
run: |
cpanm -n --installdeps .
cpanm -n Crypt::OpenSSL::Bignum Crypt::OpenSSL::RSA IO::Socket::SSL Mojo::JWT
cpanm -n Test::Pod Test::Pod::Coverage
- name: Run tests
run: prove -l t
env:
TEST_POD: 1
view all matches for this distribution
view release on metacpan or search on metacpan
.travis.yml view on Meta::CPAN
- "5.12"
- "5.10"
env:
- "HARNESS_OPTIONS=j9"
install:
- "cpanm -n Test::Pod Test::Pod::Coverage IO::Socket::SSL"
- "cpanm -n --installdeps ."
notifications:
email: false
view all matches for this distribution
view release on metacpan or search on metacpan
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"IO::Socket::SSL" : "0",
"Mojolicious" : "6.0",
"perl" : "5.010001"
}
}
},
view all matches for this distribution
view release on metacpan or search on metacpan
xt/compat/tls_lite_app.t view on Meta::CPAN
use Test::More;
use Mojo::IOLoop::Server;
plan skip_all => 'set TEST_TLS to enable this test (developer only!)'
unless $ENV{TEST_TLS};
plan skip_all => 'IO::Socket::SSL 1.94+ required for this test!'
unless Mojo::IOLoop::Server::TLS;
use Mojo::IOLoop;
use Mojo::UserAgent;
use Mojolicious::Lite; plugin plack_middleware => [];
view all matches for this distribution
view release on metacpan or search on metacpan
- Remove accidently added directory
- Re-Upload to CPAN, since the last version vanished somehow
(Thanks, LEEJO)
1.05 2020-03-01 20:46:46+01:00 Europe/Berlin
- Make IO::Socket::SSL an explicit dependency to hopefully
fix the problem reported by CPAN testers
1.04 2020-02-24 17:27:07+01:00 Europe/Berlin
- No differences to trial release 1.03
- Thanks LEEJO for reminding me to release this (RT#131221)
- Fix compatibility with Mojolicious 6.22
0.1 2015-08-04 11:44:44+02:00 Europe/Berlin
- Fix compatibility with older Mojolicious versions
(hopefully back to 3.02 or even older)
- Add IO::Socket::SSL as prerequisite
0.04 2015-07-30 22:27:10+02:00 Europe/Berlin
- API CHANGE! recaptcha_verify() now only returns
either "0" or "1"; former return value "-1" is
now subsumed under "0" and can be distinguished by
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Mojo/IOLoop.pm view on Meta::CPAN
The event loop will be resilient to time jumps if a monotonic clock is available through L<Time::HiRes>. A TLS
certificate and key are also built right in, to make writing test servers as easy as possible. Also note that for
convenience the C<PIPE> signal will be set to C<IGNORE> when L<Mojo::IOLoop> is loaded.
For better scalability (epoll, kqueue) and to provide non-blocking name resolution, SOCKS5 as well as TLS support, the
optional modules L<EV> (4.32+), L<Net::DNS::Native> (0.15+), L<IO::Socket::Socks> (0.64+) and L<IO::Socket::SSL>
(2.009+) will be used automatically if possible. Individual features can also be disabled with the C<MOJO_NO_NNR>,
C<MOJO_NO_SOCKS> and C<MOJO_NO_TLS> environment variables.
See L<Mojolicious::Guides::Cookbook/"REAL-TIME WEB"> for more.
view all matches for this distribution