geo_monitor 0.3.1 → 0.3.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
  SHA1:
3
- metadata.gz: d212884e1dffc19ff2a79c1a1370dcc6e7370fab
4
- data.tar.gz: 2bf333c6fbcfdbf56a42fb0a3f93d6ec7787f82a
3
+ metadata.gz: 579cb4bf30246ce0036e37a1ddda3a4a1208352a
4
+ data.tar.gz: 306039fef4be166bd345bc1d45cd2c5cb9a3ff87
5
5
  SHA512:
6
- metadata.gz: d4c0a78f06e1344f97f923904d1a4adda96f998108b08fe2e7fe51f3eac4d15c3773eb2bdeb58b82b0b6a7df8f359d413b960084c17298b19de6ad4f91e489bb
7
- data.tar.gz: 6d1bf9b04eaf4f1c196a509515be4d2099773af1c758659561249cc727f135baee6f525fe145d689575959cd0bda48f86913ef2bc04f26c1dc121627de81623c
6
+ metadata.gz: 4ffd3dfccc04baecd9ad5dc322a251c3a1b4c9ca2484938cd76582a081e2237e615daf8b823b155585dc489d41860b9cc562b3808f6119965f1d28f71e6594c4
7
+ data.tar.gz: 8ea2dc1e61783dc6b5e35dfedb4fdc3813702248efd8747c87ba20ebae91fa5f1e28f803375144d3d9429714a2c527812582c6e8a223c2e09c133e1a856a86ce
@@ -7,8 +7,8 @@ module GeoMonitor
7
7
  def self.from_geoblacklight(schema_json)
8
8
  schema = JSON.parse(schema_json)
9
9
  references = JSON.parse(schema['dct_references_s'] || '{}')
10
- find_or_create_by(slug: schema['layer_slug_s']) do |layer|
11
- layer.checktype =
10
+ find_or_create_by(slug: schema['layer_slug_s']).tap do |layer|
11
+ layer.checktype =
12
12
  if references['http://www.opengis.net/def/serviceType/ogc/wms']
13
13
  'WMS'
14
14
  elsif references['http://iiif.io/api/image']
@@ -1,3 +1,3 @@
1
1
  module GeoMonitor
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed