geo_concerns 0.3.2 → 0.3.3

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: efea0ccf73c0ff4cbc4c6a335f29f52d589352e6
4
- data.tar.gz: 39c5254d6f8cc2599947cfa51484297832998caf
3
+ metadata.gz: 7cefebef4b475d8f1c12b0701365600e30d0447c
4
+ data.tar.gz: 41b843bdd8110eda732e218e55b409d9a8a435e0
5
5
  SHA512:
6
- metadata.gz: 9e609ea3224fc2a95a0d3b97cbebd3ef4642cb3d550dfc5220b0d224ce8df03ac384c7d44ab40bbf950736678a4aba300dd088c534df12c511f554349be810f1
7
- data.tar.gz: dbfb7c3ada835239489d866cfe414c1b04d987659afdfa67b8e1694530c3d641d6e486febd8171893f08e3763e8f626ff4db93016b84d42aea1949d4661ab07d
6
+ metadata.gz: 1b1e30acabe1731fb04eee86feae57217db0d3281741269a814fcf92f240a38851e2e36394de9b60f2e11f749b62c087de83e5dd8b2fa497eb02022e56a7cfe2
7
+ data.tar.gz: d11a3f70b25fe592e70e8b8870bdf332836055b2f6cd5756e9c738b3afe2e2966fdf213af593565d0678f091806834897f131b3ba1a4545957b2341326d7b7bf
@@ -32,7 +32,9 @@ module GeoConcerns
32
32
  # Returns the date the work was modified.
33
33
  # @return [String] date in XMLSchema format.
34
34
  def layer_modified
35
- geo_concern.layer_modified.try(:xmlschema)
35
+ datetime = geo_concern.layer_modified
36
+ # TODO: Rails 4 doesn't implement the timezone correctly -- it adds "+00:00" not "Z"
37
+ Rails::VERSION::MAJOR == 4 ? datetime.utc.strftime('%FT%TZ') : datetime.utc.xmlschema
36
38
  end
37
39
 
38
40
  # Returns the date the layer was issued.
@@ -22,11 +22,11 @@ module GeoConcerns
22
22
  # @return [String] file geometry type
23
23
  def geom_type
24
24
  case geo_concern.class.to_s
25
- when "GeoConcerns::ImageWorkShowPresenter"
25
+ when /ImageWorkShowPresenter/
26
26
  'Scanned Map'
27
- when "GeoConcerns::RasterWorkShowPresenter"
27
+ when /RasterWorkShowPresenter/
28
28
  'Raster'
29
- when "GeoConcerns::VectorWorkShowPresenter"
29
+ when /VectorWorkShowPresenter/
30
30
  vector_geom_type
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module GeoConcerns
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
@@ -17,7 +17,7 @@ RSpec.describe GeoConcerns::EventsGenerator::GeoblacklightEventGenerator do
17
17
  let(:layer_modified) do
18
18
  datetime = record.solr_document[:system_modified_dtsi]
19
19
  datetime = DateTime.parse(datetime.to_s).utc
20
- Rails::VERSION::MAJOR == 4 ? datetime.utc.xmlschema : datetime.utc.strftime('%FT%TZ')
20
+ Rails::VERSION::MAJOR == 4 ? datetime.utc.strftime('%FT%TZ') : datetime.utc.xmlschema
21
21
  end
22
22
  let(:discovery_doc) { { "geoblacklight_version" => "1.0",
23
23
  "dc_identifier_s" => "geo-work-1",
@@ -1,5 +1,5 @@
1
1
  gem 'curation_concerns', '1.6.3'
2
- gem 'geo_concerns', '0.3.2'
2
+ gem 'geo_concerns', '0.3.3'
3
3
 
4
4
  run 'bundle install'
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_concerns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Griffin
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-12-15 00:00:00.000000000 Z
15
+ date: 2016-12-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: curation_concerns