paperclip-phantom_svg 0.0.4 → 0.0.5

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: 34a4e5e4b9ad5698ec2cf3609b5a7faa2479bc69
4
- data.tar.gz: 892c7e6b298f6f4786aeeba3592822063ca48ef4
3
+ metadata.gz: 5172c2ff569c79d97a0aaaad736790637a870b02
4
+ data.tar.gz: c2c58b94e4679cead188825a32b724e22fea48b0
5
5
  SHA512:
6
- metadata.gz: 0a0fb777324b1726736144052ed7659258283067e134e836a324f6e5092c61476548088b30d7a7f34273d0a1fd52f434760a4b17164e148373a4f617a050d0de
7
- data.tar.gz: f57f761ec01bd6c1e584b744b78e80bc64a287023367e2e92e037bbde6534957b5bd574fdb931e0b9bb286c1d38f02b09ceed48edd456a8b124b9455ff6c162e
6
+ metadata.gz: 2bcfa7bab49b85adbfeb364e7740c5dae797c6d514d2503df1238770d02990e632afc6ab614d64ecbfb63e8c68d21339627cf1604830e4178d54a10845d26170
7
+ data.tar.gz: c35ff6c5125d1963deb2a47fb3652452454a9ce7dc2751509ed46351e51fb293103bca70a084e9715146fdde1f7da5b91242a3b7bf3436260877db00945896da
@@ -12,7 +12,7 @@ module Paperclip
12
12
  @width = options.fetch(:width, 64)
13
13
 
14
14
  @base_name = File.basename(@file.path, '.*')
15
- @ouput_name = options.fetch(:output_name, @base_name)
15
+ @name = options[:output_name] || @base_name
16
16
  @svg = Phantom::SVG::Base.new(@file.path)
17
17
  end
18
18
 
@@ -28,7 +28,7 @@ module Paperclip
28
28
  private
29
29
 
30
30
  def _create_svg
31
- @dst = Tempfile.new([@output_name, '.svg']).tap do |dst|
31
+ @dst = Tempfile.new([@name, '.svg']).tap do |dst|
32
32
  Paperclip.log "[PhantomSVG] Creating SVG #{@output_name}" if @whiny
33
33
  @svg.height = height
34
34
  @svg.width = width
@@ -37,7 +37,7 @@ module Paperclip
37
37
  end
38
38
 
39
39
  def _create_png
40
- @dst = Tempfile.new([@output_name, '.png']).tap do |dst|
40
+ @dst = Tempfile.new([@name, '.png']).tap do |dst|
41
41
  Paperclip.log "[PhantomSVG] Creating PNG #{@output_name} @ #{@height}x#{@width}" if @whiny
42
42
  @svg.height = height
43
43
  @svg.width = width
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'paperclip-phantom_svg'
4
- s.version = '0.0.4'
4
+ s.version = '0.0.5'
5
5
  s.license = 'LGPL-3'
6
6
  s.summary = 'SVG and Raster (primarily PNG) conerters for Paperclip' \
7
7
  ' that don\'t suck so much.'
@@ -17,9 +17,10 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(/^spec\//)
18
18
  s.require_paths = ['lib']
19
19
 
20
- s.add_dependency 'paperclip', '~> 4.2'
21
- s.add_dependency 'phantom_svg', '~> 1.1'
20
+ s.add_dependency 'paperclip', '~> 4.2', '~> 4.2.1'
21
+ s.add_dependency 'phantom_svg', '~> 1.1', '~> 1.1.5'
22
22
 
23
+ s.add_development_dependency 'bundler', '~> 1.7'
23
24
  s.add_development_dependency 'rspec', '~> 3.1'
24
25
  s.add_development_dependency 'activerecord', '~> 4.1'
25
26
  s.add_development_dependency 'sqlite3', '~> 1.3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-phantom_svg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2015-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.2'
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: 4.2.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.2'
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: 4.2.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: phantom_svg
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -31,6 +37,9 @@ dependencies:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
39
  version: '1.1'
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 1.1.5
34
43
  type: :runtime
35
44
  prerelease: false
36
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -38,6 +47,23 @@ dependencies:
38
47
  - - "~>"
39
48
  - !ruby/object:Gem::Version
40
49
  version: '1.1'
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: 1.1.5
53
+ - !ruby/object:Gem::Dependency
54
+ name: bundler
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.7'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '1.7'
41
67
  - !ruby/object:Gem::Dependency
42
68
  name: rspec
43
69
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
148
  version: '0'
123
149
  requirements: []
124
150
  rubyforge_project:
125
- rubygems_version: 2.2.2
151
+ rubygems_version: 2.4.5
126
152
  signing_key:
127
153
  specification_version: 4
128
154
  summary: SVG and Raster (primarily PNG) conerters for Paperclip that don't suck so