gnfinder 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac89d96503cd4b2030ab6a681e97201959b3acb46035c36b5af6524ee8ef725b
4
- data.tar.gz: ce28eb276f6ce689210c16c43aa162ef4f35715eae46453779b176893394822f
3
+ metadata.gz: 184b18622694218dde5a93d5aeaec67b4653761ab4be512e79df7be1d8f1b67d
4
+ data.tar.gz: 2a3be26a7008ee7e5e4834cb62146d95c2d15cf069d2a9df50d327da4813f8fd
5
5
  SHA512:
6
- metadata.gz: d95363b28362959633773ec570217b1b9824a140e1c7000196de791adc88b191fceaf190b5e7384f4ea7b3c57949f1879306a17c9ca85cf4e647ed90d055599c
7
- data.tar.gz: b32921b2b52d449ebb8582acca511fd5d9acdf6f10898a75b7357af535f34160dd8c13e2883e03a53a0a56dd9ea2132f1408f30e4474d9495f28b41fe262a3d1
6
+ metadata.gz: d3b61878fa159a360ef5825bb807084ffbc4b0fc1b3e1cc6af9b82012ff487951df0d017e9dbf3b560b08dc281c354b134d6c3a3201912d158cdff2910b80d5c
7
+ data.tar.gz: 25b30a86f4b4c54ece188ffe41db5c35c5467ebde0699b74f5b3205170e4e84924909990733e18a1e331d1b1c26b1c5a2de2ea3f1416dbff8a2dfb61efb9edea
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## [v0.17.0]
6
+
7
+ - Update to gnfinder v0.17.0
8
+
5
9
  ## [v0.15.5]
6
10
 
7
11
  - Add [#16]: Search names using URL.
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/v1`
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/v1`. If you have another location for the
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/v1/find
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
@@ -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/v1'
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)
@@ -3,7 +3,7 @@
3
3
  # Gnfinder is a namespace module for gndinfer gem.
4
4
  module Gnfinder
5
5
  # Version corresponds to the minimal supported version of Go gnfinder
6
- VERSION = '0.16.1'
6
+ VERSION = '0.17.0'
7
7
 
8
8
  def self.version
9
9
  VERSION
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.16.1
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: 2021-10-17 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client