geo_concerns 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/geo_concerns/{img → images}/move-handle.png +0 -0
  3. data/app/assets/images/geo_concerns/{img → images}/resize-handle.png +0 -0
  4. data/app/assets/stylesheets/geo_concerns/{Control.Geocoder.css → Control.Geocoder.scss} +2 -2
  5. data/app/assets/stylesheets/geo_concerns/bounding_box.scss +3 -0
  6. data/app/assets/stylesheets/geo_concerns/{leaflet-boundingbox.css → leaflet-boundingbox.scss} +2 -2
  7. data/app/controllers/concerns/geo_concerns/image_works_controller_behavior.rb +2 -1
  8. data/app/controllers/concerns/geo_concerns/raster_works_controller_behavior.rb +2 -1
  9. data/app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb +2 -1
  10. data/app/forms/{geo_concerns → curation_concerns}/image_work_form.rb +1 -1
  11. data/app/forms/{geo_concerns → curation_concerns}/raster_work_form.rb +1 -1
  12. data/app/forms/{geo_concerns → curation_concerns}/vector_work_form.rb +1 -1
  13. data/app/helpers/geo_concerns/bounding_box_helper.rb +8 -8
  14. data/app/services/geo_concerns/discovery/document_builder/basic_metadata_builder.rb +8 -2
  15. data/lib/geo_concerns/version.rb +1 -1
  16. data/spec/controllers/image_works_controller_spec.rb +11 -3
  17. data/spec/controllers/raster_works_controller_spec.rb +17 -6
  18. data/spec/controllers/vector_works_controller_spec.rb +17 -6
  19. data/spec/factories/sipity_entities.rb +7 -0
  20. data/spec/factories/workflow_states.rb +6 -0
  21. data/spec/factories/workflows.rb +5 -0
  22. data/spec/forms/{geo_concerns → curation_concerns}/image_work_form_spec.rb +1 -1
  23. data/spec/forms/{geo_concerns → curation_concerns}/raster_work_form_spec.rb +1 -1
  24. data/spec/forms/{geo_concerns → curation_concerns}/vector_work_form_spec.rb +1 -1
  25. data/spec/services/geo_concerns/discovery/document_builder/basic_metadata_builder_spec.rb +35 -0
  26. data/template.rb +1 -1
  27. metadata +69 -62
  28. data/app/assets/images/geo_concerns/img/filter-icon.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0c4d8596311ffeda0e5bf74bea8326745f83e51
4
- data.tar.gz: 165200c939e0446ae0e0d78ac8a12d7222689985
3
+ metadata.gz: 38970a025ee193c41a77e1e515b896a468978530
4
+ data.tar.gz: ff70b69772e3e2d13ad9a9fb3491eea515a2dfe8
5
5
  SHA512:
6
- metadata.gz: 2ab54206205eacda39834e6a28c9b362d6fa8c41dcb95ce116f238c5df17888dae05f1668447017a3f6319baeaa92fb0cb0f9f06f21ea1278739c57a582c9f70
7
- data.tar.gz: 8a2e87ad653f38218d7df60178bbcd8d8a9cd20df3e4bf04cff8390777097121d2a92ca39bce06df1d1327818ac0755d791611f70a97897aaab48f42b556990f
6
+ metadata.gz: b20498310989fcc426074a033e885dde10074869ac05cbe1b041c61869586407c737bfcb913b6bd7de746cab927b8ffa0790cbff6313c594b218f549947b99be
7
+ data.tar.gz: 8a3036449bcc37d3e834879a534520c26c129009a29a5456d59b5b3cfef9e0d71ed3625b7fc543e92a68aa8c497eede2fefe86ec1c788a797ac01c3e496d3477
@@ -34,12 +34,12 @@
34
34
  width: 246px;
35
35
  }
36
36
  .leaflet-control-geocoder-icon {
37
- background-image: url(images/geocoder.png);
37
+ background-image: url(image_path('geo_concerns/images/geocoder.png'));
38
38
  background-repeat: no-repeat;
39
39
  background-position: center;
40
40
  }
41
41
  .leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon {
42
- background-image: url(images/throbber.gif);
42
+ background-image: url(image_path('geo_concerns/images/throbber.gif'));
43
43
  }
44
44
 
45
45
  .leaflet-control-geocoder-form-no-error {
@@ -9,4 +9,7 @@
9
9
  .bbox-inputs {
10
10
  margin-top: 10px;
11
11
  margin-bottom: 10px;
12
+ .input-group-addon div {
13
+ width: 30px;
14
+ }
12
15
  }
@@ -1,9 +1,9 @@
1
1
  div.leaflet-marker-icon.location-filter.resize-marker {
2
- background: url( img/resize-handle.png ) no-repeat;
2
+ background: url(image_path('geo_concerns/images/resize-handle.png')) no-repeat;
3
3
  cursor: move;
4
4
  }
5
5
  div.leaflet-marker-icon.location-filter.move-marker {
6
- background: url( img/move-handle.png ) no-repeat;
6
+ background: url(image_path('geo_concerns/images/move-handle.png')) no-repeat;
7
7
  cursor: move;
8
8
  }
9
9
 
@@ -6,8 +6,9 @@ module GeoConcerns
6
6
  self.show_presenter = GeoConcerns::ImageWorkShowPresenter
7
7
  end
8
8
 
9
+ # For backwards compatibility with CurationConcerns =< 1.6.3
9
10
  def form_class
10
- GeoConcerns::ImageWorkForm
11
+ CurationConcerns::ImageWorkForm
11
12
  end
12
13
  end
13
14
  end
@@ -6,8 +6,9 @@ module GeoConcerns
6
6
  self.show_presenter = GeoConcerns::RasterWorkShowPresenter
7
7
  end
8
8
 
9
+ # For backwards compatibility with CurationConcerns =< 1.6.3
9
10
  def form_class
10
- GeoConcerns::RasterWorkForm
11
+ CurationConcerns::RasterWorkForm
11
12
  end
12
13
  end
13
14
  end
@@ -6,8 +6,9 @@ module GeoConcerns
6
6
  self.show_presenter = GeoConcerns::VectorWorkShowPresenter
7
7
  end
8
8
 
9
+ # For backwards compatibility with CurationConcerns =< 1.6.3
9
10
  def form_class
10
- GeoConcerns::VectorWorkForm
11
+ CurationConcerns::VectorWorkForm
11
12
  end
12
13
  end
13
14
  end
@@ -1,4 +1,4 @@
1
- module GeoConcerns
1
+ module CurationConcerns
2
2
  class ImageWorkForm < CurationConcerns::Forms::WorkForm
3
3
  include ::GeoConcerns::BasicGeoMetadataForm
4
4
  include ::GeoConcerns::ExternalMetadataFileForm
@@ -1,4 +1,4 @@
1
- module GeoConcerns
1
+ module CurationConcerns
2
2
  class RasterWorkForm < CurationConcerns::Forms::WorkForm
3
3
  include ::GeoConcerns::BasicGeoMetadataForm
4
4
  include ::GeoConcerns::GeoreferencedForm
@@ -1,4 +1,4 @@
1
- module GeoConcerns
1
+ module CurationConcerns
2
2
  class VectorWorkForm < CurationConcerns::Forms::WorkForm
3
3
  include ::GeoConcerns::BasicGeoMetadataForm
4
4
  include ::GeoConcerns::GeoreferencedForm
@@ -21,27 +21,27 @@ module GeoConcerns
21
21
  def bbox_display_inputs
22
22
  %(
23
23
  <div class="row bbox-inputs">
24
- <div class="col-lg-3">
24
+ <div class="col-md-3">
25
25
  <div class="input-group">
26
- <span class="input-group-addon">North</span>
26
+ <span class="input-group-addon"><div>North</div></span>
27
27
  <input readonly id="bbox-north" type="text" class="form-control bbox-input">
28
28
  </div>
29
29
  </div>
30
- <div class="col-lg-3">
30
+ <div class="col-md-3">
31
31
  <div class="input-group">
32
- <span class="input-group-addon">East</span>
32
+ <span class="input-group-addon"><div>East</div></span>
33
33
  <input readonly id="bbox-east" type="text" class="form-control bbox-input">
34
34
  </div>
35
35
  </div>
36
- <div class="col-lg-3">
36
+ <div class="col-md-3">
37
37
  <div class="input-group">
38
- <span class="input-group-addon">South</span>
38
+ <span class="input-group-addon"><div>South</div></span>
39
39
  <input readonly id="bbox-south" type="text" class="form-control bbox-input">
40
40
  </div>
41
41
  </div>
42
- <div class="col-lg-3">
42
+ <div class="col-md-3">
43
43
  <div class="input-group">
44
- <span class="input-group-addon">West</span>
44
+ <span class="input-group-addon"><div>West</div></span>
45
45
  <input readonly id="bbox-west" type="text" class="form-control bbox-input">
46
46
  </div>
47
47
  </div>
@@ -48,8 +48,14 @@ module GeoConcerns
48
48
  # If identifier is not set, the work id is used.
49
49
  # @return [String] identifier
50
50
  def identifier
51
- indentifiers = geo_concern.identifier
52
- indentifiers.empty? ? geo_concern.id : indentifiers.first
51
+ identifiers = geo_concern.identifier
52
+ if identifiers.nil? || identifiers.empty?
53
+ geo_concern.id
54
+ elsif identifiers.is_a?(String)
55
+ identifiers
56
+ else
57
+ identifiers.first
58
+ end
53
59
  end
54
60
 
55
61
  # Returns the work description. If none is available,
@@ -1,3 +1,3 @@
1
1
  module GeoConcerns
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
@@ -2,6 +2,10 @@ require 'spec_helper'
2
2
 
3
3
  describe CurationConcerns::ImageWorksController, type: :controller do
4
4
  let(:user) { FactoryGirl.create(:user) }
5
+ let(:image_work) { FactoryGirl.create(:image_work, user: user, title: ['Image Work Title']) }
6
+ let!(:sipity_entity) do
7
+ create(:sipity_entity, proxy_for_global_id: image_work.to_global_id.to_s)
8
+ end
5
9
 
6
10
  describe "#show_presenter" do
7
11
  it "is a image work show presenter" do
@@ -9,15 +13,19 @@ describe CurationConcerns::ImageWorksController, type: :controller do
9
13
  end
10
14
  end
11
15
 
16
+ describe '#form_class' do
17
+ it 'returns the raster work form class' do
18
+ expect(described_class.new.form_class). to eq(CurationConcerns::ImageWorkForm)
19
+ end
20
+ end
21
+
12
22
  describe "#show" do
13
23
  before do
14
24
  sign_in user
15
25
  end
16
26
  context "with an existing image work" do
17
27
  it "is a success" do
18
- image = FactoryGirl.create(:image_work, user: user)
19
-
20
- get :show, params: { id: image.id }
28
+ get :show, params: { id: image_work.id }
21
29
  expect(response).to be_success
22
30
  end
23
31
  end
@@ -4,20 +4,25 @@ describe CurationConcerns::RasterWorksController, type: :controller do
4
4
  let(:user) { FactoryGirl.create(:user) }
5
5
  let(:raster_work) { FactoryGirl.create(:raster_work, user: user, title: ['Raster Work Title']) }
6
6
  let(:reloaded) { raster_work.reload }
7
+ let!(:sipity_entity) do
8
+ create(:sipity_entity, proxy_for_global_id: raster_work.to_global_id.to_s)
9
+ end
7
10
 
8
11
  describe "#show" do
9
12
  before do
10
13
  sign_in user
11
14
  end
12
15
  context "when there's a parent image work" do
16
+ let(:parent_image_work) { FactoryGirl.create(:image_work, user: user) }
17
+ let!(:parent_sipity_entity) do
18
+ create(:sipity_entity, proxy_for_global_id: parent_image_work.to_global_id.to_s)
19
+ end
13
20
  it "is a success" do
14
- raster = FactoryGirl.create(:raster_work, user: user)
15
- image = FactoryGirl.create(:image_work, user: user)
16
- image.ordered_members << raster
17
- image.save
18
- raster.update_index
21
+ parent_image_work.ordered_members << raster_work
22
+ parent_image_work.save
23
+ raster_work.update_index
19
24
 
20
- get :show, params: { id: raster.id }
25
+ get :show, params: { id: raster_work.id }
21
26
  expect(response).to be_success
22
27
  end
23
28
  end
@@ -28,4 +33,10 @@ describe CurationConcerns::RasterWorksController, type: :controller do
28
33
  expect(described_class.new.show_presenter).to eq(GeoConcerns::RasterWorkShowPresenter)
29
34
  end
30
35
  end
36
+
37
+ describe '#form_class' do
38
+ it 'returns the raster work form class' do
39
+ expect(described_class.new.form_class). to eq(CurationConcerns::RasterWorkForm)
40
+ end
41
+ end
31
42
  end
@@ -4,20 +4,25 @@ describe CurationConcerns::VectorWorksController, type: :controller do
4
4
  let(:user) { FactoryGirl.create(:user) }
5
5
  let(:vector_work) { FactoryGirl.create(:vector_work, user: user, title: ['Vector Work Title']) }
6
6
  let(:reloaded) { vector_work.reload }
7
+ let!(:sipity_entity) do
8
+ create(:sipity_entity, proxy_for_global_id: vector_work.to_global_id.to_s)
9
+ end
7
10
 
8
11
  describe "#show" do
9
12
  before do
10
13
  sign_in user
11
14
  end
12
15
  context "when there's a parent raster work" do
16
+ let(:parent_raster_work) { FactoryGirl.create(:raster_work, user: user) }
17
+ let!(:parent_sipity_entity) do
18
+ create(:sipity_entity, proxy_for_global_id: parent_raster_work.to_global_id.to_s)
19
+ end
13
20
  it "is a success" do
14
- vector = FactoryGirl.create(:vector_work, user: user)
15
- raster = FactoryGirl.create(:raster_work, user: user)
16
- raster.ordered_members << vector
17
- raster.save
18
- vector.update_index
21
+ parent_raster_work.ordered_members << vector_work
22
+ parent_raster_work.save
23
+ vector_work.update_index
19
24
 
20
- get :show, params: { id: vector.id }
25
+ get :show, params: { id: vector_work.id }
21
26
  expect(response).to be_success
22
27
  end
23
28
  end
@@ -29,6 +34,12 @@ describe CurationConcerns::VectorWorksController, type: :controller do
29
34
  end
30
35
  end
31
36
 
37
+ describe '#form_class' do
38
+ it 'returns the raster work form class' do
39
+ expect(described_class.new.form_class). to eq(CurationConcerns::VectorWorkForm)
40
+ end
41
+ end
42
+
32
43
  describe '#geoblacklight' do
33
44
  # Tell RSpec where to find the geoblacklight route.
34
45
  routes { GeoConcerns::Engine.routes }
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :sipity_entity, class: Sipity::Entity do
3
+ proxy_for_global_id 'gid://internal/Mock/1'
4
+ workflow { workflow_state.workflow }
5
+ workflow_state
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ FactoryGirl.define do
2
+ factory :workflow_state, class: Sipity::WorkflowState do
3
+ workflow
4
+ name 'initial'
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :workflow, class: Sipity::Workflow do
3
+ sequence(:name) { |n| "generic_work-#{n}" }
4
+ end
5
+ end
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe GeoConcerns::ImageWorkForm do
3
+ describe CurationConcerns::ImageWorkForm do
4
4
  let(:coverage) { GeoConcerns::Coverage.new(43.039, -69.856, 42.943, -71.032) }
5
5
  let(:raw_attributes) { ActionController::Parameters.new(coverage: coverage.to_s) }
6
6
 
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe GeoConcerns::RasterWorkForm do
3
+ describe CurationConcerns::RasterWorkForm do
4
4
  let(:coverage) { GeoConcerns::Coverage.new(43.039, -69.856, 42.943, -71.032) }
5
5
  let(:raw_attributes) { ActionController::Parameters.new(
6
6
  coverage: coverage.to_s,
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe GeoConcerns::VectorWorkForm do
3
+ describe CurationConcerns::VectorWorkForm do
4
4
  let(:coverage) { GeoConcerns::Coverage.new(43.039, -69.856, 42.943, -71.032) }
5
5
  let(:raw_attributes) { ActionController::Parameters.new(
6
6
  coverage: coverage.to_s,
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe GeoConcerns::Discovery::DocumentBuilder::BasicMetadataBuilder do
4
+ subject { described_class.new(geo_concern) }
5
+
6
+ let(:geo_concern) { FactoryGirl.build(:public_vector_work, id: 'geo-work-1') }
7
+ let(:id_string) { 'ark:/99999/fk4' }
8
+
9
+ describe '#identifier' do
10
+ context 'nil' do
11
+ it 'returns the geo_concern id' do
12
+ allow(geo_concern).to receive(:identifier).and_return(nil)
13
+ expect(subject.send(:identifier)).to eq 'geo-work-1'
14
+ end
15
+ end
16
+ context 'String' do
17
+ it 'returns the identifier string' do
18
+ allow(geo_concern).to receive(:identifier).and_return(id_string)
19
+ expect(subject.send(:identifier)).to eq id_string
20
+ end
21
+ end
22
+ context 'empty array' do
23
+ it 'returns the geo_concern id' do
24
+ allow(geo_concern).to receive(:identifier).and_return([])
25
+ expect(subject.send(:identifier)).to eq 'geo-work-1'
26
+ end
27
+ end
28
+ context 'array with String' do
29
+ it 'returns the identifier string' do
30
+ allow(geo_concern).to receive(:identifier).and_return([id_string])
31
+ expect(subject.send(:identifier)).to eq id_string
32
+ end
33
+ end
34
+ end
35
+ end
data/template.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  gem 'curation_concerns', '1.6.3'
2
- gem 'geo_concerns', '0.3.0'
2
+ gem 'geo_concerns', '0.3.1'
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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Griffin
@@ -9,153 +9,152 @@ authors:
9
9
  - John Huck
10
10
  - Eric James
11
11
  - Eliot Jordan
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-12-07 00:00:00.000000000 Z
15
+ date: 2016-12-13 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: curation_concerns
19
18
  requirement: !ruby/object:Gem::Requirement
20
19
  requirements:
21
20
  - - ">="
22
21
  - !ruby/object:Gem::Version
23
22
  version: '1.6'
24
- type: :runtime
23
+ name: curation_concerns
25
24
  prerelease: false
25
+ type: :runtime
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: '1.6'
31
31
  - !ruby/object:Gem::Dependency
32
- name: leaflet-rails
33
32
  requirement: !ruby/object:Gem::Requirement
34
33
  requirements:
35
34
  - - "~>"
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0.7'
38
- type: :runtime
37
+ name: leaflet-rails
39
38
  prerelease: false
39
+ type: :runtime
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0.7'
45
45
  - !ruby/object:Gem::Dependency
46
- name: json-schema
47
46
  requirement: !ruby/object:Gem::Requirement
48
47
  requirements:
49
48
  - - ">="
50
49
  - !ruby/object:Gem::Version
51
50
  version: 2.6.2
52
- type: :runtime
51
+ name: json-schema
53
52
  prerelease: false
53
+ type: :runtime
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
56
  - - ">="
57
57
  - !ruby/object:Gem::Version
58
58
  version: 2.6.2
59
59
  - !ruby/object:Gem::Dependency
60
- name: rgeoserver
61
60
  requirement: !ruby/object:Gem::Requirement
62
61
  requirements:
63
62
  - - ">="
64
63
  - !ruby/object:Gem::Version
65
64
  version: 0.10.0
66
- type: :runtime
65
+ name: rgeoserver
67
66
  prerelease: false
67
+ type: :runtime
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 0.10.0
73
73
  - !ruby/object:Gem::Dependency
74
- name: simpler-tiles
75
74
  requirement: !ruby/object:Gem::Requirement
76
75
  requirements:
77
76
  - - ">="
78
77
  - !ruby/object:Gem::Version
79
78
  version: '0'
80
- type: :runtime
79
+ name: simpler-tiles
81
80
  prerelease: false
81
+ type: :runtime
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  - !ruby/object:Gem::Dependency
88
- name: bunny
89
88
  requirement: !ruby/object:Gem::Requirement
90
89
  requirements:
91
90
  - - ">="
92
91
  - !ruby/object:Gem::Version
93
92
  version: '0'
94
- type: :runtime
93
+ name: bunny
95
94
  prerelease: false
95
+ type: :runtime
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  - !ruby/object:Gem::Dependency
102
- name: geoblacklight_messaging
103
102
  requirement: !ruby/object:Gem::Requirement
104
103
  requirements:
105
104
  - - ">="
106
105
  - !ruby/object:Gem::Version
107
106
  version: '0'
108
- type: :runtime
107
+ name: geoblacklight_messaging
109
108
  prerelease: false
109
+ type: :runtime
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  - !ruby/object:Gem::Dependency
116
- name: jquery-ui-rails
117
116
  requirement: !ruby/object:Gem::Requirement
118
117
  requirements:
119
118
  - - "~>"
120
119
  - !ruby/object:Gem::Version
121
120
  version: 5.0.5
122
- type: :runtime
121
+ name: jquery-ui-rails
123
122
  prerelease: false
123
+ type: :runtime
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - "~>"
127
127
  - !ruby/object:Gem::Version
128
128
  version: 5.0.5
129
129
  - !ruby/object:Gem::Dependency
130
- name: bundler
131
130
  requirement: !ruby/object:Gem::Requirement
132
131
  requirements:
133
132
  - - "~>"
134
133
  - !ruby/object:Gem::Version
135
134
  version: '1.13'
136
- type: :development
135
+ name: bundler
137
136
  prerelease: false
137
+ type: :development
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - "~>"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '1.13'
143
143
  - !ruby/object:Gem::Dependency
144
- name: sqlite3
145
144
  requirement: !ruby/object:Gem::Requirement
146
145
  requirements:
147
146
  - - ">="
148
147
  - !ruby/object:Gem::Version
149
148
  version: '0'
150
- type: :development
149
+ name: sqlite3
151
150
  prerelease: false
151
+ type: :development
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  - !ruby/object:Gem::Dependency
158
- name: devise
159
158
  requirement: !ruby/object:Gem::Requirement
160
159
  requirements:
161
160
  - - ">="
@@ -164,8 +163,9 @@ dependencies:
164
163
  - - "<"
165
164
  - !ruby/object:Gem::Version
166
165
  version: '5'
167
- type: :development
166
+ name: devise
168
167
  prerelease: false
168
+ type: :development
169
169
  version_requirements: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -175,21 +175,20 @@ dependencies:
175
175
  - !ruby/object:Gem::Version
176
176
  version: '5'
177
177
  - !ruby/object:Gem::Dependency
178
- name: rspec-rails
179
178
  requirement: !ruby/object:Gem::Requirement
180
179
  requirements:
181
180
  - - ">="
182
181
  - !ruby/object:Gem::Version
183
182
  version: 3.5.2
184
- type: :development
183
+ name: rspec-rails
185
184
  prerelease: false
185
+ type: :development
186
186
  version_requirements: !ruby/object:Gem::Requirement
187
187
  requirements:
188
188
  - - ">="
189
189
  - !ruby/object:Gem::Version
190
190
  version: 3.5.2
191
191
  - !ruby/object:Gem::Dependency
192
- name: engine_cart
193
192
  requirement: !ruby/object:Gem::Requirement
194
193
  requirements:
195
194
  - - "~>"
@@ -198,8 +197,9 @@ dependencies:
198
197
  - - ">="
199
198
  - !ruby/object:Gem::Version
200
199
  version: 1.0.1
201
- type: :development
200
+ name: engine_cart
202
201
  prerelease: false
202
+ type: :development
203
203
  version_requirements: !ruby/object:Gem::Requirement
204
204
  requirements:
205
205
  - - "~>"
@@ -209,7 +209,6 @@ dependencies:
209
209
  - !ruby/object:Gem::Version
210
210
  version: 1.0.1
211
211
  - !ruby/object:Gem::Dependency
212
- name: solr_wrapper
213
212
  requirement: !ruby/object:Gem::Requirement
214
213
  requirements:
215
214
  - - "~>"
@@ -218,8 +217,9 @@ dependencies:
218
217
  - - ">="
219
218
  - !ruby/object:Gem::Version
220
219
  version: 0.18.0
221
- type: :development
220
+ name: solr_wrapper
222
221
  prerelease: false
222
+ type: :development
223
223
  version_requirements: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - "~>"
@@ -229,7 +229,6 @@ dependencies:
229
229
  - !ruby/object:Gem::Version
230
230
  version: 0.18.0
231
231
  - !ruby/object:Gem::Dependency
232
- name: fcrepo_wrapper
233
232
  requirement: !ruby/object:Gem::Requirement
234
233
  requirements:
235
234
  - - "~>"
@@ -238,8 +237,9 @@ dependencies:
238
237
  - - ">="
239
238
  - !ruby/object:Gem::Version
240
239
  version: 0.6.0
241
- type: :development
240
+ name: fcrepo_wrapper
242
241
  prerelease: false
242
+ type: :development
243
243
  version_requirements: !ruby/object:Gem::Requirement
244
244
  requirements:
245
245
  - - "~>"
@@ -249,84 +249,84 @@ dependencies:
249
249
  - !ruby/object:Gem::Version
250
250
  version: 0.6.0
251
251
  - !ruby/object:Gem::Dependency
252
- name: pry-byebug
253
252
  requirement: !ruby/object:Gem::Requirement
254
253
  requirements:
255
254
  - - ">="
256
255
  - !ruby/object:Gem::Version
257
256
  version: '0'
258
- type: :development
257
+ name: pry-byebug
259
258
  prerelease: false
259
+ type: :development
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
- name: database_cleaner
267
266
  requirement: !ruby/object:Gem::Requirement
268
267
  requirements:
269
268
  - - "<"
270
269
  - !ruby/object:Gem::Version
271
270
  version: 1.1.0
272
- type: :development
271
+ name: database_cleaner
273
272
  prerelease: false
273
+ type: :development
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
276
  - - "<"
277
277
  - !ruby/object:Gem::Version
278
278
  version: 1.1.0
279
279
  - !ruby/object:Gem::Dependency
280
- name: rubocop
281
280
  requirement: !ruby/object:Gem::Requirement
282
281
  requirements:
283
282
  - - "~>"
284
283
  - !ruby/object:Gem::Version
285
284
  version: '0.39'
286
- type: :development
285
+ name: rubocop
287
286
  prerelease: false
287
+ type: :development
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
290
  - - "~>"
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0.39'
293
293
  - !ruby/object:Gem::Dependency
294
- name: rubocop-rspec
295
294
  requirement: !ruby/object:Gem::Requirement
296
295
  requirements:
297
296
  - - "~>"
298
297
  - !ruby/object:Gem::Version
299
298
  version: 1.4.1
300
- type: :development
299
+ name: rubocop-rspec
301
300
  prerelease: false
301
+ type: :development
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
306
  version: 1.4.1
307
307
  - !ruby/object:Gem::Dependency
308
- name: factory_girl
309
308
  requirement: !ruby/object:Gem::Requirement
310
309
  requirements:
311
310
  - - ">="
312
311
  - !ruby/object:Gem::Version
313
312
  version: '0'
314
- type: :development
313
+ name: factory_girl
315
314
  prerelease: false
315
+ type: :development
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
318
  - - ">="
319
319
  - !ruby/object:Gem::Version
320
320
  version: '0'
321
321
  - !ruby/object:Gem::Dependency
322
- name: capybara
323
322
  requirement: !ruby/object:Gem::Requirement
324
323
  requirements:
325
324
  - - "~>"
326
325
  - !ruby/object:Gem::Version
327
326
  version: '2.7'
328
- type: :development
327
+ name: capybara
329
328
  prerelease: false
329
+ type: :development
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - "~>"
@@ -357,10 +357,9 @@ files:
357
357
  - app/actors/geo_concerns/actors/file_set_actor.rb
358
358
  - app/assets/images/geo_concerns/.keep
359
359
  - app/assets/images/geo_concerns/images/geocoder.png
360
+ - app/assets/images/geo_concerns/images/move-handle.png
361
+ - app/assets/images/geo_concerns/images/resize-handle.png
360
362
  - app/assets/images/geo_concerns/images/throbber.gif
361
- - app/assets/images/geo_concerns/img/filter-icon.png
362
- - app/assets/images/geo_concerns/img/move-handle.png
363
- - app/assets/images/geo_concerns/img/resize-handle.png
364
363
  - app/assets/javascripts/geo_concerns/Control.Geocoder.js
365
364
  - app/assets/javascripts/geo_concerns/application.js
366
365
  - app/assets/javascripts/geo_concerns/bounding_box_selector.js
@@ -371,10 +370,10 @@ files:
371
370
  - app/assets/javascripts/geo_concerns/relationships/child_works.es6
372
371
  - app/assets/javascripts/geo_concerns/relationships/parent_works.es6
373
372
  - app/assets/javascripts/geo_concerns/relationships/related_works.es6
374
- - app/assets/stylesheets/geo_concerns/Control.Geocoder.css
373
+ - app/assets/stylesheets/geo_concerns/Control.Geocoder.scss
375
374
  - app/assets/stylesheets/geo_concerns/application.css
376
375
  - app/assets/stylesheets/geo_concerns/bounding_box.scss
377
- - app/assets/stylesheets/geo_concerns/leaflet-boundingbox.css
376
+ - app/assets/stylesheets/geo_concerns/leaflet-boundingbox.scss
378
377
  - app/assets/stylesheets/geo_concerns/related_works.scss
379
378
  - app/assets/stylesheets/geo_concerns/thumbnails.scss
380
379
  - app/controllers/concerns/geo_concerns/download_behavior.rb
@@ -384,12 +383,12 @@ files:
384
383
  - app/controllers/concerns/geo_concerns/messenger_behavior.rb
385
384
  - app/controllers/concerns/geo_concerns/raster_works_controller_behavior.rb
386
385
  - app/controllers/concerns/geo_concerns/vector_works_controller_behavior.rb
386
+ - app/forms/curation_concerns/image_work_form.rb
387
+ - app/forms/curation_concerns/raster_work_form.rb
388
+ - app/forms/curation_concerns/vector_work_form.rb
387
389
  - app/forms/geo_concerns/basic_geo_metadata_form.rb
388
390
  - app/forms/geo_concerns/external_metadata_file_form.rb
389
391
  - app/forms/geo_concerns/georeferenced_form.rb
390
- - app/forms/geo_concerns/image_work_form.rb
391
- - app/forms/geo_concerns/raster_work_form.rb
392
- - app/forms/geo_concerns/vector_work_form.rb
393
392
  - app/helpers/geo_concerns/application_helper.rb
394
393
  - app/helpers/geo_concerns/bounding_box_helper.rb
395
394
  - app/helpers/geo_concerns/file_set_actions_helper.rb
@@ -588,16 +587,19 @@ files:
588
587
  - spec/factories/image_works.rb
589
588
  - spec/factories/raster_files.rb
590
589
  - spec/factories/raster_works.rb
590
+ - spec/factories/sipity_entities.rb
591
591
  - spec/factories/users.rb
592
592
  - spec/factories/vector_files.rb
593
593
  - spec/factories/vector_works.rb
594
+ - spec/factories/workflow_states.rb
595
+ - spec/factories/workflows.rb
594
596
  - spec/features/create_raster_work_spec.rb
597
+ - spec/forms/curation_concerns/image_work_form_spec.rb
598
+ - spec/forms/curation_concerns/raster_work_form_spec.rb
599
+ - spec/forms/curation_concerns/vector_work_form_spec.rb
595
600
  - spec/forms/geo_concerns/basic_geo_metadata_form_spec.rb
596
601
  - spec/forms/geo_concerns/external_metadata_file_form_spec.rb
597
602
  - spec/forms/geo_concerns/georeferenced_form_spec.rb
598
- - spec/forms/geo_concerns/image_work_form_spec.rb
599
- - spec/forms/geo_concerns/raster_work_form_spec.rb
600
- - spec/forms/geo_concerns/vector_work_form_spec.rb
601
603
  - spec/helpers/bounding_box_helper_spec.rb
602
604
  - spec/helpers/geo_concerns/file_set_actions_helper_spec.rb
603
605
  - spec/helpers/geo_concerns/populate_metadata_helper_spec.rb
@@ -640,6 +642,7 @@ files:
640
642
  - spec/services/geo_concerns/delivery_service_spec.rb
641
643
  - spec/services/geo_concerns/derivative_path_spec.rb
642
644
  - spec/services/geo_concerns/discovery/abstract_document_spec.rb
645
+ - spec/services/geo_concerns/discovery/document_builder/basic_metadata_builder_spec.rb
643
646
  - spec/services/geo_concerns/discovery/document_builder/wxs_spec.rb
644
647
  - spec/services/geo_concerns/discovery/document_builder_spec.rb
645
648
  - spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb
@@ -666,7 +669,7 @@ homepage: https://github.com/projecthydra-labs/geo_concerns
666
669
  licenses:
667
670
  - APACHE2
668
671
  metadata: {}
669
- post_install_message:
672
+ post_install_message:
670
673
  rdoc_options: []
671
674
  require_paths:
672
675
  - lib
@@ -681,9 +684,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
681
684
  - !ruby/object:Gem::Version
682
685
  version: '0'
683
686
  requirements: []
684
- rubyforge_project:
687
+ rubyforge_project:
685
688
  rubygems_version: 2.6.6
686
- signing_key:
689
+ signing_key:
687
690
  specification_version: 4
688
691
  summary: Rails engine for Hydra Geo models. Built around Curation Concerns engine.
689
692
  test_files:
@@ -699,16 +702,19 @@ test_files:
699
702
  - spec/factories/image_works.rb
700
703
  - spec/factories/raster_files.rb
701
704
  - spec/factories/raster_works.rb
705
+ - spec/factories/sipity_entities.rb
702
706
  - spec/factories/users.rb
703
707
  - spec/factories/vector_files.rb
704
708
  - spec/factories/vector_works.rb
709
+ - spec/factories/workflow_states.rb
710
+ - spec/factories/workflows.rb
705
711
  - spec/features/create_raster_work_spec.rb
712
+ - spec/forms/curation_concerns/image_work_form_spec.rb
713
+ - spec/forms/curation_concerns/raster_work_form_spec.rb
714
+ - spec/forms/curation_concerns/vector_work_form_spec.rb
706
715
  - spec/forms/geo_concerns/basic_geo_metadata_form_spec.rb
707
716
  - spec/forms/geo_concerns/external_metadata_file_form_spec.rb
708
717
  - spec/forms/geo_concerns/georeferenced_form_spec.rb
709
- - spec/forms/geo_concerns/image_work_form_spec.rb
710
- - spec/forms/geo_concerns/raster_work_form_spec.rb
711
- - spec/forms/geo_concerns/vector_work_form_spec.rb
712
718
  - spec/helpers/bounding_box_helper_spec.rb
713
719
  - spec/helpers/geo_concerns/file_set_actions_helper_spec.rb
714
720
  - spec/helpers/geo_concerns/populate_metadata_helper_spec.rb
@@ -751,6 +757,7 @@ test_files:
751
757
  - spec/services/geo_concerns/delivery_service_spec.rb
752
758
  - spec/services/geo_concerns/derivative_path_spec.rb
753
759
  - spec/services/geo_concerns/discovery/abstract_document_spec.rb
760
+ - spec/services/geo_concerns/discovery/document_builder/basic_metadata_builder_spec.rb
754
761
  - spec/services/geo_concerns/discovery/document_builder/wxs_spec.rb
755
762
  - spec/services/geo_concerns/discovery/document_builder_spec.rb
756
763
  - spec/services/geo_concerns/discovery/geoblacklight_document_spec.rb