Open jywarren opened 5 years ago
This should use usable as in the tests, after including the gem, and then:
Although I think it'll be require 'mapknitterExporter'
-- probably!
Also we need to pass in this nice MockExport object:
MockExport
is what will write the status.json
files, whenever we save
!
And we'll have to refactor from the simplified version here: #6 !!
After refactoring "root" we should be ok to do this.
OK, #530 brings mapknitter up to date with the latest of this gem!
There've been minimal changes to the library itself, but 2 to watch out for are:
object.lat
toobject[:lat]
everywhere, similar for[:nodes_array]
image.url
to stringimage_url
inrun_export
Here's a diff of the file from the original copy in from MapKnitter:
https://github.com/publiclab/mapknitter-exporter/compare/e140646c4ab7e38e01fd7a2269e0b8e79dc03e63...bf375b6f2cb09070503f523d24ba803936144875#diff-174ec2997e5f3c6e51179e598ab47217R314
We should be able to get MapKnitter to install this gem and still pass it's test at
/tests/unit/exporter_test.rb
if we respect these changes.