relaton-ogc 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +2 -0
- data/lib/relaton_ogc/hit_collection.rb +5 -2
- data/lib/relaton_ogc/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: 522ba1924795803f2950a72cb2dada90bf6b74a263683bc11e719c974c3ce4f7
|
4
|
+
data.tar.gz: 0513d3f18b61a538d866ddeea0536224effc9a7883ec0d840b84b512b1f27efc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d38dfb0d2cb57c4c64a5cc48ef563687493d2484831dc9cfba7dab9169319d4e4081c9e842e4efed254f694601dc483aba55d4bc86e78d83cd208409cd871e68
|
7
|
+
data.tar.gz: 4b6f6b79ad13ca89c2207139a078387b7c3dd30b6da158208f3eb65e7b3e641639063e2709e353d4e0be7413e8a3fc1fa9f05f5d897a5302f8c7cb0b418895a8
|
data/.github/workflows/macos.yml
CHANGED
@@ -26,6 +26,8 @@ jobs:
|
|
26
26
|
- name: Update gems
|
27
27
|
run: |
|
28
28
|
sudo gem install bundler --force
|
29
|
+
ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
|
30
|
+
ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
|
29
31
|
bundle install --jobs 4 --retry 3
|
30
32
|
- name: Run specs
|
31
33
|
run: |
|
@@ -52,10 +52,13 @@ module RelatonOgc
|
|
52
52
|
#
|
53
53
|
# fetch data form server and save it to file.
|
54
54
|
#
|
55
|
-
def fetch_data
|
55
|
+
def fetch_data # rubocop:disable Metrics/AbcSize
|
56
56
|
resp = Faraday.new(ENDPOINT, headers: { "If-None-Match" => etag }).get
|
57
57
|
# return if there aren't any changes since last fetching
|
58
|
-
|
58
|
+
return if resp.status == 304
|
59
|
+
unless resp.status == 200
|
60
|
+
raise RelatonBib::RequestError, "Could not access #{ENDPOINT}"
|
61
|
+
end
|
59
62
|
|
60
63
|
FileUtils.mkdir_p DATADIR unless Dir.exist? DATADIR
|
61
64
|
self.etag = resp[:etag]
|
data/lib/relaton_ogc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|