svg_export 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63c119557d337644cb6c672737a365a61a757c74
|
4
|
+
data.tar.gz: fdedce40f37a734659309fa84e8270551a527ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13710a9521a30a871cd0f6a4cef4b3bb3b356158a78f54b60a276462e4d4eb5057eca11233b111bc96b16cefd1a116a8e2134db62c4d1b79789ab6ae7d7f5a0c
|
7
|
+
data.tar.gz: 57cf36fe62972880dec8f3e7dd235ef22e29d3a039494b8077e9b1213848cb692262ca53fd04e2dfb0478c16eb102ee5163d0a51ff7cab44ab5846afb8f08834
|
@@ -11,6 +11,7 @@ module SvgExport
|
|
11
11
|
file = wrapper.()
|
12
12
|
rescue SvgExport::Error => e
|
13
13
|
render :text => "Unable to export image;\n #{e}", status: 422
|
14
|
+
return
|
14
15
|
end
|
15
16
|
send_file file, type: wrapper.type, filename: wrapper.filename, disposition: 'attachment', stream: false
|
16
17
|
end
|
@@ -39,7 +39,7 @@ module SvgExport
|
|
39
39
|
cmd = "java -jar #{Engine.batik_path} -m #{type} -d #{outfile.path} #{width} #{infile.path} 2>&1"
|
40
40
|
result = `#{cmd}`
|
41
41
|
if result.index("success").nil?
|
42
|
-
raise SvgExport::Error.new(
|
42
|
+
raise SvgExport::Error.new(result)
|
43
43
|
end
|
44
44
|
result
|
45
45
|
end
|
File without changes
|
data/lib/svg_export/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svg_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- app/services/svg_export/command_wrapper.rb
|
54
54
|
- app/services/svg_export/error.rb
|
55
55
|
- app/services/svg_export/svg_transformer.rb
|
56
|
+
- config/environment.rb
|
56
57
|
- config/routes.rb
|
57
58
|
- lib/svg_export.rb
|
58
59
|
- lib/svg_export/engine.rb
|