mapknitter-exporter 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mapknitterExporter.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c828513eab9bf3442ef1604801b18a7db2b73290
4
- data.tar.gz: f838764fb6c453329fc86196a8c32eeb789c1add
3
+ metadata.gz: a018bb4225b1ade058e11a250fb9a5d69e32b3a8
4
+ data.tar.gz: 6008f959fca90eaf81a5a428dab67a0c82328ec3
5
5
  SHA512:
6
- metadata.gz: e9cce18d65c2f4646082a801cad13fb832bb3cc2de46c1198ca9762cd0d277ae17e66e0e7d8619b8e0a895aaae12c118c09edbc3d4c8b77847230c724c067c1f
7
- data.tar.gz: ee2ab8b7b1b063727b0963356bc034156513a300d6caf30369cedb101181c47d3010d4cfcd01b3a7befaf877802711a83995dd9f524b10fbbd622a0e1799cf6a
6
+ metadata.gz: 636475db6a5fb98626aae093c45357ac1708cd26b62f516ed14111fc513e9e045e7285600cc5fb35d854b249393d06eb75648697349a5a9f4770ad6a2e44c8c2
7
+ data.tar.gz: b1a9e476eeb7e91ddb314b71397189c80611134273150e628feb4447de0e0d22e239b4653fadee18547eae8c84249284ab463eb8c7116439d208fa640bafc5cc
@@ -34,8 +34,8 @@ class MapKnitterExporter
34
34
  # this is just so we can use the files locally outside of s3
35
35
  working_directory = get_working_directory(collection_id)
36
36
  Dir.mkdir(working_directory) unless (File.exists?(working_directory) && File.directory?(working_directory))
37
- local_location = "#{working_directory}w#{id}-#{image_file_name}"
38
-
37
+ require "shellwords"
38
+ local_location = Shellwords.escape("#{working_directory}w#{id}-#{image_file_name}")
39
39
  directory = warps_directory(collection_id)
40
40
  Dir.mkdir(directory) unless (File.exists?(directory) && File.directory?(directory))
41
41
  completed_local_location = directory + 'w' + id.to_s+'.png'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mapknitter-exporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Warren