gnfinder 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +4 -4
- data/lib/gnfinder/client.rb +1 -1
- data/lib/gnfinder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 184b18622694218dde5a93d5aeaec67b4653761ab4be512e79df7be1d8f1b67d
|
|
4
|
+
data.tar.gz: 2a3be26a7008ee7e5e4834cb62146d95c2d15cf069d2a9df50d327da4813f8fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3b61878fa159a360ef5825bb807084ffbc4b0fc1b3e1cc6af9b82012ff487951df0d017e9dbf3b560b08dc281c354b134d6c3a3201912d158cdff2910b80d5c
|
|
7
|
+
data.tar.gz: 25b30a86f4b4c54ece188ffe41db5c35c5467ebde0699b74f5b3205170e4e84924909990733e18a1e331d1b1c26b1c5a2de2ea3f1416dbff8a2dfb61efb9edea
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -28,7 +28,7 @@ accessed either locally or via a URL.
|
|
|
28
28
|
|
|
29
29
|
This gem uses REST API to access a running [GNfinder] server. You can find how
|
|
30
30
|
to run it in [GNfinder] README file. By default it uses
|
|
31
|
-
`https://gnfinder.globalnames.org/api/
|
|
31
|
+
`https://gnfinder.globalnames.org/api/v0`
|
|
32
32
|
|
|
33
33
|
## Installation
|
|
34
34
|
|
|
@@ -52,7 +52,7 @@ gf = Gnfinder::Client.new
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
By default the client will try to connect to
|
|
55
|
-
`https://gnfinder.globalnames.org/api/
|
|
55
|
+
`https://gnfinder.globalnames.org/api/v0`. If you have another location for the
|
|
56
56
|
server use:
|
|
57
57
|
|
|
58
58
|
```ruby
|
|
@@ -101,12 +101,12 @@ res = gf.find_file(path)
|
|
|
101
101
|
puts res.names[0].value
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
Support of file-uploading uses 'multipart/form' approach. Here is an
|
|
104
|
+
Support of file-uploading uses 'multipart/form' approach. Here is an
|
|
105
105
|
illustration for `curl`:
|
|
106
106
|
|
|
107
107
|
```bash
|
|
108
108
|
curl -v -F sources[]=1 -F sources[]=12 -F file=@file.pdf \
|
|
109
|
-
https://finder.globalnames.org/api/
|
|
109
|
+
https://finder.globalnames.org/api/v0/find
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
Returned result is quite detailed and contains many accessor methods, for
|
data/lib/gnfinder/client.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Gnfinder
|
|
|
4
4
|
# Gnfinder::Client connects to gnfinder server
|
|
5
5
|
class Client
|
|
6
6
|
def initialize(host = 'https://gnfinder.globalnames.org', port = '')
|
|
7
|
-
api_path = '/api/
|
|
7
|
+
api_path = '/api/v0'
|
|
8
8
|
url = host + api_path
|
|
9
9
|
url = "#{host}:#{port}#{api_path}" if port.to_s != ''
|
|
10
10
|
@site = RestClient::Resource.new(url, read_timeout: 60)
|
data/lib/gnfinder/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gnfinder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Mozzherin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|