Skip to content

Commit c43d534

Browse files
committed
prepare v1 release (close #96)
1 parent b407026 commit c43d534

File tree

17 files changed

+60
-59
lines changed

17 files changed

+60
-59
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [v1.0.0] - 2022-08-24 Wed
4+
5+
- Add: prepare for v1.0.0
6+
37
## [v1.0.0-RC1] - 2022-05-10 Tue
48

59
- Add: update gnmatcher, gnames to v1.0.0-RC1

README.md

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ search feature.
1010

1111
<!-- vim-markdown-toc GFM -->
1212

13-
- [Citing](#citing)
14-
- [Features](#features)
15-
- [Installation](#installation)
16-
- [Using Homebrew on Mac OS X, Linux, and Linux on Windows ([WSL2])](#using-homebrew-on-mac-os-x-linux-and-linux-on-windows-wsl2)
17-
- [MS Windows](#ms-windows)
18-
- [Linux and Mac (without Homebrew)](#linux-and-mac-without-homebrew)
19-
- [Compile from source](#compile-from-source)
20-
- [Usage](#usage)
21-
- [As a web service](#as-a-web-service)
22-
- [As a RESTful API](#as-a-restful-api)
23-
- [One name-string](#one-name-string)
24-
- [Many name-strings in a file](#many-name-strings-in-a-file)
25-
- [Advanced search](#advanced-search)
26-
- [Options and flags](#options-and-flags)
27-
- [help](#help)
28-
- [version](#version)
29-
- [port](#port)
30-
- [all_matches](#all_matches)
31-
- [capitalize](#capitalize)
32-
- [species group](#species-group)
33-
- [format](#format)
34-
- [jobs](#jobs)
35-
- [quiet](#quiet)
36-
- [sources](#sources)
37-
- [web-logs](#web-logs)
38-
- [nsqd-tcp](#nsqd-tcp)
39-
- [Configuration file](#configuration-file)
40-
- [Advanced Search Query Language](#advanced-search-query-language)
41-
- [Examples of searches](#examples-of-searches)
42-
- [Copyright](#copyright)
13+
* [Citing](#citing)
14+
* [Features](#features)
15+
* [Installation](#installation)
16+
* [Using Homebrew on Mac OS X, Linux, and Linux on Windows ([WSL2])](#using-homebrew-on-mac-os-x-linux-and-linux-on-windows-wsl2)
17+
* [MS Windows](#ms-windows)
18+
* [Linux and Mac (without Homebrew)](#linux-and-mac-without-homebrew)
19+
* [Compile from source](#compile-from-source)
20+
* [Usage](#usage)
21+
* [As a web service](#as-a-web-service)
22+
* [As a RESTful API](#as-a-restful-api)
23+
* [One name-string](#one-name-string)
24+
* [Many name-strings in a file](#many-name-strings-in-a-file)
25+
* [Advanced search](#advanced-search)
26+
* [Options and flags](#options-and-flags)
27+
* [help](#help)
28+
* [version](#version)
29+
* [port](#port)
30+
* [all_matches](#all_matches)
31+
* [capitalize](#capitalize)
32+
* [species group](#species-group)
33+
* [format](#format)
34+
* [jobs](#jobs)
35+
* [quiet](#quiet)
36+
* [sources](#sources)
37+
* [web-logs](#web-logs)
38+
* [nsqd-tcp](#nsqd-tcp)
39+
* [Configuration file](#configuration-file)
40+
* [Advanced Search Query Language](#advanced-search-query-language)
41+
* [Examples of searches](#examples-of-searches)
42+
* [Copyright](#copyright)
4343

4444
<!-- vim-markdown-toc -->
4545

@@ -88,7 +88,7 @@ If you want to cite GNverifier, use [DOI generated by Zenodo][zenodo doi]:
8888

8989
Homebrew is a popular package manager for Open Source software originally
9090
developed for Mac OS X. Now it is also available on Linux, and can easily
91-
be used on Windows 10, if Windows Subsystem for Linux (WSL) is
91+
be used on Windows 10 or 11, if Windows Subsystem for Linux (WSL) is
9292
[installed][wsl install].
9393

9494
To use [GNverifier] with Homebrew:
@@ -117,8 +117,8 @@ mkdir C:\Users\your_username\bin
117117
copy path_to\gnverifier.exe C:\Users\your_username\bin
118118
```
119119

120-
[Add `C:\Users\your_username\bin` directory to your `PATH`][winpath]
121-
environment variable.
120+
[Add `C:\Users\your_username\bin` directory to your `PATH`][winpath] `user`
121+
and/or `system` environment variable.
122122

123123
Another, simpler way, would be to use `cd C:\Users\your_username\bin` command
124124
in `cmd` terminal window. The [GNverifier] program then will be automatically
@@ -462,9 +462,6 @@ to enter several settings at once loosely following rules of nomenclature
462462
(`n:B. bubo Linn. 1758`). For example, in contrast with GNparser results, it
463463
is possible to have abbreviated specific epithets or range in years: `n:Mono. gall. Oliv. 1750-1800`.
464464
465-
The query language is in `Beta` stage, and might change to some degree, to
466-
improve its functionality.
467-
468465
Often there are errors in species eptithets gender. Because of that search
469466
will try to detect names in any gender that correspond to the epithet.
470467
@@ -502,11 +499,11 @@ details.
502499
[default gnverifier.yaml]: https://github.com/gnames/gnverifier/blob/master/gnverifier/cmd/gnverifier.yaml
503500
[dimus]: https://github.com/dimus
504501
[latest release]: https://github.com/gnames/gnverifier/releases/latest
505-
[gnames]: https://apidoc.globalnames.org/gnames-beta
502+
[gnames]: https://apidoc.globalnames.org/gnames
506503
[go-install]: https://golang.org/doc/install
507504
[test directory]: https://github.com/gnames/gnverifier/tree/master/testdata
508505
[ubio]: https://ubio.org/
509-
[verifier api]: https://apidoc.globalnames.org/gnames-beta
506+
[verifier api]: https://apidoc.globalnames.org/gnames
510507
[web-service]: https://verifier.globalnames.org
511508
[win-pdf]: https://github.com/gnames/gnverifier/blob/master/use-gnverifier-windows.pdf
512509
[winpath]: https://www.computerhope.com/issues/ch000549.htm

config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func OptFormat(f gnfmt.Format) Option {
9191
}
9292
}
9393

94-
//OptJobs sets number of jobs to run in parallel.
94+
// OptJobs sets number of jobs to run in parallel.
9595
func OptJobs(i int) Option {
9696
return func(cnf *Config) {
9797
cnf.Jobs = i
@@ -169,7 +169,7 @@ func OptWithWebLogs(b bool) Option {
169169
func New(opts ...Option) Config {
170170
cnf := Config{
171171
Format: gnfmt.CSV,
172-
VerifierURL: "https://verifier.globalnames.org/api/v0/",
172+
VerifierURL: "https://verifier.globalnames.org/api/v1/",
173173
Batch: 5000,
174174
Jobs: 4,
175175
NamesNumThreshold: 20,

config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestConfigDefault(t *testing.T) {
1414
cnf := config.New()
1515
deflt := config.Config{
1616
Format: gnfmt.CSV,
17-
VerifierURL: "https://verifier.globalnames.org/api/v0/",
17+
VerifierURL: "https://verifier.globalnames.org/api/v1/",
1818
}
1919
assert.Equal(t, deflt.Format, cnf.Format)
2020
assert.Equal(t, deflt.VerifierURL, cnf.VerifierURL)

gnverifier/cmd/gnverifier.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# DataSources is a list of data-source IDs that should always return
66
# matched records if they are found.
77
# You can find list of all data-sources at
8-
# https://verifier.globalnames.org/api/v0/data_sources
8+
# https://verifier.globalnames.org/api/v1/data_sources
99
#
1010
# If DataSources are set to 0, results are returned from all sources.
1111
# DataSources:
@@ -34,7 +34,7 @@
3434

3535
# VerifierURL is a URL to gnames REST API
3636
#
37-
# VerifierURL: "https://verifier.globalnames.org/api/v0/"
37+
# VerifierURL: "https://verifier.globalnames.org/api/v1/"
3838

3939
# Jobs is number of jobs to run in parallel.
4040
#

gnverifier/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func init() {
213213
195 - AlgaeBase`)
214214
rootCmd.Flags().StringP("verifier_url", "v", "",
215215
`URL for verification service.
216-
Default: https://verifier.globalnames.org/api/v0`)
216+
Default: https://verifier.globalnames.org/api/v1`)
217217
rootCmd.Flags().BoolP("web-logs", "", false, "enable logs for the web service")
218218
rootCmd.Flags().StringP("nsqd-tcp", "", "", "an addresss pointing to NSQ TCP service for logs redirection (e.g. 127.0.0.1:4150)")
219219
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/gnames/gnverifier
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/dnaeon/go-vcr v1.2.0

io/verifrest/fixtures/capitalize.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/verifications
10+
url: https://verifier.globalnames.org/api/v1/verifications
1111
method: POST
1212
response:
1313
body: |

io/verifrest/fixtures/ds4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/data_sources/4
10+
url: https://verifier.globalnames.org/api/v1/data_sources/4
1111
method: GET
1212
response:
1313
body: |

io/verifrest/fixtures/dss.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/data_sources
10+
url: https://verifier.globalnames.org/api/v1/data_sources
1111
method: GET
1212
response:
1313
body: |

io/verifrest/fixtures/name.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/verifications
10+
url: https://verifier.globalnames.org/api/v1/verifications
1111
method: POST
1212
response:
1313
body: |

io/verifrest/fixtures/name_pref.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/verifications
10+
url: https://verifier.globalnames.org/api/v1/verifications
1111
method: POST
1212
response:
1313
body: |

io/verifrest/fixtures/names.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interactions:
88
headers:
99
Content-Type:
1010
- application/json
11-
url: https://verifier.globalnames.org/api/v0/verifications
11+
url: https://verifier.globalnames.org/api/v1/verifications
1212
method: POST
1313
response:
1414
body: |

io/verifrest/fixtures/search.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interactions:
77
headers:
88
Content-Type:
99
- application/json
10-
url: https://verifier.globalnames.org/api/v0/search/n:Bubo%20bubo%20all:true
10+
url: https://verifier.globalnames.org/api/v1/search/n:Bubo%20bubo%20all:true
1111
method: GET
1212
response:
1313
body: |

io/verifrest/verifrest_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/assert"
1212
)
1313

14-
var urlAPI = "https://verifier.globalnames.org/api/v0/"
14+
var urlAPI = "https://verifier.globalnames.org/api/v1/"
1515

1616
func TestDataSources(t *testing.T) {
1717
r, err := recorder.New("fixtures/dss")

io/web/templates/api.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ define "api" }}
1+
{{ define "api" }}
22
<div id="content-splash">
33
<h2>Application Programming Interface (API)</h2>
44
</div>
@@ -14,16 +14,16 @@ <h3 id="get">GET</h3>
1414
</p>
1515

1616
<pre class='code'>
17-
/api/v0/verifications/Aus+bus|Aus+bus+D.+%26+M.,+1870
17+
/api/v1/verifications/Aus+bus|Aus+bus+D.+%26+M.,+1870
1818
</pre>
1919

2020
<h3 id="post">POST</h3>
2121

22-
<p><code>/api/v0/verifications</code></p>
22+
<p><code>/api/v1/verifications</code></p>
2323

2424
<p>
2525
with request body in JSON format according to
26-
<a href="https://apidoc.globalnames.org/gnames-beta">
26+
<a href="https://apidoc.globalnames.org/gnames">
2727
specification
2828
</a>:
2929
</p>
@@ -45,7 +45,7 @@ <h3 id="post">POST</h3>
4545
<h3> OpenAPI Schema</h3>
4646
<p>
4747
Read the GNames's
48-
<a href="https://apidoc.globalnames.org/gnames-beta">
48+
<a href="https://apidoc.globalnames.org/gnames">
4949
Verification OpenAPI documentation
5050
</a> to learn about all options and the output schema.
5151
</p>

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package gnverifier
22

33
var (
44
// Version of the gnverifier
5-
Version = "v1.0.0-RC1"
5+
Version = "v1.0.0+"
66
// Build timestamp
77
Build = "n/a"
88
)

0 commit comments

Comments
 (0)