relaton-ogc 1.5.1 → 1.5.2

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: 522ba1924795803f2950a72cb2dada90bf6b74a263683bc11e719c974c3ce4f7
4
- data.tar.gz: 0513d3f18b61a538d866ddeea0536224effc9a7883ec0d840b84b512b1f27efc
3
+ metadata.gz: '09f233949ca3ca48d8ae2ca784097f471407694b40546f04450255f8f773d119'
4
+ data.tar.gz: 75bc95e83eff25f9e2dd5d5e898e3c08d87ec2d4703f29130da200ff523687ab
5
5
  SHA512:
6
- metadata.gz: d38dfb0d2cb57c4c64a5cc48ef563687493d2484831dc9cfba7dab9169319d4e4081c9e842e4efed254f694601dc483aba55d4bc86e78d83cd208409cd871e68
7
- data.tar.gz: 4b6f6b79ad13ca89c2207139a078387b7c3dd30b6da158208f3eb65e7b3e641639063e2709e353d4e0be7413e8a3fc1fa9f05f5d897a5302f8c7cb0b418895a8
6
+ metadata.gz: 4272ce035563fc4b3fcc321d3c06a6f1f24c73d1273ad2748bc3ea279fe894d98e4f3d06ae61a7e6c20779bbe814498886e7ac386c21bcd4d19dff2c8f80d7a5
7
+ data.tar.gz: f193772cb108afba5c1c253f91301a1eaaae107552bcb587d36bdf441e95c079e4c502d88d05cf619ef57e50e3e82911392c98788909c411edc5020b6e33f379
@@ -52,8 +52,10 @@ module RelatonOgc
52
52
  #
53
53
  # fetch data form server and save it to file.
54
54
  #
55
- def fetch_data # rubocop:disable Metrics/AbcSize
56
- resp = Faraday.new(ENDPOINT, headers: { "If-None-Match" => etag }).get
55
+ def fetch_data # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
56
+ h = {}
57
+ h["If-None-Match"] = etag if etag
58
+ resp = Faraday.new(ENDPOINT, headers: h).get
57
59
  # return if there aren't any changes since last fetching
58
60
  return if resp.status == 304
59
61
  unless resp.status == 200
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "1.5.1".freeze
2
+ VERSION = "1.5.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.