geoblacklight 0.12.1 → 1.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +8 -0
  3. data/.jshintignore +2 -0
  4. data/.jshintrc +67 -0
  5. data/.rubocop.yml +29 -3
  6. data/Gemfile +20 -16
  7. data/README.md +1 -0
  8. data/Rakefile +3 -2
  9. data/app/assets/javascripts/geoblacklight/basemaps.js +0 -9
  10. data/app/assets/javascripts/geoblacklight/controls.js +1 -0
  11. data/app/assets/javascripts/geoblacklight/controls/opacity.js +8 -0
  12. data/app/assets/javascripts/geoblacklight/geoblacklight.js +3 -2
  13. data/app/assets/javascripts/geoblacklight/viewers.js +1 -1
  14. data/app/assets/javascripts/geoblacklight/viewers/esri.js +2 -3
  15. data/app/assets/javascripts/geoblacklight/viewers/esri/dynamic_map_layer.js +2 -2
  16. data/app/assets/javascripts/geoblacklight/viewers/esri/feature_layer.js +1 -5
  17. data/app/assets/javascripts/geoblacklight/viewers/iiif.js +1 -1
  18. data/app/assets/javascripts/geoblacklight/viewers/map.js +1 -9
  19. data/app/assets/javascripts/geoblacklight/viewers/viewer.js +42 -1
  20. data/app/assets/javascripts/geoblacklight/viewers/wms.js +1 -1
  21. data/app/assets/stylesheets/geoblacklight/modules/toolbar.scss +4 -0
  22. data/app/helpers/geoblacklight_helper.rb +28 -14
  23. data/app/models/concerns/geoblacklight/solr_document.rb +20 -11
  24. data/{lib/geoblacklight/search_builder.rb → app/models/concerns/geoblacklight/spatial_search_behavior.rb} +6 -8
  25. data/app/presenters/geoblacklight/document_presenter.rb +14 -7
  26. data/app/views/catalog/_document_split.html.erb +1 -1
  27. data/app/views/catalog/_downloads.html.erb +46 -38
  28. data/app/views/catalog/_facet_tag_item.html.erb +1 -1
  29. data/app/views/catalog/_facet_tag_layout.html.erb +1 -1
  30. data/app/views/catalog/_header_icons.html.erb +3 -0
  31. data/app/views/catalog/_home_text.html.erb +5 -5
  32. data/app/views/catalog/_index_split_default.html.erb +5 -7
  33. data/app/views/catalog/_search_form_no_navbar.html.erb +2 -2
  34. data/app/views/catalog/_show_default_viewer_container.html.erb +2 -2
  35. data/app/views/catalog/_show_header_default.html.erb +1 -3
  36. data/app/views/catalog/_web_services_wfs.html.erb +1 -1
  37. data/app/views/catalog/_web_services_wms.html.erb +1 -1
  38. data/config/jetty.yml +1 -1
  39. data/config/locales/geoblacklight.en.yml +1 -0
  40. data/geoblacklight.gemspec +4 -4
  41. data/lib/generators/geoblacklight/install_generator.rb +34 -3
  42. data/lib/generators/geoblacklight/templates/catalog_controller.rb +36 -31
  43. data/lib/generators/geoblacklight/templates/config/jetty.yml +1 -1
  44. data/lib/generators/geoblacklight/templates/geoblacklight.js +1 -0
  45. data/lib/generators/geoblacklight/templates/{geoblacklight.css.scss → geoblacklight.scss} +0 -0
  46. data/lib/generators/geoblacklight/templates/settings.yml +42 -2
  47. data/lib/geoblacklight.rb +1 -2
  48. data/lib/geoblacklight/constants.rb +1 -1
  49. data/lib/geoblacklight/download.rb +8 -7
  50. data/lib/geoblacklight/download/geojson_download.rb +1 -1
  51. data/lib/geoblacklight/download/geotiff_download.rb +1 -1
  52. data/lib/geoblacklight/download/kmz_download.rb +1 -1
  53. data/lib/geoblacklight/download/shapefile_download.rb +1 -1
  54. data/lib/geoblacklight/geoblacklight_helper_behavior.rb +4 -10
  55. data/lib/geoblacklight/metadata.rb +3 -6
  56. data/lib/geoblacklight/references.rb +2 -2
  57. data/lib/geoblacklight/routes.rb +3 -17
  58. data/lib/geoblacklight/routes/downloadable.rb +14 -0
  59. data/lib/geoblacklight/routes/exportable.rb +16 -0
  60. data/lib/geoblacklight/routes/wms.rb +13 -0
  61. data/lib/geoblacklight/version.rb +1 -1
  62. data/spec/controllers/catalog_controller_spec.rb +1 -1
  63. data/spec/controllers/download_controller_spec.rb +7 -1
  64. data/spec/features/bookmarks_spec.rb +1 -1
  65. data/spec/features/configurable_basemap_spec.rb +9 -8
  66. data/spec/features/download_layer_spec.rb +33 -15
  67. data/spec/features/esri_viewer_spec.rb +9 -8
  68. data/spec/features/exports_spec.rb +3 -3
  69. data/spec/features/home_page_spec.rb +1 -1
  70. data/spec/features/iiif_viewer_spec.rb +1 -1
  71. data/spec/features/layer_inspection_spec.rb +2 -2
  72. data/spec/features/layer_opacity_spec.rb +7 -2
  73. data/spec/features/layer_preview_spec.rb +2 -2
  74. data/spec/features/metadata_panel_spec.rb +3 -3
  75. data/spec/features/saved_searches_spec.rb +1 -1
  76. data/spec/features/search_bar_spec.rb +2 -2
  77. data/spec/features/show_page_metadata_spec.rb +1 -1
  78. data/spec/features/split_view.html.erb_spec.rb +6 -5
  79. data/spec/features/web_services_modal_spec.rb +3 -3
  80. data/spec/helpers/geoblacklight_helpers_spec.rb +71 -3
  81. data/spec/lib/geoblacklight/document_presenter_spec.rb +41 -13
  82. data/spec/lib/geoblacklight/download_spec.rb +9 -1
  83. data/spec/lib/geoblacklight/geoblacklight_helper_behavior_spec.rb +12 -9
  84. data/spec/lib/geoblacklight/item_viewer_spec.rb +4 -3
  85. data/spec/lib/geoblacklight/references_spec.rb +22 -18
  86. data/spec/lib/geoblacklight/view_helper_override_spec.rb +1 -1
  87. data/spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb +1 -1
  88. data/spec/lib/geoblacklight/wms_layer_spec.rb +1 -1
  89. data/spec/models/concerns/geoblacklight/solr_document/carto_db_spec.rb +7 -1
  90. data/spec/models/concerns/geoblacklight/solr_document_spec.rb +34 -11
  91. data/spec/{lib/geoblacklight/search_builder_spec.rb → models/concerns/geoblacklight/spatial_search_behavior_spec.rb} +10 -15
  92. data/spec/spec_helper.rb +6 -6
  93. data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
  94. metadata +25 -22
data/spec/spec_helper.rb CHANGED
@@ -41,11 +41,11 @@ RSpec.configure do |config|
41
41
  config.use_transactional_fixtures = false
42
42
 
43
43
  config.before :each do
44
- if Capybara.current_driver == :rack_test
45
- DatabaseCleaner.strategy = :transaction
46
- else
47
- DatabaseCleaner.strategy = :truncation
48
- end
44
+ DatabaseCleaner.strategy = if Capybara.current_driver == :rack_test
45
+ :transaction
46
+ else
47
+ :truncation
48
+ end
49
49
  DatabaseCleaner.start
50
50
  end
51
51
 
@@ -53,5 +53,5 @@ RSpec.configure do |config|
53
53
  DatabaseCleaner.clean
54
54
  end
55
55
 
56
- config.include Devise::TestHelpers, type: :controller
56
+ config.include Devise::Test::ControllerHelpers, type: :controller
57
57
  end
@@ -4,7 +4,7 @@ class TestAppGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path('../../../../spec/test_app_templates', __FILE__)
5
5
 
6
6
  def add_gems
7
- gem 'blacklight', '~> 5.9'
7
+ gem 'blacklight', '~> 6.3'
8
8
  gem 'teaspoon'
9
9
  gem 'teaspoon-jasmine'
10
10
  Bundler.with_clean_env do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 1.0.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Graves
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-06 00:00:00.000000000 Z
14
+ date: 2016-07-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
@@ -19,20 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.12'
23
- - - "<"
24
- - !ruby/object:Gem::Version
25
- version: '6'
22
+ version: '6.3'
26
23
  type: :runtime
27
24
  prerelease: false
28
25
  version_requirements: !ruby/object:Gem::Requirement
29
26
  requirements:
30
27
  - - "~>"
31
28
  - !ruby/object:Gem::Version
32
- version: '5.12'
33
- - - "<"
34
- - !ruby/object:Gem::Version
35
- version: '6'
29
+ version: '6.3'
36
30
  - !ruby/object:Gem::Dependency
37
31
  name: leaflet-rails
38
32
  requirement: !ruby/object:Gem::Requirement
@@ -137,28 +131,28 @@ dependencies:
137
131
  requirements:
138
132
  - - "~>"
139
133
  - !ruby/object:Gem::Version
140
- version: 10.3.2
134
+ version: 11.0.1
141
135
  type: :development
142
136
  prerelease: false
143
137
  version_requirements: !ruby/object:Gem::Requirement
144
138
  requirements:
145
139
  - - "~>"
146
140
  - !ruby/object:Gem::Version
147
- version: 10.3.2
141
+ version: 11.0.1
148
142
  - !ruby/object:Gem::Dependency
149
143
  name: rspec-rails
150
144
  requirement: !ruby/object:Gem::Requirement
151
145
  requirements:
152
146
  - - "~>"
153
147
  - !ruby/object:Gem::Version
154
- version: 3.0.1
148
+ version: 3.4.2
155
149
  type: :development
156
150
  prerelease: false
157
151
  version_requirements: !ruby/object:Gem::Requirement
158
152
  requirements:
159
153
  - - "~>"
160
154
  - !ruby/object:Gem::Version
161
- version: 3.0.1
155
+ version: 3.4.2
162
156
  - !ruby/object:Gem::Dependency
163
157
  name: jettywrapper
164
158
  requirement: !ruby/object:Gem::Requirement
@@ -179,14 +173,14 @@ dependencies:
179
173
  requirements:
180
174
  - - "~>"
181
175
  - !ruby/object:Gem::Version
182
- version: '0.8'
176
+ version: '0.10'
183
177
  type: :development
184
178
  prerelease: false
185
179
  version_requirements: !ruby/object:Gem::Requirement
186
180
  requirements:
187
181
  - - "~>"
188
182
  - !ruby/object:Gem::Version
189
- version: '0.8'
183
+ version: '0.10'
190
184
  - !ruby/object:Gem::Dependency
191
185
  name: capybara
192
186
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +253,9 @@ files:
259
253
  - ".coveralls.yml"
260
254
  - ".gitignore"
261
255
  - ".gitmodules"
256
+ - ".hound.yml"
257
+ - ".jshintignore"
258
+ - ".jshintrc"
262
259
  - ".rubocop.yml"
263
260
  - ".travis.yml"
264
261
  - CONTRIBUTING.md
@@ -268,6 +265,8 @@ files:
268
265
  - Rakefile
269
266
  - app/assets/images/blacklight/logo.png
270
267
  - app/assets/javascripts/geoblacklight/basemaps.js
268
+ - app/assets/javascripts/geoblacklight/controls.js
269
+ - app/assets/javascripts/geoblacklight/controls/opacity.js
271
270
  - app/assets/javascripts/geoblacklight/downloaders.js
272
271
  - app/assets/javascripts/geoblacklight/downloaders/downloader.js
273
272
  - app/assets/javascripts/geoblacklight/downloaders/hgl_downloader.js
@@ -313,6 +312,7 @@ files:
313
312
  - app/models/concerns/geoblacklight/solr_document/carto_db.rb
314
313
  - app/models/concerns/geoblacklight/solr_document/finder.rb
315
314
  - app/models/concerns/geoblacklight/solr_document/inspection.rb
315
+ - app/models/concerns/geoblacklight/spatial_search_behavior.rb
316
316
  - app/presenters/geoblacklight/document_presenter.rb
317
317
  - app/views/catalog/_document_action.html.erb
318
318
  - app/views/catalog/_document_split.html.erb
@@ -320,6 +320,7 @@ files:
320
320
  - app/views/catalog/_exports.html.erb
321
321
  - app/views/catalog/_facet_tag_item.html.erb
322
322
  - app/views/catalog/_facet_tag_layout.html.erb
323
+ - app/views/catalog/_header_icons.html.erb
323
324
  - app/views/catalog/_home_text.html.erb
324
325
  - app/views/catalog/_icon_facet.html.erb
325
326
  - app/views/catalog/_index_split_default.html.erb
@@ -348,8 +349,8 @@ files:
348
349
  - lib/generators/geoblacklight/install_generator.rb
349
350
  - lib/generators/geoblacklight/templates/catalog_controller.rb
350
351
  - lib/generators/geoblacklight/templates/config/jetty.yml
351
- - lib/generators/geoblacklight/templates/geoblacklight.css.scss
352
352
  - lib/generators/geoblacklight/templates/geoblacklight.js
353
+ - lib/generators/geoblacklight/templates/geoblacklight.scss
353
354
  - lib/generators/geoblacklight/templates/settings.yml
354
355
  - lib/geoblacklight.rb
355
356
  - lib/geoblacklight/bounding_box.rb
@@ -370,7 +371,9 @@ files:
370
371
  - lib/geoblacklight/reference.rb
371
372
  - lib/geoblacklight/references.rb
372
373
  - lib/geoblacklight/routes.rb
373
- - lib/geoblacklight/search_builder.rb
374
+ - lib/geoblacklight/routes/downloadable.rb
375
+ - lib/geoblacklight/routes/exportable.rb
376
+ - lib/geoblacklight/routes/wms.rb
374
377
  - lib/geoblacklight/version.rb
375
378
  - lib/geoblacklight/view_helper_override.rb
376
379
  - lib/geoblacklight/wms_layer.rb
@@ -429,7 +432,6 @@ files:
429
432
  - spec/lib/geoblacklight/metadata_spec.rb
430
433
  - spec/lib/geoblacklight/reference_spec.rb
431
434
  - spec/lib/geoblacklight/references_spec.rb
432
- - spec/lib/geoblacklight/search_builder_spec.rb
433
435
  - spec/lib/geoblacklight/view_helper_override_spec.rb
434
436
  - spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb
435
437
  - spec/lib/geoblacklight/wms_layer_spec.rb
@@ -437,6 +439,7 @@ files:
437
439
  - spec/models/concerns/geoblacklight/solr_document/finder_spec.rb
438
440
  - spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
439
441
  - spec/models/concerns/geoblacklight/solr_document_spec.rb
442
+ - spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb
440
443
  - spec/spec_helper.rb
441
444
  - spec/support/features.rb
442
445
  - spec/support/features/session_helpers.rb
@@ -464,9 +467,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
464
467
  version: '0'
465
468
  required_rubygems_version: !ruby/object:Gem::Requirement
466
469
  requirements:
467
- - - ">="
470
+ - - ">"
468
471
  - !ruby/object:Gem::Version
469
- version: '0'
472
+ version: 1.3.1
470
473
  requirements: []
471
474
  rubyforge_project:
472
475
  rubygems_version: 2.4.5.1
@@ -526,7 +529,6 @@ test_files:
526
529
  - spec/lib/geoblacklight/metadata_spec.rb
527
530
  - spec/lib/geoblacklight/reference_spec.rb
528
531
  - spec/lib/geoblacklight/references_spec.rb
529
- - spec/lib/geoblacklight/search_builder_spec.rb
530
532
  - spec/lib/geoblacklight/view_helper_override_spec.rb
531
533
  - spec/lib/geoblacklight/wms_layer/feature_info_response_spec.rb
532
534
  - spec/lib/geoblacklight/wms_layer_spec.rb
@@ -534,6 +536,7 @@ test_files:
534
536
  - spec/models/concerns/geoblacklight/solr_document/finder_spec.rb
535
537
  - spec/models/concerns/geoblacklight/solr_document/inspection_spec.rb
536
538
  - spec/models/concerns/geoblacklight/solr_document_spec.rb
539
+ - spec/models/concerns/geoblacklight/spatial_search_behavior_spec.rb
537
540
  - spec/spec_helper.rb
538
541
  - spec/support/features.rb
539
542
  - spec/support/features/session_helpers.rb