geo_combine 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +53 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +20 -0
  5. data/.rubocop_todo.yml +165 -0
  6. data/Gemfile +3 -1
  7. data/README.md +15 -1
  8. data/Rakefile +4 -2
  9. data/bin/geocombine +1 -0
  10. data/geo_combine.gemspec +5 -0
  11. data/lib/geo_combine/bounding_box.rb +7 -1
  12. data/lib/geo_combine/ckan_metadata.rb +10 -8
  13. data/lib/geo_combine/cli.rb +3 -1
  14. data/lib/geo_combine/esri_open_data.rb +2 -0
  15. data/lib/geo_combine/exceptions.rb +3 -0
  16. data/lib/geo_combine/fgdc.rb +2 -2
  17. data/lib/geo_combine/formats.rb +2 -0
  18. data/lib/geo_combine/formatting.rb +3 -1
  19. data/lib/geo_combine/geo_blacklight_harvester.rb +20 -13
  20. data/lib/geo_combine/geoblacklight.rb +20 -6
  21. data/lib/geo_combine/geometry_types.rb +2 -0
  22. data/lib/geo_combine/iso19139.rb +2 -1
  23. data/lib/geo_combine/ogp.rb +13 -11
  24. data/lib/geo_combine/railtie.rb +2 -0
  25. data/lib/geo_combine/subjects.rb +2 -0
  26. data/lib/geo_combine/version.rb +3 -1
  27. data/lib/geo_combine.rb +4 -3
  28. data/lib/tasks/geo_combine.rake +47 -26
  29. data/lib/xslt/fgdc2html.xsl +38 -9
  30. data/spec/features/fgdc2html_spec.rb +53 -1
  31. data/spec/features/iso2html_spec.rb +10 -1
  32. data/spec/fixtures/docs/princeton_fgdc.xml +374 -0
  33. data/spec/fixtures/docs/repos.json +3224 -0
  34. data/spec/fixtures/docs/simple_xml.xml +10 -0
  35. data/spec/fixtures/docs/simple_xslt.xsl +11 -0
  36. data/spec/fixtures/docs/stanford_iso.xml +652 -0
  37. data/spec/fixtures/docs/tufts_fgdc.xml +977 -0
  38. data/spec/fixtures/indexing/basic_geoblacklight.json +27 -0
  39. data/spec/fixtures/indexing/geoblacklight.json +33 -0
  40. data/spec/fixtures/indexing/layers.json +16119 -0
  41. data/spec/fixtures/indexing/test.txt +1 -0
  42. data/spec/fixtures/json_docs.rb +2 -0
  43. data/spec/fixtures/xml_docs.rb +9 -1659
  44. data/spec/helpers.rb +7 -7
  45. data/spec/lib/geo_combine/bounding_box_spec.rb +18 -0
  46. data/spec/lib/geo_combine/ckan_metadata_spec.rb +34 -11
  47. data/spec/lib/geo_combine/esri_open_data_spec.rb +23 -2
  48. data/spec/lib/geo_combine/fgdc_spec.rb +41 -10
  49. data/spec/lib/geo_combine/formatting_spec.rb +13 -5
  50. data/spec/lib/geo_combine/geo_blacklight_harvester_spec.rb +32 -28
  51. data/spec/lib/geo_combine/geoblacklight_spec.rb +41 -11
  52. data/spec/lib/geo_combine/iso19139_spec.rb +26 -14
  53. data/spec/lib/geo_combine/ogp_spec.rb +28 -8
  54. data/spec/lib/geo_combine_spec.rb +7 -4
  55. data/spec/lib/tasks/geo_combine_spec.rb +45 -0
  56. data/spec/spec_helper.rb +19 -84
  57. data/spec/support/fixtures.rb +9 -0
  58. metadata +102 -7
  59. data/.coveralls.yml +0 -1
  60. data/.travis.yml +0 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_combine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-21 00:00:00.000000000 Z
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -164,6 +164,76 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.25'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.25'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop-rspec
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '2.8'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '2.8'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop-rake
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: simplecov
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: webmock
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '3.14'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '3.14'
167
237
  description: A Ruby toolkit for managing geospatial metadata
168
238
  email:
169
239
  - pjreed@stanford.edu
@@ -172,10 +242,11 @@ executables:
172
242
  extensions: []
173
243
  extra_rdoc_files: []
174
244
  files:
175
- - ".coveralls.yml"
245
+ - ".github/workflows/ruby.yml"
176
246
  - ".gitignore"
177
247
  - ".rspec"
178
- - ".travis.yml"
248
+ - ".rubocop.yml"
249
+ - ".rubocop_todo.yml"
179
250
  - Gemfile
180
251
  - LICENSE.txt
181
252
  - README.md
@@ -227,6 +298,16 @@ files:
227
298
  - spec/fixtures/docs/ogp_harvard_line.json
228
299
  - spec/fixtures/docs/ogp_harvard_raster.json
229
300
  - spec/fixtures/docs/ogp_tufts_vector.json
301
+ - spec/fixtures/docs/princeton_fgdc.xml
302
+ - spec/fixtures/docs/repos.json
303
+ - spec/fixtures/docs/simple_xml.xml
304
+ - spec/fixtures/docs/simple_xslt.xsl
305
+ - spec/fixtures/docs/stanford_iso.xml
306
+ - spec/fixtures/docs/tufts_fgdc.xml
307
+ - spec/fixtures/indexing/basic_geoblacklight.json
308
+ - spec/fixtures/indexing/geoblacklight.json
309
+ - spec/fixtures/indexing/layers.json
310
+ - spec/fixtures/indexing/test.txt
230
311
  - spec/fixtures/json_docs.rb
231
312
  - spec/fixtures/xml_docs.rb
232
313
  - spec/helpers.rb
@@ -240,12 +321,14 @@ files:
240
321
  - spec/lib/geo_combine/iso19139_spec.rb
241
322
  - spec/lib/geo_combine/ogp_spec.rb
242
323
  - spec/lib/geo_combine_spec.rb
324
+ - spec/lib/tasks/geo_combine_spec.rb
243
325
  - spec/spec_helper.rb
326
+ - spec/support/fixtures.rb
244
327
  homepage: ''
245
328
  licenses:
246
329
  - Apache
247
330
  metadata: {}
248
- post_install_message:
331
+ post_install_message:
249
332
  rdoc_options: []
250
333
  require_paths:
251
334
  - lib
@@ -261,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
344
  version: '0'
262
345
  requirements: []
263
346
  rubygems_version: 3.0.3
264
- signing_key:
347
+ signing_key:
265
348
  specification_version: 4
266
349
  summary: A Ruby toolkit for managing geospatial metadata
267
350
  test_files:
@@ -275,6 +358,16 @@ test_files:
275
358
  - spec/fixtures/docs/ogp_harvard_line.json
276
359
  - spec/fixtures/docs/ogp_harvard_raster.json
277
360
  - spec/fixtures/docs/ogp_tufts_vector.json
361
+ - spec/fixtures/docs/princeton_fgdc.xml
362
+ - spec/fixtures/docs/repos.json
363
+ - spec/fixtures/docs/simple_xml.xml
364
+ - spec/fixtures/docs/simple_xslt.xsl
365
+ - spec/fixtures/docs/stanford_iso.xml
366
+ - spec/fixtures/docs/tufts_fgdc.xml
367
+ - spec/fixtures/indexing/basic_geoblacklight.json
368
+ - spec/fixtures/indexing/geoblacklight.json
369
+ - spec/fixtures/indexing/layers.json
370
+ - spec/fixtures/indexing/test.txt
278
371
  - spec/fixtures/json_docs.rb
279
372
  - spec/fixtures/xml_docs.rb
280
373
  - spec/helpers.rb
@@ -288,4 +381,6 @@ test_files:
288
381
  - spec/lib/geo_combine/iso19139_spec.rb
289
382
  - spec/lib/geo_combine/ogp_spec.rb
290
383
  - spec/lib/geo_combine_spec.rb
384
+ - spec/lib/tasks/geo_combine_spec.rb
291
385
  - spec/spec_helper.rb
386
+ - spec/support/fixtures.rb
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.4.10
6
- - 2.5.8
7
- - 2.6.6
8
- - 2.7.1