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 +4 -4
- data/lib/relaton_ogc/hit_collection.rb +4 -2
- data/lib/relaton_ogc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09f233949ca3ca48d8ae2ca784097f471407694b40546f04450255f8f773d119'
|
4
|
+
data.tar.gz: 75bc95e83eff25f9e2dd5d5e898e3c08d87ec2d4703f29130da200ff523687ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/relaton_ogc/version.rb
CHANGED