inkscape_merge 0.2.0 → 0.3.0
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/VERSION +1 -1
- data/inkscape_merge.gemspec +3 -3
- data/lib/inkscape_merge/processor.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 307af40707329bab6f18d4e2bc38884e2083d24f
|
4
|
+
data.tar.gz: 238e69412682d7bb1fd7be12478e3755a66267c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19ebbada3593ad1515403ac871914895d7d7972ec76886584e53fa39bcc1febd584b1f7ed86b4b5762b94e30776c49a198ba69e37a455a1ebfdd6e4a54d15154
|
7
|
+
data.tar.gz: 3e3dad46f2c8dde52a6caf944843d8991296156d7d6b53eb781fde91dc2acbcb6c085c04762e9d1e300c5082f73a80516c352fae9a4b03eca36bd729f6a3ac3f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/inkscape_merge.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: inkscape_merge 0.
|
5
|
+
# stub: inkscape_merge 0.3.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "inkscape_merge"
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Laas Toom"]
|
14
|
-
s.date = "2016-10-
|
14
|
+
s.date = "2016-10-27"
|
15
15
|
s.description = "Script to merge SVG files with CSV data-files using Inkscape, to produce\n one outputfile (e.g. PDF) per data-row."
|
16
16
|
s.email = "laas.toom@gmail.com"
|
17
17
|
s.executables = ["inkscape_merge"]
|
@@ -105,7 +105,22 @@ module Inkscape # :nodoc:
|
|
105
105
|
|
106
106
|
# Run Inkscape to generate files
|
107
107
|
def ink_generate(in_file, out_file, format='pdf', dpi="300")
|
108
|
-
|
108
|
+
|
109
|
+
new_in_file = case RUBY_PLATFORM
|
110
|
+
when /cygwin/
|
111
|
+
Shellwords.escape(`cygpath.exe #{in_file} -w`.strip)
|
112
|
+
else
|
113
|
+
in_file
|
114
|
+
end
|
115
|
+
|
116
|
+
new_out_file = case RUBY_PLATFORM
|
117
|
+
when /cygwin/
|
118
|
+
Shellwords.escape(`cygpath.exe #{out_file} -w`.strip)
|
119
|
+
else
|
120
|
+
out_file
|
121
|
+
end
|
122
|
+
|
123
|
+
cmd = %(#{Shellwords.escape(@options.inkscape)} --without-gui --export-dpi=#{dpi} --export-#{format}=#{new_out_file} #{new_in_file})
|
109
124
|
puts "INKSCAPE CMD: #{cmd}" if @options.verbose
|
110
125
|
ink_error = `#{cmd} 2>&1`
|
111
126
|
unless $?.success?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inkscape_merge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laas Toom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: juwelier
|