Skip to content

Commit

Permalink
Merge pull request #26 from titsuki/use-fez
Browse files Browse the repository at this point in the history
Use zef instead of cpan
  • Loading branch information
titsuki authored Dec 11, 2022
2 parents 1041afd + 6e9fd85 commit 1a9eeec
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion META6.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"auth": "titsuki",
"auth": "zef:titsuki",
"authors": [
"Itsuki Toyota"
],
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Actions Status](https://github.com/titsuki/raku-MeCab/workflows/test/badge.svg)](https://github.com/titsuki/raku-MeCab/actions)
[![Build Status](https://travis-ci.org/titsuki/raku-MeCab.svg?branch=master)](https://travis-ci.org/titsuki/raku-MeCab)

NAME
====
Expand Down
2 changes: 2 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name = raku-MeCab
; if you want to change a file that generates README.md, then:
; filename = lib/Your/Tutorial.pod

[UploadToZef]

[PruneFiles]
; if you want to prune files when packaging, then
; filename = utils/tool.pl
Expand Down
6 changes: 3 additions & 3 deletions lib/MeCab.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use NativeCall;

my constant $library = %?RESOURCES<libraries/mecab>.Str;

class MeCab:auth<titsuki>:ver<0.0.17> { }
class MeCab::Path:auth<titsuki>:ver<0.0.17> is repr('CStruct') { ... }
class MeCab::Node:auth<titsuki>:ver<0.0.17> is repr('CStruct') is export {
class MeCab:auth<zef:titsuki>:ver<0.0.11> { }
class MeCab::Path:auth<zef:titsuki>:ver<0.0.11> is repr('CStruct') { ... }
class MeCab::Node:auth<zef:titsuki>:ver<0.0.11> is repr('CStruct') is export {
enum Stat is export (
:MECAB_NOR_NODE(0),
:MECAB_UNK_NODE(1),
Expand Down
2 changes: 1 addition & 1 deletion lib/MeCab/CustomBuilder.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Zef::Fetch;
use Zef::Extract;
use Distribution::Builder::MakeFromJSON;

class MeCab::CustomBuilder:ver<0.0.17> is Distribution::Builder::MakeFromJSON {
class MeCab::CustomBuilder:auth<zef:titsuki>:ver<0.0.17> is Distribution::Builder::MakeFromJSON {
method build(IO() $work-dir = $*CWD) {
my $workdir = ~$work-dir;
if $*DISTRO.is-win {
Expand Down
2 changes: 1 addition & 1 deletion lib/MeCab/DictionaryInfo.pm6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use v6;
unit class MeCab::DictionaryInfo:auth<titsuki>:ver<0.0.17> is repr('CStruct');
unit class MeCab::DictionaryInfo:auth<zef:titsuki>:ver<0.0.17> is repr('CStruct');

enum DictionaryInfoType is export (
:MECAB_SYS_DIC(0),
Expand Down
6 changes: 3 additions & 3 deletions lib/MeCab/Lattice.pm6
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use NativeCall;

unit class MeCab::Lattice:auth<titsuki>:ver<0.0.17> is repr('CPointer');
unit class MeCab::Lattice:auth<zef:titsuki>:ver<0.0.17> is repr('CPointer');

use MeCab;

Expand Down Expand Up @@ -67,7 +67,7 @@ method clear {
}

method is-available returns Bool {
Bool(mecab_lattice_is_available(self))
mecab_lattice_is_available(self) ?? True !! False
}

method bos-node {
Expand Down Expand Up @@ -151,7 +151,7 @@ method nbest-tostr(Int $size) {
}

method has-constraint returns Bool {
Bool(mecab_lattice_has_constraint(self))
mecab_lattice_has_constraint(self) ?? True !! False
}

multi method boundary-constraint(Int $pos) returns BoundaryConstraintType {
Expand Down
2 changes: 1 addition & 1 deletion lib/MeCab/Model.pm6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use v6;
unit class MeCab::Model:auth<titsuki>:ver<0.0.17> is repr('CPointer');
unit class MeCab::Model:auth<zef:titsuki>:ver<0.0.17> is repr('CPointer');

use NativeCall;
use MeCab::Tagger;
Expand Down
4 changes: 2 additions & 2 deletions lib/MeCab/Tagger.pm6
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use v6;
unit class MeCab::Tagger:auth<titsuki>:ver<0.0.17> is repr('CPointer');
unit class MeCab::Tagger:auth<zef:titsuki>:ver<0.0.17> is repr('CPointer');

use NativeCall;
use MeCab;
Expand Down Expand Up @@ -70,7 +70,7 @@ multi method parse(Str $text) {
}

multi method parse(MeCab::Lattice $lattice) returns Bool {
Bool(mecab_parse_lattice(self, $lattice))
mecab_parse_lattice(self, $lattice) ?? True !! False
}

method parse-tonode(Str $text) {
Expand Down

0 comments on commit 1a9eeec

Please sign in to comment.