forked from Altai-man/p6-WWW-DuckDuckGo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI test in preparation for a Raku Community release
- Loading branch information
Showing
15 changed files
with
350 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Linux | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Run Special Tests | ||
run: raku run-tests -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: MacOS | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install NotmuchMail | ||
run: brew install notmuch | ||
- name: Make NotMuchMailD reachable | ||
run: raku -e 'symlink "/opt/homebrew/lib/libnotmuch.5.dylib".IO, $*EXECUTABLE.parent.sibling("lib/libnotmuch.5.dylib")' | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Run Special Tests | ||
run: raku run-tests -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
raku: | ||
strategy: | ||
matrix: | ||
os: | ||
- windows-latest | ||
raku-version: | ||
- 'latest' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Raku/setup-raku@v1 | ||
with: | ||
raku-version: ${{ matrix.raku-version }} | ||
- name: Install Dependencies | ||
run: zef install --/test --test-depends --deps-only . | ||
- name: Run Special Tests | ||
run: raku run-tests -i |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Revision history for WWW::DuckDuckGo | ||
|
||
{{$NEXT}} | ||
- Initial version as a Raku Community module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
{ | ||
"perl": "6.*", | ||
"name" : "WWW::DuckDuckGo", | ||
"license" : "Artistic-2.0", | ||
"tags": ["Web", "API"], | ||
"version" : "0.1.0", | ||
"auth" : "zef:Altai-man", | ||
"description" : "Bindings to DuckDuckGo search API", | ||
"depends" : [ "URI", "HTTP::UserAgent", "JSON::Fast" ], | ||
"provides" : { | ||
"WWW::DuckDuckGo::Icon" : "lib/WWW/DuckDuckGo/Icon.pm6", | ||
"WWW::DuckDuckGo::Link" : "lib/WWW/DuckDuckGo/Link.pm6", | ||
"WWW::DuckDuckGo::ZeroClickInfo" : "lib/WWW/DuckDuckGo/ZeroClickInfo.pm6", | ||
"WWW::DuckDuckGo" : "lib/WWW/DuckDuckGo.pm6" | ||
}, | ||
"resources": [], | ||
"source-url" : "git://github.com/Altai-man/p6-WWW-DuckDuckGo.git" | ||
"auth": "zef:raku-communiy-modules", | ||
"author": "Alexander Kiryuhin", | ||
"build-depends": [ | ||
], | ||
"depends": [ | ||
"URI", | ||
"HTTP::UserAgent", | ||
"JSON::Fast" | ||
], | ||
"description": "Bindings to DuckDuckGo search API", | ||
"license": "Artistic-2.0", | ||
"name": "WWW::DuckDuckGo", | ||
"perl": "6.*", | ||
"provides": { | ||
"WWW::DuckDuckGo": "lib/WWW/DuckDuckGo.rakumod", | ||
"WWW::DuckDuckGo::Icon": "lib/WWW/DuckDuckGo/Icon.rakumod", | ||
"WWW::DuckDuckGo::Link": "lib/WWW/DuckDuckGo/Link.rakumod", | ||
"WWW::DuckDuckGo::ZeroClickInfo": "lib/WWW/DuckDuckGo/ZeroClickInfo.rakumod" | ||
}, | ||
"resources": [ | ||
], | ||
"source-url": "https://github.com/raku-community-modules/WWW-DuckDuckGo.git", | ||
"tags": [ | ||
"Web", | ||
"API", | ||
"DUCKDUCKGO", | ||
"SEARCH" | ||
], | ||
"test-depends": [ | ||
], | ||
"version": "0.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
[![Actions Status](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions/workflows/linux.yml/badge.svg)](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions) [![Actions Status](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions/workflows/macos.yml/badge.svg)](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions) [![Actions Status](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions/workflows/windows.yml/badge.svg)](https://github.com/raku-community-modules/WWW-DuckDuckGo/actions) | ||
|
||
NAME | ||
==== | ||
|
||
WWW::DuckDuckGo - API bindings for DuckDuckGo search engine. | ||
WWW::DuckDuckGo - Bindings to DuckDuckGo search API | ||
|
||
SYNOPSIS | ||
======== | ||
|
||
```perl6 | ||
use WWW::DuckDuckGo; | ||
my $duck = WWW::DuckDuckGo.new; | ||
my $zeroclickinfo1 = $duck.zci('duck duck go'); | ||
my $zeroclickinfo2 = $duck.zci('one', 'another'); | ||
```raku | ||
use WWW::DuckDuckGo; | ||
|
||
my $duck = WWW::DuckDuckGo.new; | ||
my $zeroclickinfo1 = $duck.zci('duck duck go'); | ||
my $zeroclickinfo2 = $duck.zci('one', 'another'); | ||
``` | ||
|
||
DESCRIPTION | ||
=========== | ||
|
||
This class provides a way to get data from DuckDuckGo search service. The basic idea is to create a class instance that represents JSON answer from the server for every query. | ||
|
||
This is a functional port of the Perl 5 module of the same name by Torsten Raudssus and Michael Smith, see [WWW::DuckDuckGo](https://metacpan.org/pod/WWW::DuckDuckGo), all bugs with this port must be reported here, not to the original module bugzilla. | ||
This is a functional port of the Perl module of the same name, see [`WWW::DuckDuckGo`](https://metacpan.org/pod/WWW::DuckDuckGo). | ||
|
||
AUTHOR | ||
====== | ||
|
||
Alexander Kiryuhin | ||
|
||
COPYRIGHT AND LICENSE | ||
===================== | ||
|
||
Copyright 2016 - 2021 Alexander Kiryuhin | ||
|
||
Copyright 2024 Raku Community | ||
|
||
COPYRIGHT | ||
========= | ||
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0. | ||
|
||
This library is free software; you can redistribute it and/or modify it under the terms of the [Artistic License 2.0](http://www.perlfoundation.org/artistic_license_2_0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name = WWW::DuckDuckGo | ||
|
||
[ReadmeFromPod] | ||
filename = lib/WWW/DuckDuckGo.rakumod | ||
|
||
[UploadToZef] | ||
|
||
[Badges] | ||
provider = github-actions/linux.yml | ||
provider = github-actions/macos.yml | ||
provider = github-actions/windows.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.