nutils 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,14 +8,18 @@ module Nutils
8
8
  #
9
9
  # @note Requires «rjb»
10
10
  class SvgToPng < Nanoc3::Filter
11
-
11
+ require 'rjb'
12
+ require 'tempfile'
13
+ require 'fileutils'
14
+ include FileUtils
15
+
12
16
  identifier :svg_to_png
13
17
  type :text => :binary
14
18
 
15
19
  def initialize(hash = {})
16
- require "rjb"
17
- require "tempfile"
18
-
20
+
21
+ mkdir_p 'tmp'
22
+
19
23
  Rjb::load(classpath = '.', [ '-Djava.awt.headless=true', '-Dapple.awt.graphics.UseQuartz=false' ])
20
24
  @fileOutputStream = Rjb::import("java.io.FileOutputStream")
21
25
  @pngTranscoder = Rjb::import("org.apache.batik.transcoder.image.PNGTranscoder")
data/lib/nutils.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module Nutils
4
4
 
5
5
  # The current nutils version.
6
- VERSION = '0.8.2'
6
+ VERSION = '0.8.3'
7
7
 
8
8
  end
9
9
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutils
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 2
10
- version: 0.8.2
9
+ - 3
10
+ version: 0.8.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arnau Siches
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-27 00:00:00 -04:00
18
+ date: 2011-06-21 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  requirements: []
94
94
 
95
95
  rubyforge_project:
96
- rubygems_version: 1.4.1
96
+ rubygems_version: 1.3.9.2
97
97
  signing_key:
98
98
  specification_version: 3
99
99
  summary: A set of utilities for Nanoc3.