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.
- checksums.yaml +4 -4
- data/lib/mapknitterExporter.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a018bb4225b1ade058e11a250fb9a5d69e32b3a8
|
|
4
|
+
data.tar.gz: 6008f959fca90eaf81a5a428dab67a0c82328ec3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 636475db6a5fb98626aae093c45357ac1708cd26b62f516ed14111fc513e9e045e7285600cc5fb35d854b249393d06eb75648697349a5a9f4770ad6a2e44c8c2
|
|
7
|
+
data.tar.gz: b1a9e476eeb7e91ddb314b71397189c80611134273150e628feb4447de0e0d22e239b4653fadee18547eae8c84249284ab463eb8c7116439d208fa640bafc5cc
|
data/lib/mapknitterExporter.rb
CHANGED
|
@@ -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
|
-
|
|
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'
|