Skip to content

Commit

Permalink
bump to require 1.0, rm Compat, add Project.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Aug 27, 2019
1 parent b983194 commit 27fdd02
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
14 changes: 14 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name = "TinySegmenter"
uuid = "b1dd1ac2-3671-512a-91db-cff14b385d02"
version = "1.0.0"

[deps]

[compat]
julia = "1.0"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
2 changes: 0 additions & 2 deletions REQUIRE

This file was deleted.

14 changes: 11 additions & 3 deletions src/TinySegmenter.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
VERSION < v"0.7.0-beta2.199" && __precompile__()

"""
The TinySegmenter module provides a function `tokenize` to
break a string of Japanese text into an array of substrings
representing tokens:
```
using TinySegmenter
join(tokenize("私の名前は中野です"), " | ")
# "私 | の | 名前 | は | 中野 | です"
```
"""
module TinySegmenter
using Compat

export tokenize

Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using TinySegmenter, Compat, Compat.Test
using TinySegmenter, Test

@test tokenize("私の名前は中野です") == ["", "", "名前", "", "中野", "です"]
@test tokenize("TinySegmenterは25kBで書かれています。") == ["TinySegmenter", "", "2", "5", "kB", "", "書か", "", "", "", "ます", ""]
Expand Down

3 comments on commit 27fdd02

@stevengj
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

@stevengj
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/2990

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" 27fdd02eb36650986f80b97120856ca2eb7b282f
git push origin v1.0.0

Please sign in to comment.