geo_works 0.1.2 → 0.1.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: d693339ae38ae97f2670bd5413d2abf5593929d4
4
- data.tar.gz: 3e55e05b3ea220401c896385b64133b6e79419df
3
+ metadata.gz: 53a8932ef1ba631342a8328ec7eaf7cca993de94
4
+ data.tar.gz: 580c364352f569f95dcc63beacd48e5399460161
5
5
  SHA512:
6
- metadata.gz: 2572d81d2e02414d4f7ac14724878252463b3d3f5090af4b1e6ae5d01b94ca193039c84b7dd8d4e6b64f0b51647e05b822ee127c8631d7c2487b1f612f95f8a1
7
- data.tar.gz: 95c88b87d0fa8078b643230657420a83475c9a8bb520e7702656d3df736c3f5379e2b1453108d6b4e1d03ff34adf1d6c44e23b1850d452391588a5bed72be4b3
6
+ metadata.gz: 2dc0210e5f06b05a69192c1115b694a934175653cecc9f593b0944a3e818f1fc578be329269be74541eb406c603e722f9880e3967f208b40f699e42666d19d25
7
+ data.tar.gz: ab82e6645185eaa54cf56258aa1877fd31314434d8c8c29af05b480dea7b249e5ed41f5738d3e605fc24632c7f35401531826723a40ee23776c07087994015c8
@@ -42,15 +42,19 @@ module GeoWorks
42
42
  # Returns the first geo file set presenter attached to work.
43
43
  # @return [FileSetPresenter] geo file set presenter
44
44
  def file_set
45
- return unless geo_concern.geo_file_set_presenters
46
- geo_concern.geo_file_set_presenters.first
45
+ @file_set ||= begin
46
+ presenters = geo_concern.geo_file_set_presenters
47
+ presenters ? presenters.first : nil
48
+ end
47
49
  end
48
50
 
49
51
  # Returns the first metadata file set presenter attached to work.
50
52
  # @return [FileSetPresenter] metadata file set presenter
51
53
  def metadata_file_set
52
- return unless geo_concern.external_metadata_file_set_presenters
53
- geo_concern.external_metadata_file_set_presenters.first
54
+ @metadata_file_set ||= begin
55
+ presenters = geo_concern.external_metadata_file_set_presenters
56
+ presenters ? presenters.first : nil
57
+ end
54
58
  end
55
59
 
56
60
  # Instantiates a DocumentHelper object.
@@ -1,3 +1,3 @@
1
1
  module GeoWorks
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_works
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.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: 2017-06-08 00:00:00.000000000 Z
15
+ date: 2017-06-22 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: hyrax
@@ -689,7 +689,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
689
689
  version: '0'
690
690
  requirements: []
691
691
  rubyforge_project:
692
- rubygems_version: 2.6.10
692
+ rubygems_version: 2.4.5
693
693
  signing_key:
694
694
  specification_version: 4
695
695
  summary: Rails engine for Hydra Geo models. Built around the Hyrax engine.