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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0a38c9dc676ea585e444e7cfcb06e216b5a862db7684777e294299c4ed493ff
4
- data.tar.gz: be628a96ced2f4c262477043da015e5f7acb392995316fde66a7e4818e55c0bf
3
+ metadata.gz: 522ba1924795803f2950a72cb2dada90bf6b74a263683bc11e719c974c3ce4f7
4
+ data.tar.gz: 0513d3f18b61a538d866ddeea0536224effc9a7883ec0d840b84b512b1f27efc
5
5
  SHA512:
6
- metadata.gz: 0242ef19a2b5498eafef4b0fa4eff285d03942d87b0e7f7ee12767a94379acd7ced4657190688b1fd74690f5d9eda7eb59d3ef6779fd1b9836d44f5fb65a34cd
7
- data.tar.gz: 4faaeb44bfdb72466f126ffff9aba347084e71f96d4321a9b732f053fafa54e24dd51f4580e33fae1853b68d01c362105673ab57784ac2014ada34350929a5f4
6
+ metadata.gz: d38dfb0d2cb57c4c64a5cc48ef563687493d2484831dc9cfba7dab9169319d4e4081c9e842e4efed254f694601dc483aba55d4bc86e78d83cd208409cd871e68
7
+ data.tar.gz: 4b6f6b79ad13ca89c2207139a078387b7c3dd30b6da158208f3eb65e7b3e641639063e2709e353d4e0be7413e8a3fc1fa9f05f5d897a5302f8c7cb0b418895a8
@@ -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
- raise RelatonBib::RequestError, "Could not access #{ENDPOINT}" unless resp.status == 200
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]
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "1.5.0".freeze
2
+ VERSION = "1.5.1".freeze
3
3
  end
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.0
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-10-09 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase