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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07072ca352508b8fbe82c6d06f2b70a35dafa356
4
- data.tar.gz: 33cba0193c62d8f1820bafd58d6359319a216015
3
+ metadata.gz: 28eec5d09b0c254f5492b87f7a55c6f270ec401f
4
+ data.tar.gz: f97054cd446d8e8619d4686dd603a6c667579233
5
5
  SHA512:
6
- metadata.gz: 8c4ccdaf86a012e97567b48c1277c2ba6beabbee92908c90477416ed685c28b793f2a031b43fd7a4c85e4c90d925ebb5b4864625d20ff4f738a57fad71b23d53
7
- data.tar.gz: db27bb1987f37e104cfe4efdfa90a7d6e560adb5d24de9fbdbc9ae44d3ad6617dbb07711363d7c1890bc5dbd4ad52891fde5d3b2a6c43d5f27928938c9c45a0d
6
+ metadata.gz: 1cb15ccdd0e09f2848d8c838f36b9952fc4d0c62a2d3cf286c7fbf41a131f7adc274e925cdb303cfcdf1c33dc695a66eb8ad8aa52a5b1afe956c97a63842b31a
7
+ data.tar.gz: c39b496e63c0abf4806422483ce54038f7f745f332d09c778c18b9e8c05c80f4983801d7faeb0d7bbeb8b2fe287da3b6e8d7c55c03b43d5dd055dd321fb02599
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Gem Version](https://badge.fury.io/rb/svg_export.svg)](http://badge.fury.io/rb/svg_export)
1
+ [![Gem Version](http://img.shields.io/gem/v/svg_export.svg)](https://rubygems.org/gems/svg_export)
2
2
 
3
3
  # Svg-Export Engine for Ruby on Rails
4
4
 
@@ -1,20 +1,19 @@
1
1
  module SvgExport
2
2
  class SvgController < ApplicationController
3
- skip_before_filter :verify_authenticity_token
3
+ skip_before_action :verify_authenticity_token
4
4
 
5
5
  def create
6
6
  if Engine.batik_path.blank?
7
- raise ArgumentError.new("Set SvgExport::Engine.batik_path = '...' to the correct path of the batik-rasterizer")
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 :text => "Unable to export image;\n #{e}", status: 422
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
@@ -1,3 +1,3 @@
1
1
  module SvgExport
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0.pre"
3
3
  end
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
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: 2015-08-18 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
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: 4.0.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: nokogiri
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
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: '0'
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: '0'
79
+ version: 1.3.1
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.2.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