API-Octopart

 view release on metacpan or  search on metacpan

LICENSE  view on Meta::CPAN

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

MANIFEST  view on Meta::CPAN

lib/API/Octopart.pm
rebuild-manifest.sh
redist.sh
remake.sh
repod.sh
t/00-load.t
t/manifest.t
t/pod-coverage.t
t/pod.t
xt/boilerplate.t
META.yml                                 Module YAML meta-data (added by MakeMaker)
META.json                                Module JSON meta-data (added by MakeMaker)

ignoredeps  view on Meta::CPAN

'JSON::PP'                => '2.97001',
'JSON::PP::Boolean'       => '2.97001',
'LWP::Authen::Basic'      => '6.34',
'LWP::Authen::Digest'     => '6.34',
'LWP::Authen::Ntlm'       => '6.34',
'LWP::Protocol::cpan'     => '6.34',
'LWP::Protocol::data'     => '6.34',
'LWP::Protocol::file'     => '6.34',
'LWP::Protocol::ftp'      => '6.34',
'LWP::Protocol::gopher'   => '6.34',
'LWP::Protocol::http'     => '6.34',
'LWP::Protocol::loopback' => '6.34',
'LWP::Protocol::mailto'   => '6.34',
'LWP::Protocol::nntp'     => '6.34',
'LWP::Protocol::nogo'     => '6.34',

lib/API/Octopart.pm  view on Meta::CPAN

sub _parse_part_stock
{
	my ($self, $resp, %opts) = @_;

	foreach my $o (keys %opts)
	{
		die "invalid filter option: '$o'" if (!$_valid_filter_opts{$o});
	}

	my @results;
	foreach my $r (@{ $resp->{data}{search}{results} })
	{
		$r = $r->{part};
		my %part;

		$part{mfg} = $r->{manufacturer}{name};

		if (defined $r->{specs})
		{
			$part{specs} = {
				# Try to map first by shortname, then by unit, then by value if

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.622 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )