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: 29cd48d4c228f1bff9ef0b858af286576259509f
4
- data.tar.gz: 76599ab388d1411d9ecbf746caefa2b2661f5c53
3
+ metadata.gz: 63c119557d337644cb6c672737a365a61a757c74
4
+ data.tar.gz: fdedce40f37a734659309fa84e8270551a527ebb
5
5
  SHA512:
6
- metadata.gz: bd97c57721248ff795a323619c81eab75134ee60043d7245b61ab9f3c34170013c1bec233bda6de1a71e697efe9a9983738b2c56717d445faabfd7e7ccc20467
7
- data.tar.gz: 0799b34368309f3d4a10dbb18b007fff9374bd17de0a49d1da1f50c52f4c62e3056a586266bd07e515ef0418192c894f4318415ca26ace26402df30de9243281
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(rsp)
42
+ raise SvgExport::Error.new(result)
43
43
  end
44
44
  result
45
45
  end
File without changes
@@ -1,3 +1,3 @@
1
1
  module SvgExport
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-08 00:00:00.000000000 Z
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