svg_export 0.0.4 → 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/svg_export/svg_controller.rb +4 -5
- data/lib/svg_export/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28eec5d09b0c254f5492b87f7a55c6f270ec401f
|
4
|
+
data.tar.gz: f97054cd446d8e8619d4686dd603a6c667579233
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb15ccdd0e09f2848d8c838f36b9952fc4d0c62a2d3cf286c7fbf41a131f7adc274e925cdb303cfcdf1c33dc695a66eb8ad8aa52a5b1afe956c97a63842b31a
|
7
|
+
data.tar.gz: c39b496e63c0abf4806422483ce54038f7f745f332d09c778c18b9e8c05c80f4983801d7faeb0d7bbeb8b2fe287da3b6e8d7c55c03b43d5dd055dd321fb02599
|
data/README.md
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
module SvgExport
|
2
2
|
class SvgController < ApplicationController
|
3
|
-
|
3
|
+
skip_before_action :verify_authenticity_token
|
4
4
|
|
5
5
|
def create
|
6
6
|
if Engine.batik_path.blank?
|
7
|
-
raise ArgumentError
|
7
|
+
raise ArgumentError, "Set SvgExport::Engine.batik_path = '...' to the correct path of the batik-rasterizer"
|
8
8
|
end
|
9
9
|
wrapper = CommandWrapper.new(params, base_url: request.referer)
|
10
10
|
begin
|
11
|
-
file = wrapper.
|
11
|
+
file = wrapper.call
|
12
12
|
rescue SvgExport::Error => e
|
13
|
-
render :
|
13
|
+
render plain: "Unable to export image;\n #{e}", status: :unprocessable_entity
|
14
14
|
return
|
15
15
|
end
|
16
16
|
send_file file, type: wrapper.type, filename: wrapper.filename, disposition: 'attachment', stream: false
|
17
|
-
|
18
17
|
end
|
19
18
|
end
|
20
19
|
end
|
data/lib/svg_export/version.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
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.1.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Wienert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 5.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 5.1.0
|
41
41
|
description: Rails engine for rasterizing Highcharts SVG files
|
42
42
|
email:
|
43
43
|
- stefan.wienert@pludoni.de
|
@@ -74,12 +74,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - "
|
77
|
+
- - ">"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
79
|
+
version: 1.3.1
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
83
83
|
signing_key:
|
84
84
|
specification_version: 4
|
85
85
|
summary: Rails engine for rasterizing Highcharts SVG files
|