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 +4 -4
- data/app/services/geo_concerns/discovery/document_builder/date_builder.rb +3 -1
- data/app/services/geo_concerns/discovery/document_builder/layer_info_builder.rb +3 -3
- data/lib/geo_concerns/version.rb +1 -1
- data/spec/services/geo_concerns/events_generator/geoblacklight_event_generator_spec.rb +1 -1
- data/template.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cefebef4b475d8f1c12b0701365600e30d0447c
|
4
|
+
data.tar.gz: 41b843bdd8110eda732e218e55b409d9a8a435e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
25
|
+
when /ImageWorkShowPresenter/
|
26
26
|
'Scanned Map'
|
27
|
-
when
|
27
|
+
when /RasterWorkShowPresenter/
|
28
28
|
'Raster'
|
29
|
-
when
|
29
|
+
when /VectorWorkShowPresenter/
|
30
30
|
vector_geom_type
|
31
31
|
end
|
32
32
|
end
|
data/lib/geo_concerns/version.rb
CHANGED
@@ -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.
|
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",
|
data/template.rb
CHANGED
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.
|
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
|
+
date: 2016-12-16 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: curation_concerns
|