rprince 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/MIT-LICENSE +1 -1
- data/README.markdown +32 -1
- data/Rakefile +4 -12
- data/VERSION +1 -1
- data/rprince.gemspec +3 -3
- data/sample/sample.html +1 -5
- metadata +3 -3
data/.gitignore
CHANGED
data/MIT-LICENSE
CHANGED
data/README.markdown
CHANGED
@@ -1 +1,32 @@
|
|
1
|
-
WARNING: This assumes you have Prince 7.0 and considerably modifies the API found in Princely.
|
1
|
+
WARNING: This assumes you have Prince 7.0 and considerably modifies the API found in Princely.
|
2
|
+
|
3
|
+
Installation:
|
4
|
+
=============
|
5
|
+
|
6
|
+
RPrince is hosted as a gem, [here](http://rubygems.org/gems/rprince).
|
7
|
+
|
8
|
+
gem install rprince
|
9
|
+
|
10
|
+
If you have an unusual prince executable install (not on your $PATH or in an environment without `which`) be sure to set
|
11
|
+
|
12
|
+
RPrince.executable_path
|
13
|
+
|
14
|
+
Otherwise, you can just do
|
15
|
+
|
16
|
+
RPrince.detect_executable_path
|
17
|
+
|
18
|
+
which will use `which prince` to configure itself.
|
19
|
+
|
20
|
+
Examples:
|
21
|
+
=========
|
22
|
+
|
23
|
+
See sample/sample.rb
|
24
|
+
|
25
|
+
Tests:
|
26
|
+
======
|
27
|
+
Didn't write any, mostly on account of the limited scope. The sample.rb covers the core stuff.
|
28
|
+
|
29
|
+
Todo:
|
30
|
+
=====
|
31
|
+
|
32
|
+
Add tests for the pdf_helper.rb and for rprince.rb.
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
desc "Build a gem"
|
2
|
+
task :gem => [ :gemspec, :build ]
|
3
3
|
|
4
4
|
begin
|
5
5
|
require 'jeweler'
|
@@ -9,6 +9,7 @@ begin
|
|
9
9
|
gem.description = %Q{A minimal wrapper for the PrinceXML PDF generation library.}
|
10
10
|
gem.email = "timon.karnezos@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/timonk/rprince"
|
12
|
+
gem.version = "1.0.1"
|
12
13
|
gem.authors = ["Timon Karnezos"]
|
13
14
|
end
|
14
15
|
|
@@ -16,15 +17,6 @@ rescue LoadError
|
|
16
17
|
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
18
|
end
|
18
19
|
|
19
|
-
require 'rake/testtask'
|
20
|
-
Rake::TestTask.new(:test) do |test|
|
21
|
-
test.libs << 'lib' << 'test'
|
22
|
-
test.pattern = 'test/**/*_test.rb'
|
23
|
-
test.verbose = true
|
24
|
-
end
|
25
|
-
|
26
|
-
task :default => :test
|
27
|
-
|
28
20
|
require 'rake/rdoctask'
|
29
21
|
Rake::RDocTask.new do |rdoc|
|
30
22
|
if File.exist?('VERSION')
|
@@ -34,7 +26,7 @@ Rake::RDocTask.new do |rdoc|
|
|
34
26
|
end
|
35
27
|
|
36
28
|
rdoc.rdoc_dir = 'rdoc'
|
37
|
-
rdoc.title = "
|
29
|
+
rdoc.title = "rprince #{version}"
|
38
30
|
rdoc.options << '--line-numbers' << '--inline-source'
|
39
31
|
rdoc.rdoc_files.include('README*')
|
40
32
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/rprince.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rprince}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Timon Karnezos"]
|
12
|
-
s.date = %q{2010-04-
|
12
|
+
s.date = %q{2010-04-30}
|
13
13
|
s.description = %q{A minimal wrapper for the PrinceXML PDF generation library.}
|
14
14
|
s.email = %q{timon.karnezos@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
|
33
33
|
s.homepage = %q{http://github.com/timonk/rprince}
|
34
34
|
s.rdoc_options = ["--charset=UTF-8"]
|
35
35
|
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.3.
|
36
|
+
s.rubygems_version = %q{1.3.6}
|
37
37
|
s.summary = %q{A minimal Rails/gem wrapper for the PrinceXML PDF generation library.}
|
38
38
|
|
39
39
|
if s.respond_to? :specification_version then
|
data/sample/sample.html
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Timon Karnezos
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-30 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|