pdf-wrapper 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +8 -14
- data/Rakefile +7 -8
- data/specs/graphics_spec.rb +1 -1
- data/specs/image_spec.rb +1 -1
- data/specs/load_spec.rb +2 -1
- data/specs/tables_spec.rb +1 -1
- data/specs/text_spec.rb +1 -1
- data/specs/wrapper_spec.rb +1 -1
- metadata +60 -4
data/README.rdoc
CHANGED
@@ -50,21 +50,15 @@ James Healy <jimmy@deefa.com>
|
|
50
50
|
|
51
51
|
= Dependencies
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
* ruby/gdkpixbuf[http://ruby-gnome2.sourceforge.jp/] (optional, required for GIF/JPG support)
|
57
|
-
* ruby/poppler[http://ruby-gnome2.sourceforge.jp/] (optional, required for embedding PDF images)
|
58
|
-
|
59
|
-
These are all ruby bindings to C libraries. On Debian/Ubuntu based systems
|
60
|
-
(which I develop on) you can get them by running:
|
61
|
-
|
62
|
-
aptitude install libcairo-ruby libpango1-ruby librsvg2-ruby libpoppler-glib-ruby
|
53
|
+
As of September 2010 all these dependencies are satisfied by gems. All of them are bindings
|
54
|
+
to C libraries, so you will need the libraries and headers installed on your system
|
55
|
+
before installing them.
|
63
56
|
|
64
|
-
|
65
|
-
|
66
|
-
ruby/
|
67
|
-
|
57
|
+
* ruby/cairo[http://cairographics.org/rcairo/]
|
58
|
+
* ruby/pango[http://ruby-gnome2.sourceforge.jp/]
|
59
|
+
* ruby/rsvg2[http://ruby-gnome2.sourceforge.jp/]
|
60
|
+
* ruby/gdkpixbuf[http://ruby-gnome2.sourceforge.jp/]
|
61
|
+
* ruby/poppler[http://ruby-gnome2.sourceforge.jp/]
|
68
62
|
|
69
63
|
= Compatibility
|
70
64
|
|
data/Rakefile
CHANGED
@@ -8,7 +8,8 @@ require 'spec/rake/spectask'
|
|
8
8
|
require 'roodi'
|
9
9
|
require 'roodi_task'
|
10
10
|
|
11
|
-
|
11
|
+
|
12
|
+
PKG_VERSION = "0.3.5"
|
12
13
|
PKG_NAME = "pdf-wrapper"
|
13
14
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
14
15
|
|
@@ -21,9 +22,7 @@ Spec::Rake::SpecTask.new("spec") do |t|
|
|
21
22
|
# spec files listed explicitly so that load_spec is the first one run
|
22
23
|
t.spec_files = ['specs/load_spec.rb','specs/image_spec.rb','specs/graphics_spec.rb','specs/tables_spec.rb','specs/text_spec.rb','specs/wrapper_spec.rb']
|
23
24
|
t.spec_opts = ['-c']
|
24
|
-
t.
|
25
|
-
t.rcov_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + "/rcov"
|
26
|
-
t.rcov_opts = ["--exclude","spec.*\.rb","--exclude",".*cairo.*","--exclude",".*rcov.*","--exclude",".*rspec.*","--exclude",".*pdf-reader.*", "--exclude",".*gems.*"]
|
25
|
+
t.libs << File.dirname(__FILE__) + "/specs"
|
27
26
|
end
|
28
27
|
|
29
28
|
# generate specdocs
|
@@ -78,10 +77,10 @@ spec = Gem::Specification.new do |spec|
|
|
78
77
|
spec.rubyforge_project = "pdf-wrapper"
|
79
78
|
spec.description = "A unicode aware PDF writing library that uses the ruby bindings to various c libraries ( like cairo, pango, poppler and rsvg ) to do the heavy lifting."
|
80
79
|
spec.add_dependency("cairo", "~>1.8")
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
80
|
+
spec.add_dependency("pango")
|
81
|
+
spec.add_dependency("poppler")
|
82
|
+
spec.add_dependency("gdk_pixbuf2")
|
83
|
+
spec.add_dependency("rsvg2")
|
85
84
|
end
|
86
85
|
|
87
86
|
# package the library into a gem
|
data/specs/graphics_spec.rb
CHANGED
data/specs/image_spec.rb
CHANGED
data/specs/load_spec.rb
CHANGED
data/specs/tables_spec.rb
CHANGED
data/specs/text_spec.rb
CHANGED
data/specs/wrapper_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 5
|
10
|
+
version: 0.3.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James Healy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-29 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,6 +33,62 @@ dependencies:
|
|
33
33
|
version: "1.8"
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: pango
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
type: :runtime
|
49
|
+
version_requirements: *id002
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: poppler
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
type: :runtime
|
63
|
+
version_requirements: *id003
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: gdk_pixbuf2
|
66
|
+
prerelease: false
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
76
|
+
type: :runtime
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rsvg2
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
type: :runtime
|
91
|
+
version_requirements: *id005
|
36
92
|
description: A unicode aware PDF writing library that uses the ruby bindings to various c libraries ( like cairo, pango, poppler and rsvg ) to do the heavy lifting.
|
37
93
|
email: jimmy@deefa.com
|
38
94
|
executables: []
|